43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Solus Configuration
|
|
PORT=8787
|
|
|
|
# PostgreSQL Database
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_NAME=solus
|
|
DB_USER=solus
|
|
DB_PASSWORD=solus
|
|
# Oder alternativ als Connection String:
|
|
# DATABASE_URL=postgresql://solus:solus@localhost:5432/solus
|
|
|
|
# AI Provider (MiniMax, OpenAI, OpenRouter, Gemini, Anthropic, LiteLLM)
|
|
MINIMAX_API_KEY=
|
|
MINIMAX_MODEL=MiniMax-M3
|
|
|
|
# Alternative Provider:
|
|
# AI_PROVIDER=openrouter
|
|
# AI_API_KEY=
|
|
# AI_MODEL=
|
|
# AI_BASE_URL=
|
|
|
|
# Shared secret protecting /api/admin/* (REQUIRED for admin API access).
|
|
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
|
ADMIN_TOKEN=
|
|
|
|
# CORS: comma-separated list of allowed browser origins.
|
|
# Defaults to http://localhost:8787 and http://127.0.0.1:8787 when unset.
|
|
#CORS_ORIGINS=https://solus.example.com,https://solus.example.net
|
|
|
|
# Rate limiting (per IP, per minute):
|
|
RATE_LIMIT_MAX=300
|
|
ADMIN_RATE_MAX=60
|
|
|
|
# Outbound AI request timeout (milliseconds, default 120000):
|
|
#AI_FETCH_TIMEOUT_MS=120000
|
|
|
|
# Background simulation: max posts per feed tick (default 10):
|
|
#FEED_TICK_MAX_POSTS=10
|
|
|
|
# Where uploaded images are stored (default ./uploads):
|
|
#UPLOAD_DIR=./uploads
|