config.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. [mongo] ## bidding 链接
  2. # host = "127.0.0.1:27017"
  3. host = "172.17.145.163:27083"
  4. db = "mixdata"
  5. username = "SJZY_RWbid_ES"
  6. password = "SJZY@B4i4D5e6S"
  7. [env]
  8. localport = ":2444" ## 本地监听端口,需要前面冒号
  9. qyxycoll = "qyxy_wuhu" ## 芜湖企业数据表
  10. biddingcoll = "bidding_wuhu" ## 芜湖标讯数据表
  11. [cron] ## 定时任务
  12. # spec = "0 */1 * * * *" ## 5分钟执行一次
  13. spec = "0 00 01 * * *" ## 每天01点执行,同步昨天标讯数据
  14. specq = "0 00 00 * * 6" ## 企业数据同步任务,每周六0点执行
  15. start = -1 ## 表示开始时间昨天凌晨
  16. end = 0 ## 表示截止时间到今天凌晨
  17. [log]
  18. # 日志路径,为空将输出控制台
  19. # logpath = ""
  20. logpath = "logs/log.out"
  21. # log size (M)
  22. maxsize = 10
  23. # compress log
  24. compress = true
  25. # log save time (day)
  26. maxage = 7
  27. # save total log file total
  28. maxbackups = 10
  29. # log level
  30. loglevel = "debug"
  31. # text or json output
  32. format = "json"