From: Thomas Dalichow Date: Wed, 20 Jun 2018 16:25:42 +0000 (+0200) Subject: fbb-web - try HTTP-to-HTTPS-redirect in NGINX X-Git-Tag: v0.1.0~770 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=41186d8829d1c203f599c3a0cf4492402bcf0040;p=pixelpark%2Fhiera.git fbb-web - try HTTP-to-HTTPS-redirect in NGINX --- diff --git a/customer/fbb-web/test.yaml b/customer/fbb-web/test.yaml index cbd0f492..3f66240b 100644 --- a/customer/fbb-web/test.yaml +++ b/customer/fbb-web/test.yaml @@ -158,6 +158,8 @@ infra::profile::nginx_php_fpm_server::vhosts: - '217.66.56.0/24' - '194.174.72.0/21' deny: 'all' + rewrite_rules: + - 'set $do_https_redirect = 0; if ($http_x_forwarded_proto != "https") { set $do_https_redirect = 1; } if ($host = "tst-roadmap.berlin-airport.de") { set $do_https_redirect "${do_https_redirect}1"; } if ($do_https_redirect = 11) { return 301 https://$host$request_uri permanent; }' tst-berhub-berlin-airport-de_ssl: ensure: present www_root: '/srv/www/tst-berhub-berlin-airport-de'