Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-hussain authored Aug 24, 2017
2 parents eab4ce7 + bc780e6 commit 46f4c4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ COPY index.html /usr/share/nginx/html/
COPY mysite.template /etc/nginx/conf.d/
# Add a dummy test path to simplify local testing
ENV SERVICE_PATH testpath


ENV LINK_SERVER_NAME www.example.com
CMD /bin/bash -c "envsubst < /etc/nginx/conf.d/mysite.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
4 changes: 4 additions & 0 deletions mysite.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ server {
index index.html index.htm;
}

location /link/ {
proxy_pass http://${LINK_SERVER_NAME}/target-path;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
Expand Down

0 comments on commit 46f4c4d

Please sign in to comment.