feat(lps): DECODO residential 프록시 — 쿠팡 sticky 세션 + 주기적 IP 회전

datacenter IP + Akamai 대응. 매 요청 IP 변경은 쿠키-IP 불일치로 재챌린지를
유발하므로, sticky 세션(일정 시간 같은 IP) + 주기적 회전 방식 사용.

- search/proxy.DecodoProxy: username 에 -session-<시간창id>-sessionduration-<분> 부착
  → 창 안에선 같은 IP, 창이 지나면 새 IP. 자격증명은 .env(DECODO_*), 4개 다 있어야 활성
- coupang/adapter: proxy 주입 + 세션창 경과 시 브라우저 재기동(IP 회전). 무프록시면 직접 연결
- worker_main: 쿠팡에만 DecodoProxy 경유(네이버는 공식 API라 미적용)
- .env.example: DECODO_HOST/PORT/USERNAME/PASSWORD/SESSION_MINUTES 슬롯
- tests: 활성조건·sticky username·server형식·세션창 회전 4건 → 전체 43/43

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
민헌andClaude Opus 4.8 committed 2026-07-09 09:40:26 +09:00
1 parent d54dee4f24
commit 4de85d43ed
5 files changed
+120 -25

No files matched your search

+9
View File
@@ -13,3 +13,12 @@ NAVER_CLIENT_SECRET=""
# ── AI (상품 유사도 판정 / 검색어 생성) — OpenAI ──────────────────────
OPENAI_API_KEY=""
# ── DECODO residential 프록시 (쿠팡 전용, sticky 세션+주기적 회전) ─────
# DECODO 대시보드의 residential 게이트웨이/자격증명. 4개 다 채워야 활성화(비면 프록시 미사용).
# username 은 base 값만(코드가 -session-<id>-sessionduration-<분> 을 자동으로 붙임).
DECODO_HOST="" # 예: gate.decodo.com
DECODO_PORT="" # 예: 7000
DECODO_USERNAME=""
DECODO_PASSWORD=""
DECODO_SESSION_MINUTES="10" # 같은 IP 유지 시간(분) → 이 주기로 회전