Files
nginx-proxy-manager/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf
Jamie Curnow 534afe6067
All checks were successful
Close stale issues and PRs / stale (push) Successful in 34s
Implement suggestion from #5216 hopefully rectifying https -> forced https hosts
2026-01-28 14:04:32 +10:00

14 lines
270 B
Plaintext

set $test "";
if ($scheme = "http") {
set $test "H";
}
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;
}