mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-14 02:42:34 +00:00
force-ssl behind another proxy using http_x_forwarded_proto
This commit is contained in:
@@ -2,6 +2,9 @@ set $test "";
|
|||||||
if ($scheme = "http") {
|
if ($scheme = "http") {
|
||||||
set $test "H";
|
set $test "H";
|
||||||
}
|
}
|
||||||
|
if ($http_x_forwarded_proto = "http") {
|
||||||
|
set $test "H";
|
||||||
|
}
|
||||||
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
|
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
|
||||||
set $test "${test}T";
|
set $test "${test}T";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user