Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Load Network Config depending on NETWORK_ACCESS env var#2091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
solrac200 wants to merge4 commits intonginx-proxy:main
base:main
Choose a base branch
Loading
fromsolrac200:main
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletionDockerfile
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -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/
Expand Down
6 changes: 3 additions & 3 deletionsnginx.tmpl
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,9 +52,9 @@

{{ define "location" }}
location {{ .Path }} {
{{ ifeq .NetworkTag "internal" }}
#Only allowtrafficfrom internal clients
include /etc/nginx/network_internal.conf;
{{ ifne .NetworkTag "external" }}
#Allowtrafficaccording of the given network config
include{{ (printf "/etc/nginx/networks/%s.conf" .NetworkTag) }};
{{ end }}

{{ if eq .Proto "uwsgi" }}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp