app-resource-example.toml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # This is a TOML document. Boom.
  2. version = "1.0.1"
  3. user = "nobody"
  4. pid = "/tmp/app-resource.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:6850"
  7. checkFile = "/data/www/app-resource.html"
  8. family = "app-resource"
  9. trace = false
  10. debug = true
  11. env = "dev"
  12. resourceLog = ""
  13. tick = "30s"
  14. [identify]
  15. WhiteAccessKey = ""
  16. WhiteMid = 0
  17. [identify.app]
  18. key = "6a29f8ed87407c11"
  19. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  20. [identify.memcache]
  21. name = "go-business/identify"
  22. proto = "tcp"
  23. addr = "172.16.33.54:11211"
  24. active = 5
  25. idle = 10
  26. dialTimeout = "1s"
  27. readTimeout = "1s"
  28. writeTimeout = "1s"
  29. idleTimeout = "80s"
  30. [identify.host]
  31. auth = "http://passport.bilibili.com"
  32. secret = "http://open.bilibili.com"
  33. [identify.authHTTPClient]
  34. dial = "1s"
  35. timeout = "1s"
  36. keepAlive = "60s"
  37. timer = 1000
  38. [identify.secretHTTPClient]
  39. dial = "1s"
  40. timeout = "1s"
  41. keepAlive = "60s"
  42. timer = 1000
  43. [tracer]
  44. proto = "udp"
  45. addr = "172.16.33.46:5140"
  46. tag = "platform/app-resource"
  47. [xlog]
  48. dir = "/data/log/app-resource/"
  49. [xlog.elk]
  50. project = "app-resource"
  51. addr = "172.18.20.17:8520"
  52. chanSize = 10240
  53. [xlog.syslog]
  54. project = "app-resource"
  55. chanSize = 10240
  56. [app]
  57. key = "e7482d29be4a95b8"
  58. secret = "9e803791cdef756e75faee68e12b7442"
  59. [multiHttp]
  60. [multiHttp.outer]
  61. addrs = ["0.0.0.0:6851"]
  62. maxListen = 100
  63. [multiHttp.local]
  64. addrs = ["0.0.0.0:6853"]
  65. maxListen = 100
  66. [ecode]
  67. domain = "172.16.33.248:6401"
  68. all = "1h"
  69. diff = "5m"
  70. [ecode.clientconfig]
  71. dial = "2000ms"
  72. timeout = "2s"
  73. keepAlive = "10s"
  74. timer = 128
  75. [ecode.clientconfig.breaker]
  76. window ="3s"
  77. sleep ="100ms"
  78. bucket = 10
  79. ratio = 0.5
  80. request = 100
  81. [ecode.app]
  82. key = "test"
  83. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  84. [mysql]
  85. [mysql.show]
  86. addr = "172.16.0.148:3306"
  87. dsn = "test:test@tcp(172.16.0.148:3306)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
  88. active = 5
  89. idle = 2