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=forego /usr/local/bin/forego /usr/local/bin/forego
|
||||||
COPY --from=dockergen /usr/local/bin/docker-gen /usr/local/bin/docker-gen
|
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/
|
COPY app nginx.tmpl LICENSE /app/
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
|
@ -53,9 +53,9 @@
|
||||||
|
|
||||||
{{ define "location" }}
|
{{ define "location" }}
|
||||||
location {{ .Path }} {
|
location {{ .Path }} {
|
||||||
{{ if eq .NetworkTag "internal" }}
|
{{ if ne .NetworkTag "external" }}
|
||||||
# Only allow traffic from internal clients
|
# Allow traffic according of the given network config
|
||||||
include /etc/nginx/network_internal.conf;
|
include {{ (printf "/etc/nginx/networks/%s.conf" .NetworkTag) }};
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if eq .Proto "uwsgi" }}
|
{{ if eq .Proto "uwsgi" }}
|
||||||
|
|
Loading…
Reference in a new issue