포트 설정 통일: ai-python 서비스 8087 포트로 변경

- ai-python/.env: PORT를 8086에서 8087로 변경
- ai-python/.env.example: PORT를 8086에서 8087로 변경
- meeting/application.yml: AI Service 설정 추가 (기본 포트 8087)
- develop/dev/ai-frontend-integration-guide.md: 문서 업데이트 (8087 포트 반영)

목적: 다른 개발자들의 테스트 환경 통일 및 혼란 방지
This commit is contained in:
Minseo-Jo
2025-10-29 17:45:12 +09:00
parent 8dd830c25f
commit c68df2f733
15 changed files with 227 additions and 10 deletions
+8 -8
View File
@@ -8,7 +8,7 @@
### Endpoint
```
GET http://localhost:8086/api/ai/suggestions/meetings/{meeting_id}/stream
GET http://localhost:8087/api/v1/ai/suggestions/meetings/{meeting_id}/stream
```
### Parameters
@@ -68,7 +68,7 @@ data: {"suggestions":[...]}
```javascript
const meetingId = 'your-meeting-id';
const aiServiceUrl = 'http://localhost:8086';
const aiServiceUrl = 'http://localhost:8087';
let eventSource = null;
// SSE 연결
@@ -245,10 +245,10 @@ interface RealtimeSuggestionsResponse {
### 1. 로컬 환경 테스트
```bash
# AI Service 실행 확인
curl http://localhost:8086/health
curl http://localhost:8087/health
# SSE 연결 테스트 (3초 후 자동 종료)
timeout 30 curl -N http://localhost:8086/api/ai/suggestions/meetings/test-meeting-001/stream
# SSE 연결 테스트 (30초 후 자동 종료)
timeout 30 curl -N http://localhost:8087/api/v1/ai/suggestions/meetings/test-meeting-001/stream
```
### 2. 브라우저 테스트
@@ -265,8 +265,8 @@ timeout 30 curl -N http://localhost:8086/api/ai/suggestions/meetings/test-meetin
## ⚙️ 환경 설정
### Backend (Python AI Service)
- **Port**: 8086
- **Endpoint**: `/api/ai/suggestions/meetings/{meeting_id}/stream`
- **Port**: 8087
- **Endpoint**: `/api/v1/ai/suggestions/meetings/{meeting_id}/stream`
- **CORS**: `http://localhost:8888` 허용
### 임계값 설정
@@ -304,7 +304,7 @@ console.log('Ping received:', 'alive-3');
- Transfer-Encoding: `chunked`
### 문제 발생 시 확인
1. AI Service 실행 여부: `curl http://localhost:8086/health`
1. AI Service 실행 여부: `curl http://localhost:8087/health`
2. CORS 헤더: Network 탭 → Headers → Response Headers
3. 이벤트 수신: EventStream 탭에서 실시간 데이터 확인