We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 648516b commit 62e5bd5Copy full SHA for 62e5bd5
Dockerfile
@@ -1,7 +1,8 @@
1
FROM nginx:alpine
2
3
ENV HTPASSWD='foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.' \
4
- FORWARD_PORT=80
+ FORWARD_PORT=80 \
5
+ FORWARD_HOST=web
6
7
WORKDIR /opt
8
auth.conf
@@ -1,11 +1,11 @@
server {
listen 80 default_server;
-
+
location / {
auth_basic "Restricted";
auth_basic_user_file auth.htpasswd;
- proxy_pass http://web:${FORWARD_PORT};
+ proxy_pass http://${FORWARD_HOST}:${FORWARD_PORT};
9
proxy_read_timeout 900;
10
}
11
-}
+}
0 commit comments