113 lines
2.0 KiB
Plaintext
113 lines
2.0 KiB
Plaintext
Host: 0.0.0.0
|
|
Port: 8080
|
|
Debug: false
|
|
|
|
JwtAuth:
|
|
AccessSecret: CHANGE_ME_TO_A_LONG_RANDOM_SECRET
|
|
AccessExpire: 604800
|
|
|
|
Logger:
|
|
ServiceName: PPanel
|
|
Mode: console
|
|
Encoding: plain
|
|
TimeFormat: "2006-01-02 15:04:05.000"
|
|
Path: logs
|
|
Level: info
|
|
MaxContentLength: 0
|
|
Compress: false
|
|
Stat: true
|
|
KeepDays: 7
|
|
StackCooldownMillis: 100
|
|
MaxBackups: 7
|
|
MaxSize: 100
|
|
Rotation: daily
|
|
FileTimeFormat: "2006-01-02T15:04:05.000Z07:00"
|
|
|
|
MySQL:
|
|
Addr: YOUR_TOKYO_RDS_ENDPOINT:3306
|
|
Dbname: hifast
|
|
Username: admin
|
|
Password: CHANGE_ME_TO_TOKYO_RDS_PASSWORD
|
|
Config: charset=utf8mb4&parseTime=true&loc=Asia%2FTokyo
|
|
MaxIdleConns: 10
|
|
MaxOpenConns: 100
|
|
SlowThreshold: 1000
|
|
|
|
Redis:
|
|
Host: 127.0.0.1:6379
|
|
Pass: CHANGE_ME_TO_TOKYO_REDIS_PASSWORD
|
|
DB: 0
|
|
PoolSize: 100
|
|
MinIdleConns: 10
|
|
MaxRetries: 3
|
|
PoolTimeout: 4
|
|
IdleTimeout: 300
|
|
MaxConnAge: 0
|
|
DialTimeout: 5
|
|
ReadTimeout: 3
|
|
WriteTimeout: 3
|
|
|
|
Trace:
|
|
Name: ppanel-server
|
|
Endpoint: 127.0.0.1:4317
|
|
Sampler: 0.1
|
|
Batcher: otlpgrpc
|
|
|
|
Site:
|
|
Host: api-jp.hifast.biz
|
|
SiteName: HiFastVPN
|
|
|
|
Administrator:
|
|
Email: admin@example.com
|
|
Password: CHANGE_ME_TO_STRONG_ADMIN_PASSWORD
|
|
|
|
Telegram:
|
|
Enable: false
|
|
BotID: 0
|
|
BotName: ""
|
|
BotToken: ""
|
|
GroupChatID: ""
|
|
EnableNotify: false
|
|
WebHookDomain: ""
|
|
|
|
Kutt:
|
|
Enable: false
|
|
ApiURL: ""
|
|
ApiKey: ""
|
|
TargetURL: ""
|
|
Domain: ""
|
|
|
|
OpenInstall:
|
|
Enable: false
|
|
AppKey: ""
|
|
ApiKey: ""
|
|
|
|
Loki:
|
|
Enable: true
|
|
URL: "http://localhost:3100"
|
|
|
|
AppSignature:
|
|
AppSecrets:
|
|
android-client: CHANGE_ME_ANDROID_SIGNATURE_SECRET
|
|
ios-client: CHANGE_ME_IOS_SIGNATURE_SECRET
|
|
web-client: CHANGE_ME_WEB_SIGNATURE_SECRET
|
|
ValidWindowSeconds: 300
|
|
SkipPrefixes:
|
|
- /v1/notify/
|
|
- /v1/iap/notifications
|
|
- /v1/telegram/webhook
|
|
- /v1/subscribe/config
|
|
|
|
Signature:
|
|
EnableSignature: false
|
|
|
|
device:
|
|
enable: true
|
|
security_secret: CHANGE_ME_DEVICE_SECURITY_SECRET
|
|
|
|
Register:
|
|
EnableTrial: true
|
|
EnableTrialEmailWhitelist: true
|
|
TrialEmailDomainWhitelist: "gmail.com,outlook.com,icloud.com,qq.com,163.com"
|
|
|