From fb3a317f4db4f814112dad9e3566dfccfb139fef Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Wed, 24 Jan 2018 14:28:34 -0300 Subject: [PATCH] Rollback #1854 (#1969) --- rootfs/etc/nginx/template/nginx.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index c9f1323dc..08f67d462 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -203,7 +203,7 @@ http { map "$scheme:$pass_access_scheme" $redirect_to_https { default 0; "http:http" 1; - "http:https" 1; + "https:http" 1; } map $http_x_forwarded_port $pass_server_port { @@ -241,6 +241,8 @@ http { server_name_in_redirect off; port_in_redirect off; + rewrite_log on; + ssl_protocols {{ $cfg.SSLProtocols }}; # turn on session caching to drastically improve performance