coupon-admin.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/coupon.pid"
  5. dir = "./"
  6. trace = false
  7. debug = false
  8. [log]
  9. dir = "/data/log/coupon"
  10. [bm]
  11. addr = "0.0.0.0:9001"
  12. maxListen = 10
  13. timeout = "1s"
  14. [auth]
  15. managerHost = "http://manager.bilibili.co"
  16. dashboardHost = "http://dashboard-mng.bilibili.co"
  17. dashboardCaller = "manager-go"
  18. [auth.DsHTTPClient]
  19. key = "manager-go"
  20. secret = "949bbb2dd3178252638c2407578bc7ad"
  21. dial = "1s"
  22. timeout = "1s"
  23. keepAlive = "60s"
  24. [auth.DsHTTPClient.breaker]
  25. window = "3s"
  26. sleep = "100ms"
  27. bucket = 10
  28. ratio = 0.5
  29. request = 100
  30. [auth.MaHTTPClient]
  31. key = "f6433799dbd88751"
  32. secret = "36f8ddb1806207fe07013ab6a77a3935"
  33. dial = "1s"
  34. timeout = "1s"
  35. keepAlive = "60s"
  36. [auth.MaHTTPClient.breaker]
  37. window = "3s"
  38. sleep = "100ms"
  39. bucket = 10
  40. ratio = 0.5
  41. request = 100
  42. [auth.session]
  43. sessionIDLength = 32
  44. cookieLifeTime = 1800
  45. cookieName = "mng-go"
  46. domain = ".bilibili.co"
  47. [auth.session.Memcache]
  48. name = "go-business/auth"
  49. proto = "tcp"
  50. addr = "172.16.33.54:11211"
  51. active = 5
  52. idle = 5
  53. dialTimeout = "1s"
  54. readTimeout = "1s"
  55. writeTimeout = "1s"
  56. idleTimeout = "80s"
  57. [mysql]
  58. addr = "127.0.0.1:3306"
  59. dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_coupon?timeout=2s&readTimeout=2s&writeTimeout=2s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  60. readDSN = ["root:123456@tcp(127.0.0.1:3306)/bilibili_coupon?timeout=2s&readTimeout=2s&writeTimeout=2s&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  61. active = 20
  62. idle = 10
  63. idleTimeout ="4h"
  64. queryTimeout = "1s"
  65. execTimeout = "1s"
  66. tranTimeout = "2s"
  67. [mysql.breaker]
  68. window = "3s"
  69. sleep = "100ms"
  70. bucket = 10
  71. ratio = 0.5
  72. request = 100
  73. [rpcClient2]
  74. [rpcClient2.coupon]
  75. [memcache]
  76. name = "coupon"
  77. proto = "tcp"
  78. addr = "172.18.33.60:11237"
  79. idle = 5
  80. active = 10
  81. dialTimeout = "1s"
  82. readTimeout = "1s"
  83. writeTimeout = "1s"
  84. idleTimeout = "10s"
  85. expire = "24h"
  86. [prop]
  87. messageURL="http://message.bilibili.co"
  88. salarySleepTime="10ms"
  89. allowanceTableCount=10
  90. salaryMsgOpen=true
  91. msgSysnSize=10
  92. [HTTPClient]
  93. key = "f022126a8a365e20"
  94. secret = "b7b86838145d634b487e67b811b8fab2"
  95. dial = "30ms"
  96. timeout = "100ms"
  97. keepAlive = "60s"
  98. [HTTPClient.breaker]
  99. window = "10s"
  100. sleep = "100ms"
  101. bucket = 10
  102. ratio = 0.5
  103. request = 100