fix: resolve OpenClaw iframe connection refused and Docker HTTP proxy conflict
Deploy Dashboard / deploy (push) Successful in 8m20s
Deploy Dashboard / deploy (push) Successful in 8m20s
This commit is contained in:
@@ -28,7 +28,7 @@ async def monitor_containers():
|
||||
msg = f"⚠️ *Container Alert* ⚠️\nContainer `{c.name}` just stopped unexpectedly (Status: {current_status})."
|
||||
# Use httpx directly as system.send_notification expects a FastAPI request object usually
|
||||
if TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID:
|
||||
proxy_url = os.environ.get("HTTP_PROXY") or os.environ.get("http_proxy")
|
||||
proxy_url = os.environ.get("TELEGRAM_PROXY")
|
||||
async with httpx.AsyncClient(proxy=proxy_url) as hc:
|
||||
await hc.post(
|
||||
f"https://api.telegram.org/bot{TELEGRAM_BOT_TOKEN}/sendMessage",
|
||||
|
||||
Reference in New Issue
Block a user