Browse Source

Allow forced_ssl tweaking

Jordi Boggiano 6 years ago
parent
commit
f859f5b777
2 changed files with 2 additions and 0 deletions
  1. 1 0
      app/config/config_prod.yml
  2. 1 0
      app/config/defaults.yml

+ 1 - 0
app/config/config_prod.yml

@@ -70,6 +70,7 @@ nelmio_security:
             '^/.*': DENY
     forced_ssl:
         enabled: '%force_ssl%'
+        hosts: '%forced_ssl_hosts%'
         hsts_max_age: 31104000 # 1y
     csp:
         enabled: true

+ 1 - 0
app/config/defaults.yml

@@ -11,3 +11,4 @@ parameters:
     mailer_auth_mode: login
     fingers_crossed_handlers: []
     aws_metadata: {}
+    forced_ssl_hosts: []