From: Thomas Dalichow Date: Thu, 21 Jun 2018 13:43:20 +0000 (+0200) Subject: fbb-web - set HSTS Header X-Git-Tag: v0.1.0~753 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=adb9176cc535ceec081de39ff5bcf12111fcc546;p=pixelpark%2Fhiera.git fbb-web - set HSTS Header --- diff --git a/customer/fbb-web/test.yaml b/customer/fbb-web/test.yaml index 73bf00cd..64e4300e 100644 --- a/customer/fbb-web/test.yaml +++ b/customer/fbb-web/test.yaml @@ -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: