config.toml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [mongoqy] ## 181 链接
  2. host = "127.0.0.1:27001"
  3. # host = "172.17.4.181:27001"
  4. db = "mixdata"
  5. coll = ""
  6. username = ""
  7. password = ""
  8. # direct = true
  9. [cron] ## 定时任务
  10. # spec = "0 */1 * * * *" ## 5分钟执行一次
  11. spec = "0 03 7,12,15,20 * * *" ## 每天7,12,15,20点执行
  12. url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=0fc090e3-ceda-448d-8aba-d00a2994be7e"## 微信群通知机器人
  13. [mysql] ## 数据库MySQL
  14. address = "127.0.0.1:4001" ## 本地
  15. #address = "172.17.162.29:14000" ## 线上
  16. dbname= "qyxy" ##
  17. username = "wangchengcheng"
  18. password= "Wcc#20221209P"
  19. prefix = "" ## mysql 数据表前缀
  20. ## 日志
  21. # 日志
  22. [log]
  23. # 日志路径,为空将输出控制台
  24. logpath = ""
  25. # logpath = "logs/log.out"
  26. # log size (M)
  27. maxsize = 10
  28. # compress log
  29. compress = true
  30. # log save time (day)
  31. maxage = 7
  32. # save total log file total
  33. maxbackups = 10
  34. # log level
  35. loglevel = "debug"
  36. # text or json output
  37. format = "json"