From 21cbd79c34328c13937d9875950306d44c063cac Mon Sep 17 00:00:00 2001 From: happybell80 Date: Sat, 6 Sep 2025 17:51:34 +0900 Subject: [PATCH] =?UTF-8?q?Update:=20=EB=89=B4=EC=8A=A4=20=EC=8B=9C?= =?UTF-8?q?=EC=8A=A4=ED=85=9C=20=ED=86=B5=ED=95=A9=20=EA=B3=84=ED=9A=8D=20?= =?UTF-8?q?-=20=EA=B2=B0=EC=A0=95=20=EC=82=AC=ED=95=AD=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - localhost 통신 방식 확정 (Docker network 제거) - JSON 파일 저장 유지 결정 - SLACK_APP_TOKEN 설정 필요 명시 - 환경변수 단순화 --- plan/250906_news_system_integration.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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. 모니터링