diff --git a/Dockerfile b/Dockerfile index a1ea44a..89e86d1 100755 --- a/Dockerfile +++ b/Dockerfile @@ -47,7 +47,7 @@ ENV SEND_FROM_EMAIL="" \ EXPOSE 80 HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ - CMD curl -fsS http://127.0.0.1/index.html > /dev/null || exit 1 + CMD curl -fsS http://127.0.0.1/health > /dev/null || exit 1 ENTRYPOINT ["/sbin/tini", "--"] CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf", "-n"] diff --git a/infra/nginx.conf b/infra/nginx.conf index 4d6d7fb..d1f9994 100755 --- a/infra/nginx.conf +++ b/infra/nginx.conf @@ -27,6 +27,8 @@ server { auth_basic "Review"; auth_basic_user_file /etc/nginx/.htpasswd; + location = /health { auth_basic off; return 200 "ok"; access_log off; } + location ~ /\. { deny all; return 404; } location ~* \.(env|conf|yml|yaml|md|sh|py|pyc|sql|bak|old|swp|log|dockerfile)$ { deny all; return 404;