sms-admin-test.toml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/sms-admin.pid"
  4. dir = "./"
  5. perf = "0.0.0.0:7540"
  6. family = "sms-admin"
  7. [log]
  8. dir = "/data/log/sms-admin/"
  9. [HTTPServer]
  10. addr = "0.0.0.0:7541"
  11. maxListen = 1000
  12. timeout = "1s"
  13. readTimeout = "1s"
  14. writeTimeout = "1s"
  15. [httpClient]
  16. key = "c05dd4e1638a8af0"
  17. secret = "7daa7f8c06cd33c5c3067063c746fdcb"
  18. dial = "1s"
  19. timeout = "1s"
  20. keepAlive = "60s"
  21. timer = 1000
  22. [httpClient.breaker]
  23. window = "10s"
  24. sleep = "100ms"
  25. bucket = 10
  26. ratio = 0.5
  27. request = 100
  28. [db]
  29. dsn = "sms:s2eEdt4kAPW4SEOk@tcp(172.16.33.205:3306)/sms?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  30. active = 5
  31. idle = 5
  32. idleTimeout = "4h"
  33. [sms]
  34. tplPsMax = 10
  35. mountDir = "/data/storage/"
  36. [auth]
  37. managerHost = "http://uat-manager.bilibili.co"
  38. dashboardHost = "http://dashboard-mng.bilibili.co"
  39. dashboardCaller = "manager-go"
  40. [auth.DsHTTPClient]
  41. key = "manager-go"
  42. secret = "949bbb2dd3178252638c2407578bc7ad"
  43. dial = "1s"
  44. timeout = "1s"
  45. keepAlive = "60s"
  46. [auth.DsHTTPClient.breaker]
  47. window = "3s"
  48. sleep = "100ms"
  49. bucket = 10
  50. ratio = 0.5
  51. request = 100
  52. [auth.MaHTTPClient]
  53. key = "f6433799dbd88751"
  54. secret = "36f8ddb1806207fe07013ab6a77a3935"
  55. dial = "1s"
  56. timeout = "1s"
  57. keepAlive = "60s"
  58. [auth.MaHTTPClient.breaker]
  59. window = "3s"
  60. sleep = "100ms"
  61. bucket = 10
  62. ratio = 0.5
  63. request = 100
  64. [auth.session]
  65. sessionIDLength = 32
  66. cookieLifeTime = 1800
  67. cookieName = "mng-go"
  68. domain = ".bilibili.co"
  69. [auth.session.Memcache]
  70. name = "go-business/auth"
  71. proto = "tcp"
  72. addr = "172.16.33.54:11211"
  73. active = 10
  74. idle = 5
  75. dialTimeout = "1s"
  76. readTimeout = "1s"
  77. writeTimeout = "1s"
  78. idleTimeout = "80s"