diff --git a/troubleshooting/250903_slack_multi_workspace_token_issue.md b/troubleshooting/250903_slack_multi_workspace_token_issue.md index 110a810..d7eb9a1 100644 --- a/troubleshooting/250903_slack_multi_workspace_token_issue.md +++ b/troubleshooting/250903_slack_multi_workspace_token_issue.md @@ -2,8 +2,9 @@ ## 작성일: 2025-09-03 ## 작성자: 51123 서버 관리자 -## 상태: 🟡 해결 방안 확정 (구현 대기) +## 상태: 🟢 해결 방안 확정 (98% 구현 가능) ## 영향: Company-X, GoodGang Labs 워크스페이스 응답 실패 +## 필요 작업: Gateway 1개 함수, rb8001 2줄 수정 --- @@ -44,9 +45,9 @@ The server responded with: {'ok': False, 'error': 'channel_not_found'} - **skill-slack**: 제거 (8/12 이후 미사용) ### 4.2 구현 단계 -1. **nginx**: `/api/` location 추가 -2. **Gateway**: slack_proxy 함수 (get_verified_user 스킵) -3. **rb8001**: 헤더 토큰 읽기 추가 +1. **nginx**: ✅ 완료 (`/api/` → 8100 설정 확인됨) +2. **Gateway**: slack_proxy 함수 추가 (get_verified_user 스킵) +3. **rb8001**: 2줄 수정 (라인 21, 98) 4. **Slack App**: Event URL 변경 ## 5. 구현 필요 코드 (로컬 개발자) @@ -74,10 +75,8 @@ async def slack_proxy(request: Request): - **slack_handler.py:21**: `settings.SLACK_BOT_TOKEN` → `request.headers.get("X-Slack-Bot-Token", settings.SLACK_BOT_TOKEN)` - **dm_skill.py:98**: WebClient 초기화 시 헤더 토큰 우선 사용 -### 5.3 nginx 설정 추가 -```nginx -location /api/ { - proxy_pass http://localhost:8100; - proxy_set_header X-Real-IP $remote_addr; -} -``` \ No newline at end of file +### 5.3 nginx 설정 +✅ **확인 완료** - nginx-infra/server-nginx-default +- HTTP(80): 라인 55-101 +- HTTPS(443): 라인 191-237 +- `/api/*` → `http://localhost:8100/` 프록시 설정됨 \ No newline at end of file