feat(healthcare): add gost proxy-relay so Chromium can use the residential proxy
Chromium rejects authenticated SOCKS5 ('Browser does not support socks5 proxy
authentication'). Add a gost (ginuerzh/gost:2.11.5) 'proxy-relay' sidecar that
listens unauthenticated on socks5://proxy-relay:11080 and forwards to the
authenticated residential upstream (HEALTHCARE_PROXY_UPSTREAM_URL). Workers point
Playwright at the relay via HEALTHCARE_PROXY_URL=socks5://proxy-relay:11080.
env template: split into HEALTHCARE_PROXY_UPSTREAM_URL (authenticated, password
percent-encoded so '#' -> %23) and HEALTHCARE_PROXY_URL (the relay address).
Validated end-to-end on dev: workers Chromium -> proxy-relay -> residential
egress IP 76.228.206.147; NPPES + PECOS both HTTP 200.
This commit is contained in:
parent
4060fd7562
commit
a79d6b1906
2 changed files with 36 additions and 11 deletions
|
|
@ -1,4 +1,20 @@
|
|||
services:
|
||||
# ── Residential proxy relay (healthcare NPPES/PECOS automation) ──────
|
||||
# Chromium cannot use an *authenticated* SOCKS5 proxy directly, so we run a
|
||||
# local unauthenticated gost relay that forwards to the authenticated
|
||||
# residential upstream (username "performancewest"). The workers point
|
||||
# Playwright at this relay via HEALTHCARE_PROXY_URL=socks5://proxy-relay:11080.
|
||||
#
|
||||
# HEALTHCARE_PROXY_UPSTREAM_URL is the authenticated upstream and is set in
|
||||
# .env (rendered from the ansible vault). The password may contain URL
|
||||
# special chars (e.g. '#'); store it percent-encoded ('%23') in that var.
|
||||
proxy-relay:
|
||||
image: ginuerzh/gost:2.11.5
|
||||
command: >-
|
||||
-L socks5://:11080
|
||||
-F ${HEALTHCARE_PROXY_UPSTREAM_URL}
|
||||
restart: unless-stopped
|
||||
|
||||
# ── Core Application ────────────────────────────────────────────────
|
||||
site:
|
||||
build: ./site
|
||||
|
|
@ -107,10 +123,11 @@ services:
|
|||
- CRYPTO_SWEEP_ADMIN_EMAIL=${ADMIN_EMAIL:-ops@performancewest.net}
|
||||
- USAC_USERNAME=${USAC_USERNAME}
|
||||
- USAC_PASSWORD=${USAC_PASSWORD}
|
||||
# Residential SOCKS proxy for healthcare (NPPES/PECOS) Playwright flows.
|
||||
# Username "performancewest"; full URL set in .env via the ansible vault.
|
||||
- HEALTHCARE_PROXY_URL=${HEALTHCARE_PROXY_URL:-}
|
||||
- UNDETECTED_PROXY_URL=${UNDETECTED_PROXY_URL:-}
|
||||
# Healthcare (NPPES/PECOS) Playwright flows egress through the residential
|
||||
# proxy via the unauthenticated gost relay sidecar (Chromium can't do
|
||||
# authenticated SOCKS5). proxy-relay forwards to the authenticated upstream.
|
||||
- HEALTHCARE_PROXY_URL=${HEALTHCARE_PROXY_URL:-socks5://proxy-relay:11080}
|
||||
- UNDETECTED_PROXY_URL=${UNDETECTED_PROXY_URL:-socks5://proxy-relay:11080}
|
||||
- ANYTIME_MAILBOX_SIGNUP_EMAIL=${ANYTIME_MAILBOX_SIGNUP_EMAIL:-noreply@performancewest.net}
|
||||
- ANYTIME_MAILBOX_SIGNUP_PHONE=${ANYTIME_MAILBOX_SIGNUP_PHONE}
|
||||
- ANYTIME_MAILBOX_DEFAULT_PASSWORD=${ANYTIME_MAILBOX_DEFAULT_PASSWORD}
|
||||
|
|
@ -140,6 +157,7 @@ services:
|
|||
- /etc/postfix/pw-warmup-start:/etc/postfix/pw-warmup-start:ro
|
||||
depends_on:
|
||||
- api-postgres
|
||||
- proxy-relay
|
||||
restart: unless-stopped
|
||||
|
||||
# ── ERPNext CRM ─────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue