diff --git a/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf b/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf index 000bffe9..24ef18a0 100644 --- a/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf +++ b/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf @@ -7,20 +7,20 @@ if ($request_uri = /.well-known/acme-challenge/test-challenge) { } # Check if the ssl staff has been handled -set $test_proto ""; +set $test_ssl_handled ""; if ($trust_forwarded_proto = T){ - set $test_proto "${test_proto}T"; + set $test_ssl_handled "${test_ssl_handled}T"; } if ($http_x_forwarded_proto = "https") { - set $test_proto "${test_proto}S"; + set $test_ssl_handled "${test_ssl_handled}S"; } if ($http_x_forwarded_scheme = "https") { - set $test_proto "${test_proto}S"; + set $test_ssl_handled "${test_ssl_handled}S"; } -if ($test_proto = "TSS") { - set $test_proto "TS"; +if ($test_ssl_handled = "TSS") { + set $test_ssl_handled "TS"; } -if ($test_proto = "TS") { +if ($test_ssl_handled = "TS") { set $test "${test}S"; }