growup-admin.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/growup-admin.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:7412"
  7. checkFile = "/data/www/growup-admin.html"
  8. family = "growup-admin"
  9. address = ""
  10. [log]
  11. dir = "/data/log/growup-admin/"
  12. stdout = true
  13. # [log.agent]
  14. # family = "growup-admin"
  15. # taskID = "000057"
  16. # proto = "unixgram"
  17. # addr = "/var/run/lancer/collector.sock"
  18. # chan = 10240
  19. [app]
  20. key = "c1a1cb2d89c33794"
  21. secret = "dda47eeca111e03e6845017505baea13"
  22. [orm]
  23. [orm.growup]
  24. dsn = "growup:test@tcp(172.16.33.205:3307)/bilibili_business_up?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  25. active = 5
  26. idle = 5
  27. idleTimeout = "4h"
  28. [orm.allowance]
  29. dsn = "growup:test@tcp(172.16.33.205:3307)/bilibili_business_up?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  30. active = 5
  31. idle = 5
  32. idleTimeout = "4h"
  33. queryTimeout = "5s"
  34. execTimeout = "5s"
  35. tranTimeout = "10s"
  36. [orm.allowance.breaker]
  37. window = "3s"
  38. sleep = "100ms"
  39. bucket = 10
  40. ratio = 0.5
  41. request = 100
  42. [host]
  43. message = "https://message.bilibili.co"
  44. videoType = "http://uat-archive.api.bilibili.co"
  45. columnType = "https://api.bilibili.com"
  46. creative = "http://api.bilibili.co"
  47. api = "http://api.bilibili.co"
  48. [bfs]
  49. addr = "http://uat-bfs.bilibili.co"
  50. bucket = "test"
  51. key = "221bce6492eba70f"
  52. secret = "6eb80603e85842542f9736eb13b7e3"
  53. # 上传文件大小限制为1M
  54. maxFileSize = 1048576
  55. [httpClient]
  56. key = "c1a1cb2d89c33794"
  57. secret = "dda47eeca111e03e6845017505baea13"
  58. dial = "2s"
  59. timeout = "3s"
  60. keepAlive = "60s"
  61. timer = 10
  62. [httpClient.breaker]
  63. window = "10s"
  64. sleep = "100ms"
  65. bucket = 10
  66. ratio = 0.5
  67. request = 100
  68. [bm]
  69. addr = "0.0.0.0:7410"
  70. maxListen = 10
  71. timeout = "10s"
  72. [budget]
  73. [budget.video]
  74. year = 2018
  75. annualBudget = 130000000
  76. dayBudget = 350000
  77. [budget.column]
  78. year = 2018
  79. annualBudget = 5000000
  80. dayBudget = 13500
  81. [budget.bgm]
  82. year = 2018
  83. annualBudget = 5000000
  84. dayBudget = 13500
  85. [ShellConf]
  86. CustomId = "10014"
  87. Token = "375a597cf22a6fb5d6f821446a1313be"
  88. PayHost = "pay.bilibili.co"
  89. CallbackUrl = "http://api.bilibili.co/x/internal/growup/offlineactivity/callback"
  90. [OtherConf]
  91. OfflineOrderConsume = false