]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
fbb-web - try HTTP-to-HTTPS-redirect in NGINX
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Thu, 21 Jun 2018 13:26:09 +0000 (15:26 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Thu, 21 Jun 2018 13:26:13 +0000 (15:26 +0200)
customer/fbb-web/test.yaml

index cbd0f4927516d27de7adacbc29ad0e625ca823da..d5275008bc6213e377f054aaf37d83712ee30f62 100644 (file)
@@ -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: