docs: Rate Limiting 구현 세부사항 확인 완료
- redis==5.0.1, slowapi==0.1.9 버전 확정 - auth-redis 네트워크 연결 정보 확인 (appnet, 172.21.0.2) - 미확인 사항 모두 해결 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1d4673f5ee
commit
51aa4f033a
@ -54,8 +54,8 @@ Frontend → Gateway(51123:8100) → rb8001(51124:8001) → OpenAI API
|
||||
1. **requirements.txt**
|
||||
- 위치: `/home/admin/robeing-gateway/requirements.txt`
|
||||
- 추가 필요 패키지:
|
||||
- redis (버전 확인 필요)
|
||||
- slowapi (버전 확인 필요)
|
||||
- redis==5.0.1
|
||||
- slowapi==0.1.9
|
||||
|
||||
2. **main.py**
|
||||
- 위치: `/home/admin/robeing-gateway/app/main.py`
|
||||
@ -88,9 +88,13 @@ app.add_exception_handler(RateLimitExceeded, rate_limit_handler) # 1줄
|
||||
@limiter.limit("20 per minute") # 1줄 추가
|
||||
```
|
||||
|
||||
### 미확인 사항
|
||||
- redis, slowapi 정확한 버전 결정 필요
|
||||
- auth-redis 네트워크 연결 방법 확인 필요
|
||||
### 확인 완료 사항
|
||||
- **패키지 버전**: redis==5.0.1, slowapi==0.1.9
|
||||
- **Redis 연결**:
|
||||
- 호스트명: auth-redis
|
||||
- 포트: 6379
|
||||
- 네트워크: appnet (robeing-gateway와 같은 네트워크)
|
||||
- IP: 172.21.0.2
|
||||
|
||||
### 배포
|
||||
- Docker 재빌드: `docker compose down && docker compose up -d --build`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user