diff --git a/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf b/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf index aa52f335..b0acd36a 100644 --- a/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf +++ b/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf @@ -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"; }