-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
34 lines (26 loc) · 1.06 KB
/
.env.example
File metadata and controls
34 lines (26 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Google Cloud Vision API 설정
# 1. Google Cloud Console에서 서비스 계정 JSON 키를 다운로드
# 2. 다운로드한 JSON 파일을 credentials/ 디렉토리에 저장
# 3. 상대 경로 또는 절대 경로 모두 사용 가능
# 상대 경로 사용 (Docker와 로컬 모두 동일하게 사용 가능)
GOOGLE_APPLICATION_CREDENTIALS=credentials/google-vision-key.json
# 또는 절대 경로 사용
# GOOGLE_APPLICATION_CREDENTIALS=/app/credentials/google-vision-key.json
# 로컬 개발 환경 예시
# Windows: GOOGLE_APPLICATION_CREDENTIALS=credentials\google-vision-key.json
# Linux/Mac: GOOGLE_APPLICATION_CREDENTIALS=./credentials/google-vision-key.json
# Google Generative AI API 설정 (위험도 분석 기능용)
# Google AI Studio에서 API 키를 생성하여 설정
GOOGLE_API_KEY=your-google-api-key-here
# API 서버 설정
PORT=8000
HOST=0.0.0.0
WORKERS=3
# 로깅 설정
LOG_LEVEL=INFO
LOG_FILE=logs/app.log
# 성능 최적화 (t2.micro용)
# Python 최적화 모드
PYTHONOPTIMIZE=1
# 메모리 반환 적극적으로
MALLOC_TRIM_THRESHOLD_=100000