Disable proxies for health checking

This commit is contained in:
tcely 2025-03-07 23:22:04 -05:00 committed by GitHub
parent c9e2a2d86f
commit 6f349b0f91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,8 @@ import requests
TIMEOUT = 5 # Seconds TIMEOUT = 5 # Seconds
HTTP_USER = os.getenv('HTTP_USER') HTTP_USER = os.getenv('HTTP_USER')
HTTP_PASS = os.getenv('HTTP_PASS') HTTP_PASS = os.getenv('HTTP_PASS')
# never use proxy for healthcheck requests
os.environ['no_proxy'] = '*'
def do_heatlhcheck(url): def do_heatlhcheck(url):