diff --git a/docker/nginx/conf.d/00-default.conf b/docker/nginx/conf.d/00-default.conf index 1645751..e535b80 100644 --- a/docker/nginx/conf.d/00-default.conf +++ b/docker/nginx/conf.d/00-default.conf @@ -1,4 +1,4 @@ -# Drop connections with unknown or missing Host headers +# Drop connections with unknown/missing Host headers server { listen 80 default_server; listen [::]:80 default_server; diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 9051066..523c100 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -50,6 +50,12 @@ APP="${CMD#deploy-}" cd /opt/hantim git pull +# Re-exec so the running script reflects any changes just pulled +if [ -z "${DEPLOY_REEXEC:-}" ]; then + export DEPLOY_REEXEC=1 + exec /opt/hantim/scripts/deploy.sh +fi + # Generate .env from bws if this service declares .env.keys if [ -f "docker/$APP/.env.keys" ] && [ -f /etc/bws-token ]; then export BWS_ACCESS_TOKEN