docs: 하드코딩 URL 제거 작업 문서 작성

- auth-server, frontend-customer, robeing-gateway 하드코딩 현황
- 각 파일별 정확한 라인 번호와 하드코딩된 값 기록
- localhost, 192.168.219.*, ro-being.com 도메인 포함
- 필요한 환경변수 목록 정리
This commit is contained in:
happybell80 2025-09-15 19:52:34 +09:00
parent 64a77618fa
commit 2b323bf2d5

View File

@ -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