Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM nginx:alpine

ENV HTPASSWD='foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.' \
FORWARD_PORT=80 \
FORWARD_HOST=web
FORWARD_HOST=web \
DNS_RESOLVER=

WORKDIR /opt

Expand Down
4 changes: 4 additions & 0 deletions launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ rm /etc/nginx/conf.d/default.conf || :
envsubst < auth.conf > /etc/nginx/conf.d/auth.conf
envsubst < auth.htpasswd > /etc/nginx/auth.htpasswd

if [ -n "${DNS_RESOLVER}" ]; then
echo "resolver ${DNS_RESOLVER};" >> /etc/nginx/conf.d/auth.conf
fi

nginx -g "daemon off;"