config_prod.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. imports:
  2. - { resource: config.yml }
  3. doctrine:
  4. orm:
  5. metadata_cache_driver: '%doctrine_cache_backend%'
  6. result_cache_driver:
  7. type: predis
  8. cache_provider: predis
  9. query_cache_driver: '%doctrine_cache_backend%'
  10. doctrine_cache:
  11. providers:
  12. predis:
  13. type: predis
  14. predis:
  15. client_id: snc_redis.cache_client
  16. monolog:
  17. handlers:
  18. main:
  19. type: fingers_crossed
  20. action_level: error
  21. handler: nested
  22. channels: ['!event']
  23. excluded_404s:
  24. - ^/
  25. nested:
  26. type: stream
  27. path: '%kernel.logs_dir%/%kernel.environment%.log'
  28. level: debug
  29. include_stacktraces: true
  30. snc_redis:
  31. clients:
  32. default:
  33. type: predis
  34. alias: default
  35. dsn: '%redis_dsn%'
  36. options:
  37. profile: 2.8
  38. cache:
  39. type: predis
  40. alias: cache
  41. dsn: '%redis_session_dsn%'
  42. options:
  43. profile: 2.8
  44. session:
  45. client: cache
  46. ttl: 3600
  47. framework:
  48. session:
  49. handler_id: snc_redis.session.handler
  50. cookie_secure: '%force_ssl%'
  51. validation:
  52. cache: '%validation_cache_backend%'
  53. nelmio_security:
  54. clickjacking:
  55. paths:
  56. '^/.*': DENY
  57. forced_ssl:
  58. enabled: '%force_ssl%'
  59. hsts_max_age: 31104000 # 1y
  60. csp:
  61. enabled: true
  62. report_logger_service: logger
  63. hosts: []
  64. content_types: []
  65. enforce:
  66. browser_adaptive:
  67. enabled: false
  68. default-src:
  69. - 'self'
  70. script-src:
  71. - 'self'
  72. - 'unsafe-inline'
  73. - 'unsafe-eval'
  74. - 'https://cdn.jsdelivr.net/'
  75. - 'https://ssl.google-analytics.com/'
  76. connect-src:
  77. - 'self'
  78. - '*.algolia.net'
  79. - '*.algolianet.com'
  80. img-src:
  81. - 'self'
  82. - 'https://www.gravatar.com/'
  83. - 'https://camo.githubusercontent.com/'
  84. - 'https://ssl.google-analytics.com/'
  85. - 'http://www.google-analytics.com/'
  86. style-src:
  87. - 'self'
  88. - 'unsafe-inline'
  89. - 'https://fonts.googleapis.com/'
  90. font-src:
  91. - 'self'
  92. - 'https://fonts.gstatic.com/'
  93. block-all-mixed-content: true # defaults to false, blocks HTTP content over HTTPS transport