All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 6m10s
92 lines
2.0 KiB
YAML
92 lines
2.0 KiB
YAML
# PPanel Server Configuration
|
|
# 完整配置示例
|
|
|
|
# 运行模式: debug, release, test
|
|
Model: release
|
|
# 监听地址
|
|
Host: 0.0.0.0
|
|
# 监听端口
|
|
Port: 8080
|
|
# 是否开启调试模式
|
|
Debug: false
|
|
|
|
# JWT 认证配置
|
|
JwtAuth:
|
|
AccessSecret: "ppanel-secret-key-change-me" # 请务必修改此密钥
|
|
AccessExpire: 604800 # Token 过期时间 (秒), 默认 7 天
|
|
MaxSessionsPerUser: 3 # 每个用户最大并发登录数
|
|
|
|
# 日志配置
|
|
Logger:
|
|
ServiceName: "PPanel"
|
|
Mode: "file" # console, file, volume
|
|
Encoding: "json" # json, plain
|
|
Path: "logs" # 日志文件路径
|
|
Level: "info" # debug, info, warn, error
|
|
Compress: true
|
|
KeepDays: 7
|
|
Rotation: "daily" # daily, size
|
|
|
|
# MySQL 数据库配置
|
|
MySQL:
|
|
Addr: "mysql:3306" # Docker 服务名:端口
|
|
Username: "root"
|
|
Password: "ppanel_password" # 与 docker-compose 中的 MYSQL_ROOT_PASSWORD 保持一致
|
|
Dbname: "ppanel_db"
|
|
Config: "charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai"
|
|
MaxIdleConns: 10
|
|
MaxOpenConns: 100
|
|
SlowThreshold: 1000 # 慢查询阈值 (ms)
|
|
|
|
# Redis 配置
|
|
Redis:
|
|
Host: "redis:6379" # Docker 服务名:端口
|
|
Pass: ""
|
|
DB: 0
|
|
|
|
# 管理员初始化配置 (仅在首次初始化有效,后续请在数据库管理)
|
|
Administrator:
|
|
Email: "admin@ppanel.dev"
|
|
Password: "password"
|
|
|
|
# 站点配置
|
|
Site:
|
|
Title: "PPanel"
|
|
Dec: "PPanel Panel"
|
|
Url: "https://your-domain.com"
|
|
SubUrl: "https://sub.your-domain.com"
|
|
|
|
# 邮件服务配置
|
|
Email:
|
|
Enable: false
|
|
# platform: "smtp"
|
|
# platform_config: "..."
|
|
|
|
# 验证配置
|
|
Verify:
|
|
TurnstileSiteKey: ""
|
|
TurnstileSecret: ""
|
|
LoginVerify: false
|
|
RegisterVerify: false
|
|
ResetPasswordVerify: false
|
|
|
|
# 注册配置
|
|
Register:
|
|
StopRegister: false
|
|
EnableTrial: false
|
|
TrialSubscribe: 0
|
|
TrialTime: 0
|
|
TrialTimeUnit: "hour"
|
|
EnableIpRegisterLimit: false
|
|
IpRegisterLimit: 0
|
|
IpRegisterLimitDuration: 0
|
|
|
|
# 订阅配置
|
|
Subscribe:
|
|
SingleModel: false
|
|
SubscribePath: "/v1/subscribe/config"
|
|
SubscribeDomain: ""
|
|
PanDomain: false
|
|
UserAgentLimit: false
|
|
UserAgentList: ""
|