Merge ba7bbb62c0
into 1da623019f
This commit is contained in:
commit
8cba1638a1
1 changed files with 5 additions and 3 deletions
|
@ -290,9 +290,11 @@
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $keepalive := $vpath.keepalive }}
|
{{- $keepalive := $vpath.keepalive }}
|
||||||
location {{ .Path }} {
|
location {{ .Path }} {
|
||||||
{{- if eq $vpath.network_tag "internal" }}
|
{{- if not (eq $vpath.network_tag "external") }}
|
||||||
# Only allow traffic from internal clients
|
{{- if exists (printf "/etc/nginx/network_%s.conf" $vpath.network_tag) }}
|
||||||
include /etc/nginx/network_internal.conf;
|
# Only allow traffic from {{ $vpath.network_tag }} clients
|
||||||
|
include {{ printf "/etc/nginx/network_%s.conf" $vpath.network_tag }};
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ $proto := $vpath.proto }}
|
{{ $proto := $vpath.proto }}
|
||||||
|
|
Loading…
Reference in a new issue