Skip to content

Commit

Permalink
use envsubstr to inject BACKEND_URL at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
David Smith committed Dec 15, 2023
1 parent 9d36c2b commit d78e1e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM nginx:latest
RUN apt-get update && \
apt-get install -y apache2-utils && \
apt-get clean
COPY *.conf /etc/nginx/conf.d/
COPY *.conf /etc/nginx/templates/
COPY run.sh /docker-entrypoint.d/90-http-auth-proxy.sh

2 changes: 1 addition & 1 deletion http-auth-proxy.conf → http-auth-proxy.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ server {
}

upstream protected_backend {
server $BACKEND_URL;
server ${BACKEND_URL};
}

0 comments on commit d78e1e1

Please sign in to comment.