Merge 496a782ab4
into 2f898566fc
This commit is contained in:
commit
c7de290376
2 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
|
|||
COPY --from=forego /usr/local/bin/forego /usr/local/bin/forego
|
||||
COPY --from=dockergen /usr/local/bin/docker-gen /usr/local/bin/docker-gen
|
||||
|
||||
COPY network_internal.conf /etc/nginx/
|
||||
COPY network_internal.conf /etc/nginx/networks/internal.conf
|
||||
|
||||
COPY app nginx.tmpl LICENSE /app/
|
||||
WORKDIR /app/
|
||||
|
|
|
@ -53,9 +53,9 @@
|
|||
|
||||
{{ define "location" }}
|
||||
location {{ .Path }} {
|
||||
{{ if eq .NetworkTag "internal" }}
|
||||
# Only allow traffic from internal clients
|
||||
include /etc/nginx/network_internal.conf;
|
||||
{{ if ne .NetworkTag "external" }}
|
||||
# Allow traffic according of the given network config
|
||||
include {{ (printf "/etc/nginx/networks/%s.conf" .NetworkTag) }};
|
||||
{{ end }}
|
||||
|
||||
{{ if eq .Proto "uwsgi" }}
|
||||
|
|
Loading…
Reference in a new issue