test.toml 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/card-admin.pid"
  4. dir = "./"
  5. unameTicker = "1m"
  6. [bm]
  7. addr = "0.0.0.0:7891"
  8. maxListen = 1000
  9. timeout = "1s"
  10. [orm]
  11. dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_card?timeout=3s&readTimeout=3s&writeTimeout=3s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  12. active = 5
  13. idle = 5
  14. idleTimeout = "4h"
  15. [memcache]
  16. name = "card-service"
  17. proto = "tcp"
  18. addr = "172.18.33.60:11233"
  19. idle = 5
  20. active = 10
  21. dialTimeout = "1s"
  22. readTimeout = "1s"
  23. writeTimeout = "1s"
  24. idleTimeout = "10s"
  25. expire = "24h"
  26. [permit]
  27. [permit.Memcache]
  28. name = "go-business/auth"
  29. proto = "tcp"
  30. addr = "172.18.33.61:11232"
  31. active = 10
  32. idle = 10
  33. dialTimeout = "1s"
  34. readTimeout = "1s"
  35. writeTimeout = "1s"
  36. idleTimeout = "80s"
  37. [bfs]
  38. key = "b2f31180234e497c"
  39. secret = "e96a241fb05f449502420d9271b2ed"
  40. host = "http://uat-bfs.bilibili.co"
  41. timeout = 1000
  42. maxFileSize = 5242880