-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
33 lines (27 loc) · 991 Bytes
/
Copy path.env.example
File metadata and controls
33 lines (27 loc) · 991 Bytes
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
# LLM Configuration (OpenAI-compatible endpoint)
OPENAI_API_KEY=your_api_key
# OPENAI_BASE_URL=https://api.openai.com/v1
# OPENAI_MODEL=gpt-4o-mini
# Runtime environment
# ENVIRONMENT=dev # dev | prod | production
# VITE_LEGAL_CONTACT_EMAIL=hello@your-domain.com
# Hosted safety fuses
# HOSTED_MAX_USERS=100
# AI_MANUAL_DISABLE=false
# AI_HARD_STOP_USD=150
# LLM_DEFAULT_INPUT_COST_PER_MILLION_USD=0.0
# LLM_DEFAULT_OUTPUT_COST_PER_MILLION_USD=0.0
# Context Configuration
# MAX_CONTEXT_CHAPTERS=5
# DEFAULT_CONTINUATION_TOKENS=4000
# JWT Authentication (REQUIRED in production)
JWT_SECRET_KEY=replace-with-random-64-char-secret
# JWT_ALGORITHM=HS256
# JWT_EXPIRE_MINUTES=1440
# CORS (comma-separated origins)
# CORS_ALLOWED_ORIGINS=["http://localhost:5173"]
# Database Configuration (SQLite for dev, PostgreSQL for production)
# DATABASE_URL=sqlite:////abs/path/to/novels.db
# DATABASE_URL=postgresql://scngs:password@localhost:5432/scngs
# SCNGS_DATA_DIR=data
# DB_AUTO_CREATE=false