config_prod.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. # in sf4 excluded_http_codes: [404]
  24. excluded_404s:
  25. - ^/
  26. nested:
  27. type: stream
  28. path: '%kernel.logs_dir%/%kernel.environment%.log'
  29. level: debug
  30. include_stacktraces: true
  31. console_debug:
  32. type: console
  33. include_stacktraces: true
  34. verbosity_levels:
  35. VERBOSITY_NORMAL: EMERGENCY
  36. VERBOSITY_VERBOSE: INFO
  37. VERBOSITY_VERY_VERBOSE: NOTICE
  38. VERBOSITY_DEBUG: DEBUG
  39. snc_redis:
  40. clients:
  41. default:
  42. type: predis
  43. alias: default
  44. dsn: '%redis_dsn%'
  45. options:
  46. profile: 2.8
  47. cache:
  48. type: predis
  49. alias: cache
  50. dsn: '%redis_session_dsn%'
  51. options:
  52. profile: 2.8
  53. session:
  54. client: cache
  55. ttl: 3600
  56. framework:
  57. session:
  58. handler_id: snc_redis.session.handler
  59. cookie_secure: '%force_ssl%'
  60. nelmio_security:
  61. clickjacking:
  62. paths:
  63. '^/.*': DENY
  64. forced_ssl:
  65. enabled: '%force_ssl%'
  66. hsts_max_age: 31104000 # 1y
  67. csp:
  68. enabled: true
  69. report_logger_service: logger
  70. hosts: []
  71. content_types: []
  72. enforce:
  73. browser_adaptive:
  74. enabled: false
  75. default-src:
  76. - 'self'
  77. script-src:
  78. - 'self'
  79. - 'unsafe-inline'
  80. - 'unsafe-eval'
  81. - 'https://cdn.jsdelivr.net/'
  82. - 'https://www.google-analytics.com/'
  83. connect-src:
  84. - 'self'
  85. - '*.algolia.net'
  86. - '*.algolianet.com'
  87. img-src:
  88. - 'self'
  89. - 'https:'
  90. - 'http://www.google-analytics.com/'
  91. style-src:
  92. - 'self'
  93. - 'unsafe-inline'
  94. - 'https://cdn.jsdelivr.net/'
  95. - 'https://fonts.googleapis.com/'
  96. font-src:
  97. - 'self'
  98. - 'https://fonts.gstatic.com/'
  99. block-all-mixed-content: true # defaults to false, blocks HTTP content over HTTPS transport