fix: normalize YouTube proxy URL and support dashboard fields

Rewrite https proxy URLs to http, allow HOST/PORT/USER/PASSWORD env vars,
and surface clearer errors when proxies fail on the wrong port.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Frank Schwenk
2026-06-16 16:30:23 +02:00
parent 76de7c7a3a
commit 12cf6cab32
6 changed files with 73 additions and 6 deletions
+7 -1
View File
@@ -10,8 +10,14 @@ OPENROUTER_API_KEY=
OPENROUTER_MODEL=google/gemini-2.5-flash
# YouTube IP-Block umgehen (optional)
# Statischer Proxy aus dem Dashboard, z.B. http://USER:PASS@HOST:PORT
# Option A — volle URL (http:// + Port aus Dashboard, z.B. 6641):
# YOUTUBE_PROXY=http://USER:PASS@64.137.96.74:6641
YOUTUBE_PROXY=
# Option B — Felder aus dem Dashboard (einfacher, kein URL-Format):
# YOUTUBE_PROXY_HOST=64.137.96.74
# YOUTUBE_PROXY_PORT=6641
# YOUTUBE_PROXY_USER=
# YOUTUBE_PROXY_PASSWORD=
# Alternativ Webshare *Residential* (kostenpflichtig, rotating — NICHT Free/Proxy-Server):
# WEBSHARE_PROXY_USERNAME=
# WEBSHARE_PROXY_PASSWORD=