mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-02-11 21:22:57 +00:00
fix: make variable name meaningful
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user