diff --git a/plan/250906_news_system_integration.md b/plan/250906_news_system_integration.md index 49573c2..074ff0f 100644 --- a/plan/250906_news_system_integration.md +++ b/plan/250906_news_system_integration.md @@ -83,23 +83,23 @@ async def handle_interaction(request: Request): async def publish_to_squarespace(news_data): async with httpx.AsyncClient() as client: response = await client.post( - "http://skill-publish:8511/publish", + "http://localhost:8511/publish", json=news_data ) ``` -**결정 필요**: 내부 통신 방식 (Docker network vs localhost) +**결정**: localhost 사용 (rb8001이 모든 스킬을 localhost로 호출 중) ### 3.4 데이터 저장 전략 **현재**: JSON 파일 (/app/data/news_state.json) **향후**: PostgreSQL rb_news 테이블 -**결정 필요**: 마이그레이션 시점, 스키마 설계 +**결정**: JSON 유지 (DB 작업 완료 후 마이그레이션) ## 4. 환경변수 설정 ### rb8001 (.env) ```bash -SKILL_PUBLISH_URL=http://skill-publish:8511 # 확인 필요 -SLACK_APP_TOKEN=xapp-... # Interactive 필요시 +SLACK_APP_TOKEN=xapp-... # 설정 필요 (현재 빈값) +# SKILL_PUBLISH_URL 불필요 (localhost 하드코딩) ``` ### skill-publish (.env) @@ -108,10 +108,10 @@ SLACK_APP_TOKEN=xapp-... # Interactive 필요시 ``` ## 5. Slack App 설정 -**확인 필요**: -- Interactivity & Shortcuts 활성화 여부 -- Request URL: https://ro-being.com/api/slack/interactive -- OAuth Scopes: chat:write, commands, im:history +**필요 작업**: +- Interactivity & Shortcuts 활성화 (현재 SLACK_APP_TOKEN 빈값) +- Request URL 설정: https://ro-being.com/api/slack/interactive +- OAuth Scopes 확인: chat:write, commands, im:history ## 6. 구현 우선순위 @@ -139,7 +139,7 @@ SLACK_APP_TOKEN=xapp-... # Interactive 필요시 ## 8. 리스크 및 대안 - **Slack 권한 부족**: App 재설치 필요할 수 있음 -- **Docker 네트워크**: 통신 실패시 localhost 사용 +- **통신 실패**: 모든 서비스 localhost 사용으로 해결 - **DB 지연**: JSON 파일로 충분히 운영 가능 ## 9. 모니터링