This commit is contained in:
Mehdi Zakaria Benadel 2025-01-25 11:47:05 +00:00 committed by GitHub
commit 8cba1638a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -290,9 +290,11 @@
{{- else }}
{{- $keepalive := $vpath.keepalive }}
location {{ .Path }} {
{{- if eq $vpath.network_tag "internal" }}
# Only allow traffic from internal clients
include /etc/nginx/network_internal.conf;
{{- if not (eq $vpath.network_tag "external") }}
{{- if exists (printf "/etc/nginx/network_%s.conf" $vpath.network_tag) }}
# Only allow traffic from {{ $vpath.network_tag }} clients
include {{ printf "/etc/nginx/network_%s.conf" $vpath.network_tag }};
{{- end }}
{{- end }}
{{ $proto := $vpath.proto }}