go-common/app/interface/main/credit/cmd/credit-test.toml
2019-04-22 18:49:16 +08:00

191 lines
3.6 KiB
TOML

# This is a TOML document. Boom.
version = "1.0.0"
[host]
MessageURI = "http://message.bilibili.co"
BigDataURI = "http://172.18.33.147:3000"
APICoURI = "http://api.bilibili.co"
ManagersURI = "http://manager.bilibili.co"
[app]
key = "903f486ae7dc87fa"
secret = "6b03fa3e00334166ba3659e2c04201fc"
[xlog]
dir = "/data/log/credit/"
[bm]
[bm.inner]
addr = "0.0.0.0:6827"
maxListen = 10
timeout="1s"
[bm.local]
addr = "0.0.0.0:6828"
maxListen = 10
timeout="1s"
[httpClient]
key = "903f486ae7dc87fa"
secret = "6b03fa3e00334166ba3659e2c04201fc"
dial = "1s"
timeout = "2s"
keepAlive = "60s"
[httpClient.breaker]
window = "3s"
sleep = "100ms"
bucket = 10
ratio = 0.5
request = 100
[rpcClient2]
[rpcClient2.account]
timeout = "1s"
[rpcClient2.filter]
timeout = "1s"
[rpcClient2.Archive]
timeout = "1s"
[rpcClient2.member]
timeout = "1s"
[grpcClient]
[grpcClient.filter]
dial = "1s"
timeout = "1s"
[identify]
whiteAccessKey = "a2a1eb0ac97d6ba08b85aa0151528f34"
whiteMid = 23675773
csrf = false
[identify.app]
key = "e7482d29be4a95b8"
secret = "9e803791cdef756e75faee68e12b7442"
[identify.memcache]
name = "go-business/identify"
proto = "tcp"
addr = "172.16.33.54:11211"
active = 5
idle = 5
dialTimeout = "1s"
readTimeout = "1s"
writeTimeout = "1s"
idleTimeout = "80s"
[identify.host]
auth = "http://uat-passport.bilibili.co"
secret = "http://uat-open.bilibili.co"
[identify.httpClient]
key = "e7482d29be4a95b8"
secret = "9e803791cdef756e75faee68e12b7442"
dial = "1s"
timeout = "1s"
keepAlive = "60s"
[identify.httpClient.breaker]
window = "10s"
sleep = "100ms"
bucket = 10
ratio = 0.5
request = 100
[identify.httpClient.url]
"http://uat-passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
"http://uat-passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
"http://uat-open.bilibili.co/api/getsecret" = {timeout = "500ms"}
[mysql]
addr = "172.16.33.205:3306"
dsn = "blocked:mUdFycLKSbvPgdE28lCveqN77SqsGOmy@tcp(172.16.33.205:3306)/blocked?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
active = 5
idle = 2
IdleTimeout ="4h"
queryTimeout = "1s"
execTimeout = "1s"
tranTimeout = "5s"
[mysql.breaker]
window = "3s"
sleep = "100ms"
bucket = 10
ratio = 0.5
request = 100
[memcache]
name = "credit"
proto = "tcp"
addr = "172.16.33.54:11211"
idle = 5
active = 5
dialTimeout = "1s"
readTimeout = "1s"
writeTimeout = "1s"
idleTimeout = "10s"
userexpire = "5m"
mincommonexpire = "10m"
commonexpire = "24h"
[redis]
name = "credit"
proto = "tcp"
addr = "172.16.33.54:6379"
idle = 5
active = 5
dialTimeout = "500ms"
readTimeout = "1s"
writeTimeout = "1s"
idleTimeout = "80s"
expire = "10m"
[judge]
confTimer="120s"
ReservedTime = "600s"
LoadManagerTime = "1h"
[DataBus]
key = "0QEO9F8JuuIxZzNDvklH"
secret = "0QEO9F8JuuIxZzNDvklI"
group = "AccLabour-Labour-P"
topic = "AccLabour-T"
action = "pub"
name = "credit/databus"
proto = "tcp"
addr = "172.16.33.158:6205"
idle = 5
active = 5
dialTimeout = "1s"
readTimeout = "60s"
writeTimeout = "1s"
idleTimeout = "10s"
[antispam]
on=true
second=2
n=1
hour=12
m=5
[antispam.redis]
name = "credit"
proto = "tcp"
addr = "172.16.33.54:6379"
idle = 5
active = 5
dialTimeout = "500ms"
readTimeout = "1s"
writeTimeout = "1s"
idleTimeout = "80s"
expire = "10m"
[tagID]
reply = 42
dm = 43
msg = 44
tag = 45
member = 46
archive = 47
music = 48
article = 49
spacetop = 50
[property]
qsnum = 40
perscore = 5