managarten/services/mana-api-gateway/.env.example
Till-JS fc0ed636fc feat(api-gateway): add Swagger, admin endpoints, and scheduler
- Add Swagger/OpenAPI documentation at /docs endpoint
- Add admin module for system-wide API key management
- Add scheduler for monthly credit reset and usage cleanup
- Add Docker Compose entry for Mac Mini deployment
- Document all endpoints with descriptions and examples
2026-01-29 18:03:16 +01:00

37 lines
812 B
Text

# Server
PORT=3030
NODE_ENV=development
# Database (same as mana-core-auth)
DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/manacore
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# Backend Services
SEARCH_SERVICE_URL=http://localhost:3021
STT_SERVICE_URL=http://localhost:3020
TTS_SERVICE_URL=http://localhost:3022
# Auth Service (for JWT validation & credits)
MANA_CORE_AUTH_URL=http://localhost:3001
# API Key Generation
API_KEY_PREFIX_LIVE=sk_live_
API_KEY_PREFIX_TEST=sk_test_
# Rate Limiting Defaults
DEFAULT_RATE_LIMIT=10
DEFAULT_MONTHLY_CREDITS=100
# CORS
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# Development Auth Bypass
DEV_BYPASS_AUTH=true
DEV_USER_ID=00000000-0000-0000-0000-000000000000
# Admin Access (comma-separated user IDs)
ADMIN_USER_IDS=