# ================================== # SERVER CONFIGURATION # ================================== # Server host and port PORT=3001 HOST=0.0.0.0 # Server timeout settings (in seconds) SERVER_READ_TIMEOUT=60 SERVER_WRITE_TIMEOUT=600 SERVER_IDLE_TIMEOUT=120 SERVER_GRACEFUL_SHUTDOWN_TIMEOUT=10 # ================================== # CLUSTER CONFIGURATION # ================================== # Set to true for slave nodes in cluster setup IS_SLAVE=false # ================================== # LOCALIZATION # ================================== # Timezone setting TZ=Asia/Shanghai # ================================== # SECURITY # ================================== # Authentication key is required to protect the management API and UI. # Please use a long, random string for security. AUTH_KEY= # ENCRYPTION_KEY encrypts API keys at rest. Use any string or leave empty to disable. ENCRYPTION_KEY= # ================================== # DATABASE CONFIGURATION # ================================== # Database connection string (leave empty to use SQLite at ./data/gpt-load.db) # MySQL example: # DATABASE_DSN=root:123456@tcp(mysql:3306)/gpt-load?charset=utf8mb4&parseTime=True&loc=Local # PostgreSQL example: # DATABASE_DSN=postgres://postgres:123456@postgres:5432/gpt-load?sslmode=disable DATABASE_DSN= # ================================== # CACHE CONFIGURATION # ================================== # Redis connection string (leave empty to use in-memory storage) # Example: redis://redis:6379/0 REDIS_DSN= # ================================== # PERFORMANCE # ================================== # Maximum concurrent requests MAX_CONCURRENT_REQUESTS=100 # ================================== # CORS CONFIGURATION # ================================== # Enable Cross-Origin Resource Sharing ENABLE_CORS=true ALLOWED_ORIGINS=* ALLOWED_METHODS=GET,POST,PUT,DELETE,OPTIONS ALLOWED_HEADERS=* ALLOW_CREDENTIALS=false # ================================== # LOGGING CONFIGURATION # ================================== # Log level (debug, info, warn, error) LOG_LEVEL=info # Log format (text, json) LOG_FORMAT=text # Enable file logging LOG_ENABLE_FILE=true # Log file path LOG_FILE_PATH=./data/logs/app.log