35 lines
642 B
Plaintext
35 lines
642 B
Plaintext
# 服务器配置
|
|
PORT=3000
|
|
HOST=0.0.0.0
|
|
|
|
# 认证配置
|
|
AUTH_KEY=sk-123456
|
|
|
|
# 应用地址
|
|
APP_URL=http://localhost:3000
|
|
|
|
# CORS配置
|
|
ENABLE_CORS=true
|
|
ALLOWED_ORIGINS=*
|
|
ALLOWED_METHODS=GET,POST,PUT,DELETE,OPTIONS
|
|
ALLOWED_HEADERS=*
|
|
ALLOW_CREDENTIALS=false
|
|
|
|
# 性能配置
|
|
MAX_CONCURRENT_REQUESTS=100
|
|
KEY_VALIDATION_POOL_SIZE=50
|
|
ENABLE_GZIP=true
|
|
|
|
# 数据库配置
|
|
DATABASE_DSN=user:password@tcp(localhost:3306)/gpt_load?charset=utf8mb4&parseTime=True&loc=Local
|
|
|
|
# Redis配置
|
|
REDIS_DSN=redis://:password@localhost:6379/1
|
|
|
|
# 日志配置
|
|
LOG_LEVEL=info
|
|
LOG_FORMAT=text
|
|
LOG_ENABLE_FILE=false
|
|
LOG_FILE_PATH=logs/app.log
|
|
LOG_ENABLE_REQUEST=true
|