mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-15 17:42:29 +02:00
Fix Gitea HEALTHCHECK in case of SSL setup
This commit is contained in:
@@ -133,4 +133,4 @@ HEALTHCHECK \
|
|||||||
--retries=5 \
|
--retries=5 \
|
||||||
--start-period=30s \
|
--start-period=30s \
|
||||||
--timeout=25s \
|
--timeout=25s \
|
||||||
CMD curl -A "HealthCheck: Docker/1.0" -s -f "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1
|
CMD curl -A "HealthCheck: Docker/1.0" -s -f -k --http1.1 "$(cat /run/health_protocol 2>/dev/null || echo http)://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ for file in /config/app.ini /etc/templates/app.ini; do
|
|||||||
PROTOCOL=http
|
PROTOCOL=http
|
||||||
sed -i "/server/a PROTOCOL=http" "$file"
|
sed -i "/server/a PROTOCOL=http" "$file"
|
||||||
fi
|
fi
|
||||||
|
echo -n "${PROTOCOL}" > /run/health_protocol
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# ADAPT ROOT_URL #
|
# ADAPT ROOT_URL #
|
||||||
|
|||||||
Reference in New Issue
Block a user