force-ssl behind another proxy using http_x_forwarded_proto

This commit is contained in:
Pau Capó
2024-06-22 14:56:52 +02:00
committed by GitHub
parent d3a654b546
commit 1a12f7f3a8

View File

@ -2,6 +2,9 @@ set $test "";
if ($scheme = "http") {
set $test "H";
}
if ($http_x_forwarded_proto = "http") {
set $test "H";
}
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
set $test "${test}T";
}