123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- [log]
- stdout=true
- [httpServer]
- addr = "0.0.0.0:10001"
- timeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- [reply]
- pageNum = 1
- pageSize = 30
- adminName = ["yangjiankun", "xuyiming"]
- [identify]
- whiteAccessKey = "a2a1eb0ac97d6ba08b85aa0151528f34"
- whiteMid = 23675773
- csrfOn = true
- csrf = true
- [identify.app]
- key = "7c7ac0db1aa05587"
- secret = "9a6d62d93290c5f771ad381e9ca23f26"
- [identify.memcache]
- name = "go-business/identify"
- active = 1024
- idle = 64
- dialTimeout = "100ms"
- readTimeout = "200ms"
- writeTimeout = "200ms"
- idleTimeout = "80s"
- [identify.host]
- auth = "http://passport.bilibili.co"
- secret = "http://open.bilibili.co"
- [identify.httpClient]
- key = "7c7ac0db1aa05587"
- secret = "9a6d62d93290c5f771ad381e9ca23f26"
- dial = "30ms"
- timeout = "100ms"
- keepAlive = "60s"
- [identify.httpClient.breaker]
- window = "10s"
- sleep = "100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [identify.httpClient.url]
- "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "1s"}
- "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "1s"}
- "http://open.bilibili.co/api/getsecret" = {timeout = "1s"}
- [db]
- [db.reply]
- addr = "172.22.34.101:3306"
- dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_reply?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
- active = 5
- idle = 1
- idleTimeout ="4h"
- queryTimeout = "500ms"
- execTimeout = "500ms"
- tranTimeout = "500ms"
- [db.reply.breaker]
- window = "3s"
- sleep = "100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [db.replySlave]
- addr = "172.22.34.101:3306"
- dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_reply?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
- active = 5
- idle = 1
- idleTimeout ="4h"
- queryTimeout = "500ms"
- execTimeout = "500ms"
- tranTimeout = "500ms"
- [db.replySlave.breaker]
- window = "3s"
- sleep = "100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [httpClient]
- key = "c1a1cb2d89c33794"
- secret = "dda47eeca111e03e6845017505baea13"
- dial = "3s"
- timeout = "3s"
- keepAlive = "60s"
- timer = 1000
- [httpClient.breaker]
- window ="3s"
- sleep ="100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [[stats]]
- key = "0QNB0ZgFozbKUCQhbTq8"
- secret = "0QNB0ZgFozbKUCQhbTq9"
- group = "Stat-UGC-P"
- topic = "Stat-T"
- action ="pub"
- name = "archive-service/stat"
- proto = "tcp"
- addr = "172.18.33.50:6205"
- idle = 100
- active = 100
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- type = 1
- field = "aid"
- [[stats]]
- key = "0QNB0ZgFozbKUCQhbTq8"
- secret = "0QNB0ZgFozbKUCQhbTq9"
- group = "ArticleStat-Article-P"
- topic = "ArticleStat-T"
- action ="pub"
- name = "archive-service/stat"
- proto = "tcp"
- addr = "172.18.33.50:6205"
- idle = 100
- active = 100
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- type = 12
- field = "aid"
- [[stats]]
- key = "0QNB0ZgFozbKUCQhbTq8"
- secret = "0QNB0ZgFozbKUCQhbTq9"
- group= "PlaylistStat-Playlist-P"
- topic= "PlaylistStat-T"
- action="pub"
- name = "playlist-service/stat"
- proto = "tcp"
- addr = "172.18.33.50:6205"
- idle = 100
- active = 100
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- expire = "1h"
- type = 18
- field = "pid"
- [rpcClient2]
- [rpcClient2.account]
- timeout = "30s"
- [rpcClient2.archive]
- timeout = "30s"
- [rpcClient2.assist]
- timeout = "30s"
- [rpcClient2.article]
- timeout = "30s"
- [rpcClient2.thumbup]
- timeout = "30s"
- [databus]
- [databus.event]
- key = "170e302355453683"
- secret = "3d0e8db7bed0503949e545a469789279"
- group = "Reply-MainCommunity-P"
- topic = "Reply-T"
- action ="pub"
- name = "reply/event"
- proto = "tcp"
- addr = "172.18.33.50:6205"
- idle = 2
- active = 5
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- expire = "1h"
- [databus.stats]
- key = "170e302355453683"
- secret = "3d0e8db7bed0503949e545a469789279"
- group = "StatReply-MainCommunity-P"
- topic = "StatReply-T"
- action ="pub"
- name = "reply/stats"
- proto = "tcp"
- addr = "172.18.33.50:6205"
- idle = 2
- active = 5
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- expire = "1h"
- [host]
- search = "http://uat-bili-search.bilibili.co"
- [managerAuth]
- managerHost = "http://uat-manager.bilibili.co"
- dashboardHost = "http://dashboard-mng.bilibili.co"
- dashboardCaller = "manager-go"
- [managerAuth.dsHTTPClient]
- key = "manager-go"
- secret = "949bbb2dd3178252638c2407578bc7ad"
- dial = "1s"
- timeout = "3s"
- keepAlive = "60s"
- timer = 1000
- [managerAuth.dsHTTPClient.breaker]
- window ="3s"
- sleep ="100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [managerAuth.maHTTPClient]
- key = "f6433799dbd88751"
- secret = "36f8ddb1806207fe07013ab6a77a3935"
- dial = "1s"
- timeout = "3s"
- keepAlive = "60s"
- timer = 1000
- [managerAuth.maHTTPClient.breaker]
- window ="3s"
- sleep ="100ms"
- bucket = 10
- ratio = 0.5
- request = 100
- [managerAuth.session]
- sessionIDLength = 32
- cookieLifeTime = 1800
- cookieName = "mng-go"
- domain = ".bilibili.co"
- [managerAuth.session.Memcache]
- name = "bm/auth"
- proto = "unix"
- addr = "/tmp/uat-reply-mc.sock"
- active = 5
- idle = 2
- dialTimeout = "10ms"
- readTimeout = "200ms"
- writeTimeout = "200ms"
- idleTimeout = "80s"
- [memcache]
- proto = "tcp"
- addr = "172.18.33.61:11213"
- idle = 10
- active = 10
- dialTimeout = "2s"
- readTimeout = "2s"
- writeTimeout = "2s"
- idleTimeout = "7h"
- expire = "24h"
- [redis]
- proto = "tcp"
- addr = "172.18.33.60:6889"
- idle = 10
- active = 10
- dialTimeout = "500ms"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "80s"
- indexExpire = "8h"
- userActExpire="1h"
- reportExpire = "24h"
- userCntExpire = "30s"
- notifyExpire = "24h"
- expire = "24h"
|