Skip to content

Commit

Permalink
Merge pull request #95 from usabilla/fix/graceful-shutdown
Browse files Browse the repository at this point in the history
Propagate SIGTERM to nginx
  • Loading branch information
renatomefi authored Apr 9, 2019
2 parents cd9c122 + f5697ea commit 5efe168
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/http/nginx/docker-nginx-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
set -e

## From the environment variables replace the nginx configuration placeholders
ESCAPE='$' envsubst < /etc/nginx/vhost.conf.template > /etc/nginx/conf.d/default.conf \
&& ESCAPE='$' envsubst < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf \
&& nginx -g 'daemon off;'
ESCAPE='$' envsubst < /etc/nginx/vhost.conf.template > /etc/nginx/conf.d/default.conf
ESCAPE='$' envsubst < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
exec nginx -g 'daemon off;'

0 comments on commit 5efe168

Please sign in to comment.