chore(proxy): DataImpulse'i birincil yap, Floxy default'unu kaldır
Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
Floxy kalıcı olarak devre dışı (bakiye/tünel ölü — pcat+emex loglarında sürekli "Floxy unhealthy → DataImpulse failover"). Floxy-primary her çağrıda önce bir başarısız deneme yakıp sonra failover ediyordu. DataImpulse zaten kanıtlanmış çalışıyor (call-leg %97,6). PCAT_PROXY_PROVIDER ve EMEX_PROXY_PROVIDER default'ları floxy→dataimpulse (pcat auth + emex browser + emex HTTP ayağı). Floxy hâlâ env ile seçilebilir (PCAT_PROXY_PROVIDER=floxy / EMEX_PROXY_PROVIDER=floxy); failover makinesi dormant kalıyor. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -94,14 +94,16 @@ export class EmexBrowserService implements OnModuleInit, OnModuleDestroy {
|
||||
this.semaphore = new Semaphore(MAX_CONCURRENT_PAGES);
|
||||
|
||||
this.useProxy = this.configService.get<string>("EMEX_USE_PROXY", "true") === "true";
|
||||
// Default dataimpulse: Floxy retired 2026-07 (permanently down). Set
|
||||
// EMEX_PROXY_PROVIDER=floxy to re-enable it.
|
||||
const rawProvider = this.configService
|
||||
.get<string>("EMEX_PROXY_PROVIDER", "floxy")
|
||||
.get<string>("EMEX_PROXY_PROVIDER", "dataimpulse")
|
||||
.toLowerCase();
|
||||
this.proxyProvider = !this.useProxy
|
||||
? "none"
|
||||
: rawProvider === "dataimpulse" || rawProvider === "none"
|
||||
? (rawProvider as "dataimpulse" | "none")
|
||||
: "floxy";
|
||||
: rawProvider === "floxy" || rawProvider === "none"
|
||||
? (rawProvider as "floxy" | "none")
|
||||
: "dataimpulse";
|
||||
this.proxyHost = this.configService.get<string>("EMEX_PROXY_HOST", "74.81.81.81");
|
||||
this.proxyPortStart = this.configService.get<number>("EMEX_PROXY_PORT_START", 10001);
|
||||
this.proxyPortEnd = this.configService.get<number>("EMEX_PROXY_PORT_END", 10099);
|
||||
|
||||
@@ -215,11 +215,15 @@ export class EmexService {
|
||||
// random-port-per-call primary proved that), but a sticky Floxy IP across the
|
||||
// chained flow is still the safest choice — and avoids DataImpulse's ~50% dead
|
||||
// ports that were eating the decode budget before reaching the Floxy fallback.
|
||||
// Default dataimpulse: Floxy retired 2026-07 (permanently down). Set
|
||||
// EMEX_PROXY_PROVIDER=floxy to re-enable it.
|
||||
this.emexProxyProvider = !useProxy
|
||||
? "none"
|
||||
: (() => {
|
||||
const p = this.configService.get<string>("EMEX_PROXY_PROVIDER", "floxy").toLowerCase();
|
||||
return p === "dataimpulse" || p === "none" ? p : "floxy";
|
||||
const p = this.configService
|
||||
.get<string>("EMEX_PROXY_PROVIDER", "dataimpulse")
|
||||
.toLowerCase();
|
||||
return p === "floxy" || p === "none" ? p : "dataimpulse";
|
||||
})();
|
||||
// Default agent for the low-stakes image-dims path; fetchEmexHtml builds a
|
||||
// fresh agent per request so a flaky exit can't pin every call.
|
||||
|
||||
Reference in New Issue
Block a user