This commit is contained in:
solrac200 2022-12-27 22:35:41 +01:00 committed by GitHub
commit c7de290376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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/

View file

@ -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" }}