Skip to content

Commit 534afe6

Browse files
committed
Implement suggestion from #5216 hopefully rectifying https -> forced https hosts
1 parent 9580903 commit 534afe6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ if ($scheme = "http") {
55
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
66
set $test "${test}T";
77
}
8+
if ($http_x_forwarded_proto = "https") {
9+
set $test "${test}S";
10+
}
811
if ($test = H) {
912
return 301 https://$host$request_uri;
1013
}

0 commit comments

Comments
 (0)