Enhance gluetun PIA WireGuard rotator with health check and recovery logic. Introduce new environment variables for health check interval and unhealthy cooldown. Refactor entrypoint.py to manage Gluetun health status and implement two-step recovery for unhealthy states. Update rotation logic to account for health status during scheduled rotations.
Build and Push Docker Images / build-and-push (push) Successful in 51s

This commit is contained in:
2026-08-16 18:47:29 +02:00
parent f5b9a7fa21
commit 7d6405c776
4 changed files with 310 additions and 147 deletions
@@ -24,5 +24,7 @@ ENV TOKEN_CACHE_PATH=/config/cache/pia-token.json
ENV TOKEN_CACHE_TTL=20h
ENV PIA_CA_PATH=/config/cache/ca.rsa.4096.crt
ENV LATENCY_SWITCH_MARGIN_MS=15
ENV HEALTH_CHECK_INTERVAL=10
ENV UNHEALTHY_ROTATE_COOLDOWN=60
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]