From 587392975e2bb72ae6a875b300dfce42b25f68fd Mon Sep 17 00:00:00 2001 From: happybell80 Date: Wed, 24 Sep 2025 21:51:41 +0900 Subject: [PATCH] Update hardcoded URL removal troubleshooting doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ€– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../250915_hardcoded_url_removal.md | 59 ++++++++++++------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/troubleshooting/250915_hardcoded_url_removal.md b/troubleshooting/250915_hardcoded_url_removal.md index 6495938..5523e09 100644 --- a/troubleshooting/250915_hardcoded_url_removal.md +++ b/troubleshooting/250915_hardcoded_url_removal.md @@ -1,21 +1,22 @@ # ν•˜λ“œμ½”λ”© URL 제거 μž‘μ—… -## μž‘μ„±μΌ: 2025-09-15 +## 졜초 μž‘μ„±: 2025-09-15 +## μ΅œμ’… μˆ˜μ •: 2025-09-23 ## μž‘μ„±μž: 51123 μ„œλ²„ κ΄€λ¦¬μž ## μ •μ • 사항 (λ¬Έμ„œ vs μ½”λ“œ 뢈일치) -- ROBEING_HOST λ³€μˆ˜λͺ…은 μ‹€μ œ μ½”λ“œμ—μ„œ μ‚¬μš©λ˜μ§€ μ•ŠμŒ. robeing-gatewayλŠ” `DEFAULT_ROBEING_HOST`/`DEFAULT_ROBEING_PORT`/`DEFAULT_ROBEING_ID`λ₯Ό μ‚¬μš©ν•¨. +- ROBEING_HOST λ³€μˆ˜λͺ…은 μ‹€μ œ μ½”λ“œμ—μ„œ μ‚¬μš©λ˜μ§€ μ•ŠμŒ. robeing-gatewayλŠ” `ROBEING_DEFAULT_HOST`/`ROBEING_DEFAULT_PORT`λ₯Ό μ‚¬μš©ν•¨ (2025-09-23 κΈ°μ€€). - SLACK_CALLBACK_URL, GMAIL_CALLBACK_URL은 μ½”λ“œμ— μ—†μŒ. auth-serverλŠ” `SLACK_REDIRECT_URI`, `GOOGLE_REDIRECT_URI`, `GOOGLE_PASSPORT_REDIRECT_URI`λ₯Ό μ‚¬μš©ν•¨. - FRONTEND_URL은 μ½”λ“œμ—μ„œ 직접 μ‚¬μš©ν•˜μ§€ μ•ŠμŒ. ν”„λ‘ νŠΈλŠ” `VITE_AUTH_SERVER_URL`을 μ‚¬μš©ν•˜κ³ , CORS 도메인은 μ½”λ“œμ— μƒμˆ˜λ‘œ μ •μ˜λ˜μ–΄ 있음. ## 발견된 ν•˜λ“œμ½”λ”© ν˜„ν™© -### auth-server +### auth-server (2025-09-23 ν˜„μž¬) **app/providers/slack.py** -- Line 79, 187, 189: `http://localhost:3000` -- Line 158, 165, 177: `http://localhost:3000/login?error=` -- Line 94: `https://auth.ro-being.com/auth/slack/login/callback` -- Line 203: `https://auth.ro-being.com/auth/slack/login/callback` +- Line 79, 187, 189: `http://localhost:3000` βœ… μ—¬μ „νžˆ 쑴재 +- Line 158, 165, 177: `http://localhost:3000/login?error=` βœ… μ—¬μ „νžˆ 쑴재 +- Line 94: `https://auth.ro-being.com/auth/slack/login/callback` (확인 ν•„μš”) +- Line 203: `https://auth.ro-being.com/auth/slack/login/callback` (확인 ν•„μš”) **app/providers/gmail_passport.py** - Line 54: `postgresql://robeings:robeings@192.168.219.45:5432/main_db` @@ -27,18 +28,22 @@ **app/main.py** - Line 28-32: `http://localhost:3000`, `5173`, `5174`, `8000`, `10508` -### frontend-customer +### frontend-customer (2025-09-23 ν˜„μž¬) **src/contexts/auth-context.tsx** -- Line 22: `https://auth.ro-being.com` (κΈ°λ³Έκ°’) -- Line 79: `https://auth.ro-being.com/auth/verify` +- Line 23: `https://auth.ro-being.com` (κΈ°λ³Έκ°’) βœ… μ—¬μ „νžˆ 쑴재 +- Line 80: `https://auth.ro-being.com/auth/verify` βœ… μ—¬μ „νžˆ 쑴재 **src/components/skills-items-panel.tsx** - Line 361: `https://auth.ro-being.com/auth/gmail/passport` - Line 432: `https://auth.ro-being.com/auth/slack/passport/install` -### rb8001 +### rb8001 (2025-09-23 ν˜„μž¬) +**app/core/config.py** +- Line 35-36: `postgresql://postgres:postgres@localhost` βœ… κΈ°λ³Έκ°’μœΌλ‘œ 쑴재 +- Line 15: `LUNCH_WORLDCUP_CHANNEL_ID` βœ… 좔가됨 (ν™˜κ²½λ³€μˆ˜ 지원) + **app/commands/skill_commands.py** -- ν•˜λ“œμ½”λ”©: `localhost:8502`, `localhost:8505` URL +- ν•˜λ“œμ½”λ”©: `localhost:8502`, `localhost:8505` URL (확인 ν•„μš”) **app/skills/email_integration.py** - Line 37: `http://192.168.219.45:9000/api/slack/mapping/{slack_id}` @@ -54,14 +59,13 @@ **app/brain/state_client.py** - Line 17: `http://localhost:8507` (STATE_SERVICE_URL κΈ°λ³Έκ°’) -### robeing-gateway +### robeing-gateway (2025-09-23 ν˜„μž¬) **app/main.py** -- Line 128-129: `http://localhost:5173`, `http://localhost:3000` -- Line 157: `http://192.168.219.52:9024` (MONITOR_URL둜 λΆ€λΆ„ ν™˜κ²½λ³€μˆ˜ν™”λ¨) -- Line 304: `http://192.168.219.52:9024/api/stats/{robeing_id}` (ν•˜λ“œμ½”λ”©) -- Line 383: `http://192.168.219.52:9024` -- Line 567: `http://192.168.219.52:8001/api/slack/events` -- Line 620: `http://192.168.219.52:8001/api/slack/interactive` +- ❌ root μ—”λ“œν¬μΈνŠΈ 제거됨 (λ³΄μ•ˆ κ°œμ„ ) +- Line 205: ν™˜κ²½λ³€μˆ˜ μ‚¬μš© (`robeing_info['host']`, `robeing_info['port']`) +- Line 552: `ROBEING_DEFAULT_HOST`, `ROBEING_DEFAULT_PORT` ν™˜κ²½λ³€μˆ˜ μ‚¬μš© βœ… κ°œμ„ λ¨ +- Line 605: `ROBEING_DEFAULT_HOST`, `ROBEING_DEFAULT_PORT` ν™˜κ²½λ³€μˆ˜ μ‚¬μš© βœ… κ°œμ„ λ¨ +- ν•˜λ“œμ½”λ”©λœ IP λŒ€λΆ€λΆ„ 제거됨 **app/database.py** - Line 20: `postgresql+asyncpg://postgres:postgres@localhost:5432/main_db` @@ -123,13 +127,26 @@ **server-nginx-default** - proxy_pass에 `http://localhost:*`, `http://192.168.219.52:*` λ‹€μˆ˜ κ³ μ • -## μ‹€μ œ μ‚¬μš©λ˜λŠ” ν™˜κ²½λ³€μˆ˜ +## μ‹€μ œ μ‚¬μš©λ˜λŠ” ν™˜κ²½λ³€μˆ˜ (2025-09-23 μ—…λ°μ΄νŠΈ) - VITE_AUTH_SERVER_URL (frontend-customer) - DATABASE_URL (μ—¬λŸ¬ μ„œλΉ„μŠ€ 곡톡) -- DEFAULT_ROBEING_HOST, DEFAULT_ROBEING_PORT, DEFAULT_ROBEING_ID (robeing-gateway) +- ROBEING_DEFAULT_HOST, ROBEING_DEFAULT_PORT (robeing-gateway) βœ… λ³€μˆ˜λͺ… 변경됨 - MONITOR_URL (robeing-gateway) - SLACK_REDIRECT_URI, GOOGLE_REDIRECT_URI, GOOGLE_PASSPORT_REDIRECT_URI (auth-server) - SKILL_EMAIL_URL, SKILL_NEWS_URL, SKILL_SLACK_URL, SKILL_EMBEDDING_URL, STATE_SERVICE_URL (rb8001 및 κ΄€λ ¨ μŠ€ν‚¬) +- LUNCH_WORLDCUP_CHANNEL_ID (rb8001) βœ… μ‹ κ·œ μΆ”κ°€ + +## μ§„ν–‰ 상황 (2025-09-23) +### μ™„λ£Œλœ μž‘μ—… +- βœ… robeing-gateway: Pydantic v2 λ§ˆμ΄κ·Έλ ˆμ΄μ…˜ μ™„λ£Œ +- βœ… robeing-gateway: ν•˜λ“œμ½”λ”©λœ IP λŒ€λΆ€λΆ„ ν™˜κ²½λ³€μˆ˜λ‘œ λŒ€μ²΄ +- βœ… robeing-gateway: root μ—”λ“œν¬μΈνŠΈ 제거 (λ³΄μ•ˆ κ°œμ„ ) +- βœ… rb8001: LUNCH_WORLDCUP_CHANNEL_ID ν™˜κ²½λ³€μˆ˜ μΆ”κ°€ + +### λ―Έμ™„λ£Œ ν•­λͺ© +- ⚠️ auth-server: localhost:3000 ν•˜λ“œμ½”λ”© μ—¬μ „νžˆ 쑴재 +- ⚠️ frontend-customer: auth.ro-being.com ν•˜λ“œμ½”λ”© 쑴재 (κΈ°λ³Έκ°’) +- ⚠️ 각 skill μ„œλΉ„μŠ€λ“€μ˜ localhost URL 확인 ν•„μš” ## ꡐ체 κ°€μ΄λ“œ (μš”μ•½) - μ½”λ“œ μƒμˆ˜μ— 직접 λ°•νžŒ URL/IP/포트λ₯Ό μ „λΆ€ ν™˜κ²½λ³€μˆ˜λ‘œ μΉ˜ν™˜ν•œλ‹€. 이미 μ‘΄μž¬ν•˜λŠ” ν‚€λ₯Ό μš°μ„  μ‚¬μš©ν•˜κ³ , 미쑴재 μ‹œ μƒˆ ν‚€λ₯Ό μ •μ˜ν•œλ‹€.