-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
73 lines (61 loc) · 3.26 KB
/
.env.example
File metadata and controls
73 lines (61 loc) · 3.26 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# ==================================================
# Application Settings
# ==================================================
APP_ENV=development # Application environment (development | staging | production)
PROJECT_NAME="AgentStack"
VERSION=1.0.0
DEBUG=true
# ==================================================
# API Settings
# ==================================================
API_V1_STR=/api/v1 # Base path prefix for API versioning
# ==================================================
# CORS (Cross-Origin Resource Sharing) Settings
# ==================================================
# Comma-separated list of allowed frontend origins
ALLOWED_ORIGINS="http://localhost:3000,http://localhost:8000"
# ==================================================
# Langfuse Observability Settings
# ==================================================
# Used for LLM tracing, monitoring, and analytics
LANGFUSE_PUBLIC_KEY="your-langfuse-public-key" # Public Langfuse API key
LANGFUSE_SECRET_KEY="your-langfuse-secret-key" # Secret Langfuse API key
LANGFUSE_HOST=https://cloud.langfuse.com # Langfuse cloud endpoint
# ==================================================
# LLM (Large Language Model) Settings
# ==================================================
OPENAI_API_KEY="your-llm-api-key" # API key for LLM provider (e.g. OpenAI)
DEFAULT_LLM_MODEL=gpt-4o-mini # Default model used for chat/completions
DEFAULT_LLM_TEMPERATURE=0.2 # Controls randomness (0.0 = deterministic, 1.0 = creative)
# ==================================================
# JWT (Authentication) Settings
# ==================================================
JWT_SECRET_KEY="your-jwt-secret-key" # Secret used to sign JWT tokens
JWT_ALGORITHM=HS256 # JWT signing algorithm
JWT_ACCESS_TOKEN_EXPIRE_DAYS=30 # Token expiration time (in days)
# ==================================================
# Database (PostgreSQL) Settings
# ==================================================
POSTGRES_HOST=db # Database host (Docker service name or hostname)
POSTGRES_DB=mydb # Database name
POSTGRES_USER=myuser # Database username
POSTGRES_PORT=5432 # Database port
POSTGRES_PASSWORD=mypassword # Database password
# Connection pooling settings
POSTGRES_POOL_SIZE=5 # Base number of persistent DB connections
POSTGRES_MAX_OVERFLOW=10 # Extra connections allowed above pool size
# ==================================================
# Rate Limiting Settings (SlowAPI)
# ==================================================
# Default limits applied to all routes
RATE_LIMIT_DEFAULT="1000 per day,200 per hour"
# Endpoint-specific limits
RATE_LIMIT_CHAT="100 per minute" # Chat endpoint
RATE_LIMIT_CHAT_STREAM="100 per minute" # Streaming chat endpoint
RATE_LIMIT_MESSAGES="200 per minute" # Message creation endpoint
RATE_LIMIT_LOGIN="100 per minute" # Login/auth endpoint
# ==================================================
# Logging Settings
# ==================================================
LOG_LEVEL=DEBUG # Logging verbosity (DEBUG, INFO, WARNING, ERROR)
LOG_FORMAT=console # Log output format (console | json)