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:
parent
c4ad18fecc
commit
781774d4b9
1 changed files with 2 additions and 2 deletions
|
@ -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" }}
|
||||
|
|
Loading…
Reference in a new issue