esports-admin-test.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. version = "1.0.0"
  2. user = "nobody"
  3. dir = "./"
  4. family = "esports-admin"
  5. trace = false
  6. debug = false
  7. env = "qa"
  8. [log]
  9. dir = "/data/log/esports-admin/"
  10. [orm]
  11. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_esports?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  12. active = 5
  13. idle = 5
  14. idleTimeout = "4h"
  15. [permit]
  16. managerHost = "http://uat-manager.bilibili.co"
  17. dashboardHost = "http://uat-dashboard-mng.bilibili.co"
  18. dashboardCaller = "manager-go"
  19. [permit.DsHTTPClient]
  20. key = "manager-go"
  21. secret = "949bbb2dd3178252638c2407578bc7ad"
  22. dial = "1s"
  23. timeout = "1s"
  24. keepAlive = "60s"
  25. [permit.MaHTTPClient]
  26. key = "f6433799dbd88751"
  27. secret = "36f8ddb1806207fe07013ab6a77a3935"
  28. dial = "1s"
  29. timeout = "1s"
  30. keepAlive = "60s"
  31. [permit.MaHTTPClient.breaker]
  32. window = "3s"
  33. sleep = "100ms"
  34. bucket = 10
  35. ratio = 0.5
  36. request = 100
  37. [permit.session]
  38. sessionIDLength = 32
  39. cookieLifeTime = 1800
  40. cookieName = "mng-go"
  41. domain = ".bilibili.co"
  42. [permit.session.Memcache]
  43. name = "go-business/auth"
  44. proto = "tcp"
  45. addr = "172.16.33.54:11211"
  46. active = 10
  47. idle = 5
  48. dialTimeout = "1s"
  49. readTimeout = "1s"
  50. writeTimeout = "1s"
  51. idleTimeout = "80s"
  52. [rule]
  53. maxCSVRows = 1000
  54. maxBatchArcLimit = 10
  55. maxTreeContests = 32
  56. [httpReply]
  57. key = "96923574ed650ef9"
  58. secret = "35113863f243e6a84b8bbdafa2ba76cd"
  59. dial = "3s"
  60. timeout = "10s"
  61. keepAlive = "60s"
  62. [[gameTypes]]
  63. id = 1
  64. name= "LOL"
  65. [[gameTypes]]
  66. id = 2
  67. name= "DOTA2"