mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-10-08 08:34:24 +01:00
fix: unknown "trust_forwarded_proto" variable error when run with already created old virtual hosts
This commit is contained in:
1 parent
b7402d47a0
commit
eeab425ea4
1 file changed
+4
-1
@@ -8,7 +8,10 @@ if ($request_uri = /.well-known/acme-challenge/test-challenge) {
|
||||
|
||||
# Check if the ssl staff has been handled
|
||||
set $test_ssl_handled "";
|
||||
if ($trust_forwarded_proto = T){
|
||||
if ($trust_forwarded_proto = "") {
|
||||
set $trust_forwarded_proto "F";
|
||||
}
|
||||
if ($trust_forwarded_proto = "T") {
|
||||
set $test_ssl_handled "${test_ssl_handled}T";
|
||||
}
|
||||
if ($http_x_forwarded_proto = "https") {
|
||||
|
||||
Reference in new issue
Block a user