Host:  # 服务监听地址
Port: 8080 # 服务监听端口, 默认: 8080
Debug: true # 是否开启调试模式, 默认: false

JwtAuth: # JWT认证配置
  AccessSecret: CHANGE_ME_TO_A_RANDOM_SECRET # 访问令牌密钥, 请修改为随机字符串
  AccessExpire: 31536000 # 访问令牌过期时间,单位秒, 默认: 31536000 (365天); 用户每次活跃请求自动续期

Logger: # 日志配置
  FilePath: logs/ppanel.log # 日志文件路径
  MaxSize: 50 # 日志文件最大大小, 单位MB
  MaxBackup: 3 # 日志文件最大备份数
  MaxAge: 30 # 日志文件最大保存时间,单位天
  Compress: true # 是否压缩日志文件
  Level: debug # 日志级别: debug, info, warn, error, panic, fatal

MySQL:
  Addr: 45.43.29.127:3306 # host 网络模式; bridge 模式改为 mysql:3306
  Username: root # MySQL用户名
  Password: jpcV41ppanel # MySQL密码，与 .env MYSQL_ROOT_PASSWORD 一致
  Dbname: hifast # MySQL数据库名
  Config: charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai
  MaxIdleConns: 10
  MaxOpenConns: 100
  LogMode: info   # 生产建议 info，开发用 debug
  LogZap: true
  SlowThreshold: 1000

Redis:
  Host: 127.0.0.1:6379 # host 网络模式; bridge 模式改为 redis:6379
  Pass:  # Redis密码，如果没有设置密码可以留空
  DB: 0 # Redis数据库编号，默认0
  PoolSize: 100 # 连接池大小（最大连接数），根据应用并发量调整，建议：小流量50-100，中流量100-300，大流量300-500
  MinIdleConns: 10 # 最小空闲连接数，保持一定数量的空闲连接以减少建立连接的开销，建议为PoolSize的10%
  MaxRetries: 3 # 最大重试次数，网络抖动时自动重试，建议2-3次
  PoolTimeout: 4 # 连接池超时时间（秒），从连接池获取连接的最大等待时间，建议3-5秒
  IdleTimeout: 300 # 空闲连接超时时间（秒），自动回收长时间空闲的连接，建议300-600秒（5-10分钟）
  MaxConnAge: 0 # 连接最大生命周期（秒），定期重建连接避免长时间使用的问题，0表示不限制，建议7200秒（2小时）或0
  DialTimeout: 5 # 连接超时时间（秒），建立新连接的超时时间，建议5秒
  ReadTimeout: 3 # 读操作超时时间（秒），建议2-3秒
  WriteTimeout: 3 # 写操作超时时间（秒），建议2-3秒

AppSignature:
  AppSecrets:
    android-client: uB4G,XxL2{7b # Android 客户端签名密钥
    ios-client: uB4G,XxL2{7b # iOS 客户端签名密钥
    web-client: uB4G,XxL2{7b # Web 客户端签名密钥
  ValidWindowSeconds: 300 # 签名时间窗口（秒）
  SkipPrefixes:
    - /v1/notify/ # 支付回调不验签
    - /v1/iap/notifications # Apple IAP 回调不验签
    - /v1/telegram/webhook # Telegram 回调不验签
    - /v1/subscribe/config # 订阅导出不验签

Signature:
  EnableSignature: false # 系统签名开关（实际运行会以数据库 system.signature.EnableSignature 为准）

Trace: # 链路追踪配置 (OpenTelemetry)
  Name: ppanel         # 服务名
  Sampler: 1.0         # 采样率 0.0-1.0，生产建议 0.1
  Batcher: otlpgrpc    # 本地开发留空""; 生产填 otlpgrpc
  Endpoint: "127.0.0.1:4317" # host 网络模式; bridge 模式改为 tempo:4317

S3:
  Enable: false
  Region: ""
  Bucket: ""
  Endpoint: ""
  AccessKey: ""
  SecretKey: ""
  SessionToken: ""
  Prefix: "app-upload"
  PublicBaseURL: ""
  UsePathStyle: false
  PresignExpireSeconds: 300
  MaxUploadSize: 104857600
  AllowedContentTypes: "application/zip,application/x-zip-compressed,application/gzip,application/x-gzip,application/octet-stream,text/plain,application/json"

device:
  enable: true # 开启设备加密通信
  security_secret: "" # AES加密密钥，需要和App端一致，key=SHA256(security_secret)[:32]

Administrator:
  Email: admin@ppanel.dev # 后台登录邮箱，请修改
  Password: CHANGE_ME_TO_STRONG_PASSWORD # 后台登录密码，请修改为强密码

Register:
  EnableTrial: true
  EnableTrialEmailWhitelist: true
  TrialEmailDomainWhitelist: "facebook.com,yahoo.com,qq.com,live.com,outlook.com,msn.com,example.com,go.com,aol.com,free.fr,aliyun.com,163.com,yandex.ru,indiatimes.com,alibaba.com,geocities.com,about.com,naver.com,netscape.com,yahoo.co.jp,earthlink.net,zoho.com,sky.com,mail.ru,angelfire.com,uol.com.br,spb.ru,yandex.com,globo.com,gmail.com,medscape.com,space.com,discovery.com,t-online.de,mac.com,icloud.com,homestead.com,lycos.com,web.id,nus.edu.sg,altavista.com,berlin.de,rambler.ru,pp.ua,comcast.net,sapo.pt,msk.ru,ancestry.com,daum.net,proton.me,law.com,bt.com,techspot.com,icq.com,sina.cn,libero.it,test.com,yourdomain.com,docomo.ne.jp,wp.pl,hotmail.com,orange.fr,onet.pl,me.com,india.com,kansascity.com,wanadoo.fr,fortunecity.com,web.de,terra.com.br,att.net,canada.com,skynet.be,ya.ru,excite.com,detik.com,compuserve.com,ig.com.br,zp.ua,gmx.net,xoom.com,mindspring.com,freeserve.co.uk,interia.pl,excite.co.jp,test.de,shaw.ca,virgilio.it,chez.com,rr.com,freenet.de,ntlworld.com,seznam.cz,arcor.de,tiscali.it,sympatico.ca,sina.com,gazeta.pl,care2.com,yam.com,r7.com,telenet.be,rcn.com,geek.com,sfr.fr,hotbot.com,cox.net,blueyonder.co.uk,tom.com,virginmedia.com,btinternet.com,iinet.net.au,rogers.com,ireland.com,pochta.ru,ozemail.com.au,catholic.org,bluewin.ch,chat.ru,virgin.net,verizon.net,erols.com,lycos.de,lycos.co.uk,protonmail.com,doityourself.com,home.nl,nate.com,casino.com,o2.co.uk,terra.es,mail.com,albawaba.com,126.com,www.com,planet.nl,sanook.com,21cn.com,online.de,name.com,i.ua,centrum.cz,rin.ru,aol.co.uk,voila.fr,walla.co.il,poste.it,netcom.com,parrot.com,charter.net,mydomain.com,mail-tester.com,myway.com,chello.nl,club-internet.fr,sdf.org,tiscali.co.uk,freeuk.com,unican.es,sci.fi,anonymize.com,sify.com,metacrawler.com,go.ro,ivillage.com,telus.net,dailypioneer.com,iespana.es,lycos.es,hey.com,sweb.cz,optusnet.com.au,alice.it,tpg.com.au,hamptonroads.com,saudia.com,lycos.nl,blackplanet.com,frontier.com,looksmart.com,pobox.com,prodigy.net,i.am,freeyellow.com,gmx.com,bigpond.com,crosswinds.net,dejanews.com,wanadoo.es,foxmail.com,eircom.net,islamonline.net,webindia123.com,oath.com,frontiernet.net,hetnet.nl,onmilwaukee.com,ukr.net,bugmenot.com,neuf.fr,kiwibox.com,za.com,iol.it,zonnet.nl,newmail.ru,pacbell.net,cogeco.ca,depechemode.com,concentric.net,aim.com,f5.si,yahoo.jp,terra.com,hot.ee,netzero.net,netins.net,sprynet.com,mailbox.org,mail2web.com,o2.pl,idirect.com,bigfoot.com,netspace.net.au,masrawy.com,supereva.it,yahoo.de,lycos.it,yeah.net,montevideo.com.uy,gmx.de,yahoo.co.uk,yahoofs.com,scubadiving.com,hushmail.com,iprimus.com.au,gportal.hu,swissinfo.org,inbox.com,bolt.com,telstra.com,bellsouth.net,spray.se,c3.hu,attbi.com,talktalk.co.uk,dynu.net,juno.com,yahoo.fr,msn.co.uk,fr.nf,pe.hu,bigpond.net.au,incredimail.com,adelphia.net,elvis.com,interfree.it,starmedia.com,seanet.com,yahoo.com.tw,zip.net,tds.net,she.com,forthnet.gr,land.ru,wow.com,dnsmadeeasy.com,webjump.com,singnet.com.sg,spacewar.com,tin.it,4mg.com,sp.nl,wowway.com,dmv.com,bangkok.com,fastmail.fm,sbcglobal.net,bright.net,usa.com,37.com,aeiou.pt,terra.cl,thirdage.com,btconnect.com,optimum.net,cableone.net,talkcity.com,blogos.com,c2i.net,iwon.com,aver.com,barcelona.com,ddnsfree.com,oi.com.br,lex.bg,roadrunner.com,airmail.net,lawyer.com,yahoo.com.cn,cu.cc,ananzi.co.za,au.ru,pipeline.com,cs.com,3ammagazine.com,gmx.at,qwest.net,btopenworld.com,easypost.com,westnet.com.au,nyc.com,korea.com,front.ru,inbox.lv,yahoo.com.br,ny.com,hispavista.com,abv.bg,mchsi.com,apollo.lv,everyone.net,terra.com.ar,singpost.com,doctor.com,garbage.com,bizhosting.com,go2net.com,clerk.com,games.com,charm.net,onlinehome.de,laposte.net"   # 填你的白名单域名，逗号分隔
