From 781774d4b9855390b9b59218de6ff7d0f53626da Mon Sep 17 00:00:00 2001 From: solrac200 <40304645+solrac200@users.noreply.github.com> Date: Mon, 7 Nov 2022 23:31:27 +0100 Subject: [PATCH] Load Network Config depending on NETWORK_ACCESS Instead of just differentiating between internal and external use the value of NETWORK_ACCESS as the used config file --- nginx.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.tmpl b/nginx.tmpl index e8a555d..7e8cb22 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -52,9 +52,9 @@ {{ define "location" }} location {{ .Path }} { - {{ if eq .NetworkTag "internal" }} + {{ if ne .NetworkTag "external" }} # Only allow traffic from internal clients - include /etc/nginx/network_internal.conf; + include {{ (printf "/etc/nginx/networks/%s.conf" .NetworkTag) }}; {{ end }} {{ if eq .Proto "uwsgi" }}