config_prod.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. console_debug:
  31. type: console
  32. verbosity_levels:
  33. VERBOSITY_NORMAL: EMERGENCY
  34. VERBOSITY_VERBOSE: INFO
  35. VERBOSITY_VERY_VERBOSE: NOTICE
  36. VERBOSITY_DEBUG: DEBUG
  37. formatter: packagist.console_stack_trace_line_formatter
  38. snc_redis:
  39. clients:
  40. default:
  41. type: predis
  42. alias: default
  43. dsn: '%redis_dsn%'
  44. options:
  45. profile: 2.8
  46. cache:
  47. type: predis
  48. alias: cache
  49. dsn: '%redis_session_dsn%'
  50. options:
  51. profile: 2.8
  52. session:
  53. client: cache
  54. ttl: 3600
  55. framework:
  56. session:
  57. handler_id: snc_redis.session.handler
  58. cookie_secure: '%force_ssl%'
  59. validation:
  60. cache: '%validation_cache_backend%'
  61. nelmio_security:
  62. clickjacking:
  63. paths:
  64. '^/.*': DENY
  65. forced_ssl:
  66. enabled: '%force_ssl%'
  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://ssl.google-analytics.com/'
  84. connect-src:
  85. - 'self'
  86. - '*.algolia.net'
  87. - '*.algolianet.com'
  88. img-src:
  89. - 'self'
  90. - 'https://www.gravatar.com/'
  91. - 'https://camo.githubusercontent.com/'
  92. - 'https://user-images.githubusercontent.com/'
  93. - 'https://raw.githubusercontent.com/'
  94. - 'https://raw.github.com/'
  95. - 'https://github.com/'
  96. - 'https://gitlab.com/'
  97. - 'https://ssl.google-analytics.com/'
  98. - 'http://www.google-analytics.com/'
  99. style-src:
  100. - 'self'
  101. - 'unsafe-inline'
  102. - 'https://cdn.jsdelivr.net/'
  103. - 'https://fonts.googleapis.com/'
  104. font-src:
  105. - 'self'
  106. - 'https://fonts.gstatic.com/'
  107. block-all-mixed-content: true # defaults to false, blocks HTTP content over HTTPS transport