From 2b323bf2d503067a413e41d10bdc8e080842e886 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Mon, 15 Sep 2025 19:52:34 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=ED=95=98=EB=93=9C=EC=BD=94=EB=94=A9=20?= =?UTF-8?q?URL=20=EC=A0=9C=EA=B1=B0=20=EC=9E=91=EC=97=85=20=EB=AC=B8?= =?UTF-8?q?=EC=84=9C=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - auth-server, frontend-customer, robeing-gateway 하드코딩 현황 - 각 파일별 정확한 라인 번호와 하드코딩된 값 기록 - localhost, 192.168.219.*, ro-being.com 도메인 포함 - 필요한 환경변수 목록 정리 --- .../250915_hardcoded_url_removal.md | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 troubleshooting/250915_hardcoded_url_removal.md diff --git a/troubleshooting/250915_hardcoded_url_removal.md b/troubleshooting/250915_hardcoded_url_removal.md new file mode 100644 index 0000000..c4fbcf6 --- /dev/null +++ b/troubleshooting/250915_hardcoded_url_removal.md @@ -0,0 +1,54 @@ +# 하드코딩 URL 제거 작업 + +## 작성일: 2025-09-15 +## 작성자: 51123 서버 관리자 + +## 발견된 하드코딩 현황 + +### auth-server (/home/admin/auth-server) +**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` + +**app/providers/gmail_passport.py** +- Line 54: `postgresql://robeings:robeings@192.168.219.45:5432/main_db` +- Line 26: `https://auth.ro-being.com/auth/gmail/passport/callback` + +**app/providers/gmail.py** +- Line 23: `https://auth.ro-being.com/auth/gmail/callback` + +**app/main.py** +- Line 28-32: `http://localhost:3000`, `5173`, `5174`, `8000`, `10508` + +### frontend-customer (/home/admin/frontend-customer) +**src/contexts/auth-context.tsx** +- Line 22: `https://auth.ro-being.com` (기본값) +- Line 79: `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` + +### robeing-gateway (/home/admin/robeing-gateway) +**app/main.py** +- Line 128-129: `http://localhost:5173`, `http://localhost:3000` +- Line 157: `http://192.168.219.52:9024` +- 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` + +**app/database.py** +- Line 20: `postgresql+asyncpg://postgres:postgres@localhost:5432/main_db` +- Line 24: `192.168.219.52` (DEFAULT_ROBEING_HOST) + +## 필요한 환경변수 +- AUTH_SERVER_URL +- FRONTEND_URL +- DATABASE_URL +- ROBEING_HOST (51124 서버) +- MONITOR_URL +- SLACK_CALLBACK_URL +- GMAIL_CALLBACK_URL \ No newline at end of file