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;