mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-10-21 19:21:10 +00:00
Implement suggestion from #5216 hopefully rectifying https -> forced https hosts
This commit is contained in:
parent
9580903f5d
commit
534afe6067
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue