Skip to content

Commit

Permalink
[Vivek/Naji] Remove Default Server in nginx
Browse files Browse the repository at this point in the history
- Handle SIGINT in docker
  • Loading branch information
mohamednajiullah committed Jun 20, 2018
1 parent 63b2364 commit b7f1361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -8,5 +8,5 @@ RUN npm run build
FROM nginx:1.13.5
WORKDIR /opt/build-your-own-radar
COPY --from=source /src/build-your-own-radar/dist .
COPY default.template /etc/nginx/conf.d/default.template
CMD /bin/bash -c "envsubst < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
COPY default.template /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"]
8 changes: 0 additions & 8 deletions default.template
@@ -1,14 +1,6 @@
# default server block to handle undefined domain names
server {
listen 80 default_server;
server_name _;
return 403;
}

# server block for static file serving
server {
listen 80;
server_name ${SERVER_NAMES};
location / {
root /opt/build-your-own-radar;
index index.html;
Expand Down

0 comments on commit b7f1361

Please sign in to comment.