mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-04-28 18:12:27 +00:00
11 lines
220 B
Plaintext
11 lines
220 B
Plaintext
set $test "";
|
|
if ($http_x_forwarded_proto = "http") {
|
|
set $test "H";
|
|
}
|
|
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
|
|
set $test "${test}T";
|
|
}
|
|
if ($test = H) {
|
|
return 301 https://$host$request_uri;
|
|
}
|