From 3b4990de071eb67e80f4348a8736428dce7a6290 Mon Sep 17 00:00:00 2001 From: Vince Picone Date: Wed, 15 Apr 2020 19:57:28 -0500 Subject: [PATCH] Update nginx.conf --- nginx.conf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nginx.conf b/nginx.conf index ade53d02c98..ad319faab3a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -40,14 +40,14 @@ http { server_name localhost; root public; - ## temporarily dont force https - ## set $updated_host $host; - ## if ($http_x_forwarded_host != "") { - ## set $updated_host $http_x_forwarded_host; - ## } - ## if ($http_x_forwarded_proto != "https") { - ## return 301 https://$updated_host$request_uri; - ## } + ## force https + set $updated_host $host; + if ($http_x_forwarded_host != "") { + set $updated_host $http_x_forwarded_host; + } + if ($http_x_forwarded_proto != "https") { + return 301 https://$updated_host$request_uri; + } index index.html; autoindex off;