Fix front health checking

- Specified seperated /health path in order to allow for healthcheck even if webmail and admin are not seletectd. This also allows healthchecking fom external services like DNS load balancers;
- Make curl not to fail on TLS because localhost is not included in the certificates.
This commit is contained in:
Tim Möhlmann
2018-10-21 20:45:41 +03:00
parent a412951a30
commit c3e89967fb
2 changed files with 5 additions and 1 deletions

View File

@@ -13,4 +13,4 @@ VOLUME ["/certs"]
CMD /start.py
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1
HEALTHCHECK CMD curl -k -f -L http://localhost/health || exit 1

View File

@@ -146,6 +146,10 @@ http {
proxy_pass_request_body off;
proxy_set_header Content-Length "";
}
location /health {
return 204;
}
}
# Forwarding authentication server