Implement suggestion from #5216 hopefully rectifying https -> forced https hosts
All checks were successful
Close stale issues and PRs / stale (push) Successful in 34s

This commit is contained in:
Jamie Curnow
2026-01-28 14:04:32 +10:00
parent 9580903f5d
commit 534afe6067

View File

@@ -5,6 +5,9 @@ if ($scheme = "http") {
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";
} }
if ($http_x_forwarded_proto = "https") {
set $test "${test}S";
}
if ($test = H) { if ($test = H) {
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }