Add use-proxy support to health extra args (#2973)

This commit is contained in:
Jeff Sandberg
2024-07-08 06:30:37 -06:00
committed by GitHub
parent 2023f5aa31
commit 11d8d917f2
2 changed files with 10 additions and 1 deletions

View File

@@ -227,6 +227,12 @@ MC_HEALTH_EXTRA_ARGS=(
--use-server-list-ping
)
" > /data/.mc-health.env
elif isTrue "$USES_PROXY_PROTOCOL"; then
echo "
MC_HEALTH_EXTRA_ARGS=(
--use-proxy
)
" > /data/.mc-health.env
else
rm -f /data/.mc-health.env
fi