config_prod.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. hosts: '%forced_ssl_hosts%'
  67. hsts_max_age: 31104000 # 1y
  68. csp:
  69. enabled: true
  70. report_logger_service: logger
  71. hosts: []
  72. content_types: []
  73. enforce:
  74. browser_adaptive:
  75. enabled: false
  76. default-src:
  77. - 'self'
  78. script-src:
  79. - 'self'
  80. - 'unsafe-inline'
  81. - 'unsafe-eval'
  82. - 'https://cdn.jsdelivr.net/'
  83. - 'https://www.google-analytics.com/'
  84. connect-src:
  85. - 'self'
  86. - '*.algolia.net'
  87. - '*.algolianet.com'
  88. img-src:
  89. - 'self'
  90. - 'https:'
  91. - 'data:'
  92. - 'http://www.google-analytics.com/'
  93. style-src:
  94. - 'self'
  95. - 'unsafe-inline'
  96. - 'https://cdn.jsdelivr.net/'
  97. - 'https://fonts.googleapis.com/'
  98. font-src:
  99. - 'self'
  100. - 'https://fonts.gstatic.com/'
  101. block-all-mixed-content: true # defaults to false, blocks HTTP content over HTTPS transport