From 81b7661849285ad80ba76f5313dfd980f6c2d0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Cap=C3=B3?= Date: Sat, 22 Jun 2024 18:08:58 +0200 Subject: [PATCH] fix logic --- docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 1ff8c2d5..2a568bd3 100644 --- a/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf +++ b/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf @@ -2,8 +2,8 @@ set $test ""; if ($scheme = "http") { set $test "H"; } -if ($http_x_forwarded_proto = "http") { - set $test "H"; +if ($http_x_forwarded_proto = "https") { + set $test ""; } if ($request_uri = /.well-known/acme-challenge/test-challenge) { set $test "${test}T";