From 965538141d656a77215ab93eec745e468167846f Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 6 Sep 2022 16:49:29 +0200 Subject: [PATCH] :sparkles: Allow to define a host for local access If a host is defined as local, HTTPS traffic will not be forwared. The LetsEncrypt proxy is still available. --- roles/nginx-https-ingress/templates/passthrough.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/nginx-https-ingress/templates/passthrough.conf.j2 b/roles/nginx-https-ingress/templates/passthrough.conf.j2 index b73691d..46e05f4 100644 --- a/roles/nginx-https-ingress/templates/passthrough.conf.j2 +++ b/roles/nginx-https-ingress/templates/passthrough.conf.j2 @@ -5,7 +5,9 @@ stream { {% for i in ingress %} {% if 'hosts' in i %} {% for host in i.hosts %} +{% if host.local is not defined or host.local == False %} {{ host.name }} {{ i.server }}; +{% endif%} {% endfor %} {% endif %} {% endfor %}