force-ssl behind another proxy using http_x_forwarded_proto
This commit is contained in:
parent
d3a654b546
commit
1a12f7f3a8
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@ set $test "";
|
||||||
if ($scheme = "http") {
|
if ($scheme = "http") {
|
||||||
set $test "H";
|
set $test "H";
|
||||||
}
|
}
|
||||||
|
if ($http_x_forwarded_proto = "http") {
|
||||||
|
set $test "H";
|
||||||
|
}
|
||||||
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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue