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
This commit is contained in:
solrac200 2022-11-07 23:31:27 +01:00 committed by GitHub
parent c4ad18fecc
commit 781774d4b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,9 +52,9 @@
{{ define "location" }} {{ define "location" }}
location {{ .Path }} { location {{ .Path }} {
{{ if eq .NetworkTag "internal" }} {{ if ne .NetworkTag "external" }}
# Only allow traffic from internal clients # Only allow traffic from internal clients
include /etc/nginx/network_internal.conf; include {{ (printf "/etc/nginx/networks/%s.conf" .NetworkTag) }};
{{ end }} {{ end }}
{{ if eq .Proto "uwsgi" }} {{ if eq .Proto "uwsgi" }}