From: Thomas Dalichow Date: Thu, 21 Jun 2018 13:26:09 +0000 (+0200) Subject: fbb-web - try HTTP-to-HTTPS-redirect in NGINX X-Git-Tag: v0.1.0~757 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=d6aadda800e09e0966e1492c2584859ddee9ca45;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..d5275008 100644 --- a/customer/fbb-web/test.yaml +++ b/customer/fbb-web/test.yaml @@ -148,6 +148,8 @@ infra::profile::nginx_php_fpm_server::vhosts: - '%uri/' - '/index.php?$args' autoindex: 'on' + vhost_raw_prepend: + - 'if ($http_x_forwarded_proto != "https") { return 301 https://$host$request_uri; }' vhost_cfg_prepend: satisfy: 'any' allow: