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..6e88c71a 100644 --- a/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf +++ b/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf @@ -1,5 +1,5 @@ set $test ""; -if ($scheme = "http") { +if ($http_x_forwarded_proto = "http") { set $test "H"; } if ($request_uri = /.well-known/acme-challenge/test-challenge) {