浏览代码

Allow forced_ssl tweaking

Jordi Boggiano 6 年之前
父节点
当前提交
f859f5b777
共有 2 个文件被更改,包括 2 次插入0 次删除
  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: []