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
Build and Push Docker Images / build-and-push (push) Successful in 51s
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user