]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
fbb-web - set HSTS Header
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Thu, 21 Jun 2018 13:43:20 +0000 (15:43 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Thu, 21 Jun 2018 13:47:31 +0000 (15:47 +0200)
customer/fbb-web/test.yaml

index 73bf00cd74e0058a608608b4081ef8466f748ca4..64e4300e812b3be721bdcaccf327eea4521669ac 100644 (file)
@@ -195,6 +195,9 @@ infra::profile::nginx_php_fpm_server::vhosts:
       - '%uri/'
       - '/index.php?$args'
     autoindex: 'on'
+    raw_prepend:
+      - 'add_header Strict-Transport-Security "max-age=31536000" always;'
+      - 'if ($http_x_forwarded_proto != "https") { return 301 https://$host$request_uri; }'
     vhost_cfg_prepend:
       satisfy: 'any'
       allow: