diff --git a/roles/float-infra-nginx/templates/nginx-vhost.j2 b/roles/float-infra-nginx/templates/nginx-vhost.j2 index dedb4271718e1d7859087aa1d4795c343a7ef503..67064c5cdf91fd7727ab137aa2690826c9704200 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 }};