fix: 优化配置

This commit is contained in:
tbphp
2025-06-06 22:09:20 +08:00
parent 1faa0b1b73
commit 3a9ea5b33e
5 changed files with 215 additions and 17 deletions

View File

@@ -50,6 +50,21 @@ DISABLE_COMPRESSION=true
# 缓冲区大小(字节)
BUFFER_SIZE=32768
# ===========================================
# 日志配置
# ===========================================
# 日志级别 (debug, info, warn, error)
LOG_LEVEL=info
# 日志格式 (text, json)
LOG_FORMAT=text
# 启用文件日志
LOG_ENABLE_FILE=false
# 日志文件路径
LOG_FILE_PATH=logs/app.log
# ===========================================
# 认证配置
# ===========================================
@@ -65,11 +80,4 @@ ENABLE_CORS=true
# 允许的来源(逗号分隔,* 表示允许所有)
ALLOWED_ORIGINS=*
# ===========================================
# 性能配置
# ===========================================
# HTTP 连接池最大连接数
MAX_SOCKETS=50
# HTTP 连接池最大空闲连接数
MAX_FREE_SOCKETS=10