1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-01 23:31:41 +01:00

alive check for nginx

This commit is contained in:
Kyle Spearrin 2019-07-26 12:43:06 -04:00
parent 29f0a2aa12
commit bba0206bb7
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,7 @@ LABEL com.bitwarden.product="bitwarden"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gosu \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY nginx.conf /etc/nginx
@ -19,4 +20,6 @@ EXPOSE 8443
RUN chmod +x /entrypoint.sh
HEALTHCHECK curl -L -f http://localhost/alive || exit 1
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -69,6 +69,11 @@ server {
add_header X-Robots-Tag "noindex, nofollow";
}
location /alive {
return 200 'alive';
add_header Content-Type text/plain;
}
location = /app-id.json {
proxy_pass http://web:5000/app-id.json;
{{#if Ssl}}