vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 4cb5122e908b57efa1bd1b3c0a8707f129cb4823
parent 720a046610693f27f67b758aacb24087aa63758b
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Thu, 20 Oct 2022 12:26:09 +0200

Merge pull request #2844 from jjlin/healthcheck

Take `ROCKET_ADDRESS` into account in the Docker healthcheck
Diffstat:
Mdocker/healthcheck.sh | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docker/healthcheck.sh b/docker/healthcheck.sh @@ -45,9 +45,13 @@ if [ -r "${CONFIG_FILE}" ]; then fi fi +addr="${ROCKET_ADDRESS}" +if [ -z "${addr}" ] || [ "${addr}" = '0.0.0.0' ] || [ "${addr}" = '::' ]; then + addr='localhost' +fi base_path="$(get_base_path "${DOMAIN}")" if [ -n "${ROCKET_TLS}" ]; then s='s' fi curl --insecure --fail --silent --show-error \ - "http${s}://localhost:${ROCKET_PORT}${base_path}/alive" || exit 1 + "http${s}://${addr}:${ROCKET_PORT}${base_path}/alive" || exit 1