-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
36 lines (30 loc) · 1.05 KB
/
Copy path.env.example
File metadata and controls
36 lines (30 loc) · 1.05 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
34
35
36
# Runtime
APP_ENV=local
APP_NAME=recommendation-server
APP_MODE=realtime
APP_PORT=8000
LOG_LEVEL=INFO
# Database (Java 레포와 동일 DB)
# 1) 명시 URL (권장: 로컬 개발)
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/holliverse
# DB_URL도 동일 의미로 사용 가능
# 2) ECS/Secrets Manager 분해 주입 (POSTGRES_DSN 미설정 시 자동 조합)
# - Secret JSON key(username/password)를 POSTGRES_USER/POSTGRES_PASSWORD로 매핑해 주입
# - host/port/db는 일반 env로 주입
# POSTGRES_HOST=your-instance.xxxxx.ap-northeast-2.rds.amazonaws.com
# POSTGRES_PORT=5432
# POSTGRES_DB=holliverse
# POSTGRES_USER=holliverse
# POSTGRES_PASSWORD=*****
# POSTGRES_SSLMODE=require
# 3) 배치용 raw DSN (asyncpg)
# POSTGRES_DSN=postgresql://USER:PASSWORD@HOST:5432/DBNAME?sslmode=require
# RDS 연결 시 SSL 필요하면 true (기본 false)
DATABASE_SSL=false
# OpenAI
OPENAI_API_KEY=your_openai_api_key
OPENAI_CHAT_MODEL=gpt-4o-mini
OPENAI_EMBEDDING_MODEL=text-embedding-3-small
# Recommendation
RECOMMEND_TOP_K=3
CACHE_TTL_DAYS=7