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:
parent
29f0a2aa12
commit
bba0206bb7
@ -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"]
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user