creative-admin.toml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/creative-admin.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6343"
  7. checkFile = "/data/www/creative-admin.html"
  8. [log]
  9. dir = "/data/log/creative-admin/"
  10. stdout = false
  11. [xlog.syslog]
  12. project = "creative-admin"
  13. chanSize = 10240
  14. [app]
  15. key = "c1a1cb2d89c33794"
  16. secret = "dda47eeca111e03e6845017505baea13"
  17. [orm]
  18. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_creative?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  19. active = 5
  20. idle = 5
  21. idleTimeout = "4h"
  22. [ormArchive]
  23. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  24. active = 5
  25. idle = 2
  26. idleTimeout = "4h"
  27. [bm]
  28. addr = "0.0.0.0:6344"
  29. maxListen = 10
  30. timeout = "1s"
  31. [identify]
  32. whiteAccessKey = "a2a1eb0ac97d6ba08b85aa0151528f34"
  33. whiteMid = 23675773
  34. csrf = false
  35. [identify.app]
  36. key = "53e2fa226f5ad348"
  37. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  38. [identify.memcache]
  39. name = "go-business/identify"
  40. proto = "tcp"
  41. addr = "172.16.33.54:11211"
  42. active = 10
  43. idle = 5
  44. dialTimeout = "1s"
  45. readTimeout = "1s"
  46. writeTimeout = "1s"
  47. idleTimeout = "80s"
  48. [identify.host]
  49. auth = "http://passport.bilibili.co"
  50. secret = "http://open.bilibili.co"
  51. [identify.httpClient]
  52. key = "53e2fa226f5ad348"
  53. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  54. dial = "1s"
  55. timeout = "1s"
  56. keepAlive = "60s"
  57. [identify.httpClient.breaker]
  58. window = "10s"
  59. sleep = "100ms"
  60. bucket = 10
  61. ratio = 0.5
  62. request = 100
  63. [identify.httpClient.url]
  64. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  65. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  66. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  67. [auth]
  68. managerHost = "http://uat-manager.bilibili.co"
  69. dashboardHost = "http://dashboard-mng.bilibili.co"
  70. dashboardCaller = "manager-go"
  71. [auth.DsHTTPClient]
  72. key = "manager-go"
  73. secret = "949bbb2dd3178252638c2407578bc7ad"
  74. dial = "1s"
  75. timeout = "1s"
  76. keepAlive = "60s"
  77. [auth.DsHTTPClient.breaker]
  78. window = "3s"
  79. sleep = "100ms"
  80. bucket = 10
  81. ratio = 0.5
  82. request = 100
  83. [auth.MaHTTPClient]
  84. key = "f6433799dbd88751"
  85. secret = "36f8ddb1806207fe07013ab6a77a3935"
  86. dial = "1s"
  87. timeout = "1s"
  88. keepAlive = "60s"
  89. [auth.MaHTTPClient.breaker]
  90. window = "3s"
  91. sleep = "100ms"
  92. bucket = 10
  93. ratio = 0.5
  94. request = 100
  95. [auth.session]
  96. sessionIDLength = 32
  97. cookieLifeTime = 1800
  98. cookieName = "mng-go"
  99. domain = ".bilibili.co"
  100. [auth.session.Memcache]
  101. name = "go-business/auth"
  102. proto = "unix"
  103. addr = "/tmp/uat-manager-auth-mc.sock"
  104. active = 10
  105. idle = 5
  106. dialTimeout = "1s"
  107. readTimeout = "1s"
  108. writeTimeout = "1s"
  109. idleTimeout = "80s"
  110. [bfs]
  111. key = "ef42d94858dd49b2"
  112. secret = "351c300573a330a5271226835be496"
  113. host = "http://uat-bfs.bilibili.co"
  114. timeout = 1000
  115. maxFileSize = 5242880
  116. [httpClient]
  117. key = "b8f239ca38a53308"
  118. secret = "5460ef72fe13c10dfb53442b9111427e"
  119. dial = "500ms"
  120. timeout = "1s"
  121. keepAlive = "60s"
  122. timer = 10
  123. [host]
  124. msg = "http://message.bilibili.co"