From 4eb52e64cfa8811e8432667ec3ad1fb4a191f2a5 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Mon, 17 Mar 2025 11:17:14 +0000
Subject: [PATCH] Fix clause for https no-proxy backends

---
 roles/float-infra-nginx/templates/nginx-vhost.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/float-infra-nginx/templates/nginx-vhost.j2 b/roles/float-infra-nginx/templates/nginx-vhost.j2
index dedb4271..67064c5c 100644
--- a/roles/float-infra-nginx/templates/nginx-vhost.j2
+++ b/roles/float-infra-nginx/templates/nginx-vhost.j2
@@ -8,7 +8,7 @@
         location {{ pe_config.path }} {
                 include /etc/nginx/snippets/block.conf;
                 include /etc/nginx/snippets/proxy.conf;
-{% if not upstream.enable_sso_proxy and not upstream.enable_api_proxy and not pe_config.get('scheme', 'https') == 'https' %}
+{% if not upstream.enable_sso_proxy and not upstream.enable_api_proxy and pe_config.get('scheme', 'https') == 'https' %}
                 proxy_pass https://{{ pe_config.float_upstream_name }}{% if upstream.sharded and shard %}_{{ shard }}{% endif %};
                 include /etc/nginx/snippets/proxy-ssl.conf;
                 proxy_ssl_name {{ upstream.service_name }}.{{ domain }};
-- 
GitLab