mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-02-01 08:22:53 +00:00
Implement suggestion from #5216 hopefully rectifying https -> forced https hosts
All checks were successful
Close stale issues and PRs / stale (push) Successful in 34s
All checks were successful
Close stale issues and PRs / stale (push) Successful in 34s
This commit is contained in:
@@ -5,6 +5,9 @@ if ($scheme = "http") {
|
||||
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
|
||||
set $test "${test}T";
|
||||
}
|
||||
if ($http_x_forwarded_proto = "https") {
|
||||
set $test "${test}S";
|
||||
}
|
||||
if ($test = H) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user