local-sug-test.toml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # This is a TOML document. Boom
  2. env = "uat"
  3. sourcePath = "/Users/caocao/Code/go/src/go-common/app/admin/openplatform/sug/source/"
  4. [url]
  5. itemSearch = "http://fat1-mall.bilibili.co/mall-items/items/itemsListByQuery"
  6. [auth]
  7. managerHost = "http://manager.bilibili.co"
  8. dashboardHost = "http://dashboard-mng.bilibili.co"
  9. dashboardCaller = "manager-go"
  10. [auth.DsHTTPClient]
  11. key = "manager-go"
  12. secret = "949bbb2dd3178252638c2407578bc7ad"
  13. dial = "1s"
  14. timeout = "1s"
  15. keepAlive = "60s"
  16. [auth.DsHTTPClient.breaker]
  17. window = "3s"
  18. sleep = "100ms"
  19. bucket = 10
  20. ratio = 0.5
  21. request = 100
  22. [auth.MaHTTPClient]
  23. key = "f6433799dbd88751"
  24. secret = "36f8ddb1806207fe07013ab6a77a3935"
  25. dial = "1s"
  26. timeout = "1s"
  27. keepAlive = "60s"
  28. [auth.MaHTTPClient.breaker]
  29. window = "3s"
  30. sleep = "100ms"
  31. bucket = 10
  32. ratio = 0.5
  33. request = 100
  34. [auth.session]
  35. sessionIDLength = 32
  36. cookieLifeTime = 1800
  37. cookieName = "mng-go"
  38. domain = ".bilibili.co"
  39. [auth.session.Memcache]
  40. name = "go-business/auth"
  41. proto = "tcp"
  42. addr = "172.16.33.54:11211"
  43. active = 10
  44. idle = 5
  45. dialTimeout = "1s"
  46. readTimeout = "1s"
  47. writeTimeout = "1s"
  48. idleTimeout = "80s"
  49. [redis]
  50. name = "sug-season"
  51. proto = "tcp"
  52. addr = "172.16.33.203:6379"
  53. idle = 10
  54. active = 10
  55. dialTimeout = "1s"
  56. readTimeout = "1s"
  57. writeTimeout = "1s"
  58. idleTimeout = "10s"
  59. expire = "1m"
  60. [httpClient]
  61. key = "ad4bb9b8f5d9d4a7"
  62. secret = "6912080d78d58be7cb94f57d50d438f6"
  63. dial = "1s"
  64. timeout = "10s"
  65. keepAlive = "60s"
  66. timer = 1000
  67. [httpClient.breaker]
  68. window = "10s"
  69. sleep = "100ms"
  70. bucket = 10
  71. ratio = 0.5
  72. request = 100
  73. [es]
  74. addr = ["http://172.16.38.126:9201"]
  75. [db]
  76. [db.mallDB]
  77. addr = "172.22.34.101:3310"
  78. dsn ="mall:FIb1lia9lK4UufUScJjrxvbkrEZtZD4l@tcp(172.22.34.101:3310)/open_mall?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  79. active = 5
  80. idle = 5
  81. queryTimeout = "1s"
  82. execTimeout = "1s"
  83. tranTimeout = "2s"
  84. [db.mallDB.breaker]
  85. window = "3s"
  86. sleep = "100ms"
  87. bucket = 10
  88. ratio = 0.5
  89. request = 100
  90. [db.ticketDB]
  91. addr = "172.22.34.101:3310"
  92. dsn = "ticket:i9HXWAvzWiqPxMxlfsQ8DRqYydjf3pYa@tcp(172.22.34.101:3310)/open_ticket?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  93. active = 5
  94. idle = 5
  95. queryTimeout = "1s"
  96. execTimeout = "1s"
  97. tranTimeout = "2s"
  98. [db.ticketDB.breaker]
  99. window = "3s"
  100. sleep = "100ms"
  101. bucket = 10
  102. ratio = 0.5
  103. request = 100
  104. [bfs]
  105. timeout = "2s"
  106. maxFileSize = 5242880
  107. key = "c387398b08495933"
  108. secret = "18295608cd3b8a5lbbe2b07a509705"
  109. addr = "http://bfs.bilibili.co/bfs/openplatform/"
  110. bucket = "openplatform"