fix: make variable name meaningful

This commit is contained in:
Jerry
2026-02-01 00:16:17 +08:00
parent 054742539f
commit 232b5b759a

View File

@@ -7,20 +7,20 @@ if ($request_uri = /.well-known/acme-challenge/test-challenge) {
} }
# Check if the ssl staff has been handled # Check if the ssl staff has been handled
set $test_proto ""; set $test_ssl_handled "";
if ($trust_forwarded_proto = T){ 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") { 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") { if ($http_x_forwarded_scheme = "https") {
set $test_proto "${test_proto}S"; set $test_ssl_handled "${test_ssl_handled}S";
} }
if ($test_proto = "TSS") { if ($test_ssl_handled = "TSS") {
set $test_proto "TS"; set $test_ssl_handled "TS";
} }
if ($test_proto = "TS") { if ($test_ssl_handled = "TS") {
set $test "${test}S"; set $test "${test}S";
} }