You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
2.8 KiB
117 lines
2.8 KiB
[log] |
|
dir = "/data/log/block-job" |
|
|
|
[db] |
|
addr = "127.0.0.1:3306" |
|
dsn = "root:54985498@tcp(127.0.0.1:3306)/bilibili_block?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4" |
|
active = 20 |
|
idle = 10 |
|
idleTimeout ="4h" |
|
queryTimeout = "1s" |
|
execTimeout = "1s" |
|
tranTimeout = "2s" |
|
[db.breaker] |
|
window = "3s" |
|
sleep = "100ms" |
|
bucket = 10 |
|
ratio = 0.5 |
|
request = 100 |
|
|
|
[memcache] |
|
name = "block" |
|
proto = "tcp" |
|
addr = "" |
|
idle = 5 |
|
active = 10 |
|
dialTimeout = "1s" |
|
readTimeout = "1s" |
|
writeTimeout = "1s" |
|
idleTimeout = "10s" |
|
expire = "24h" |
|
|
|
[bm] |
|
addr = "0.0.0.0:7551" |
|
maxListen = 10 |
|
timeout = "1s" |
|
|
|
[httpClient] |
|
key = "33ac033ce123e999" |
|
secret = "0b2847315d32989a248294e350ac3ede" |
|
dial = "1s" |
|
timeout = "5s" |
|
keepAlive = "60s" |
|
[httpClient.breaker] |
|
window = "3s" |
|
sleep = "100ms" |
|
bucket = 10 |
|
ratio = 0.5 |
|
request = 100 |
|
|
|
[databus] |
|
[databus.credit] |
|
key = "***" |
|
secret= "***" |
|
group= "Credit-MainAccountLaw-S" |
|
topic= "Credit-T" |
|
action="sub" |
|
name = "block-job/databus" |
|
proto = "tcp" |
|
addr = "127.0.0.1:6205" |
|
idle = 2 |
|
active = 10 |
|
dialTimeout = "1s" |
|
readTimeout = "60s" |
|
writeTimeout = "1s" |
|
idleTimeout = "10s" |
|
expire = "1h" |
|
|
|
[accountNotify] |
|
key = "4ba46ba31f9a44ef" |
|
secret = "99985eb4451cfb1b899ca0fbe3c4bdc8" |
|
group = "AccountNotify-MainAccount-P" |
|
topic = "AccountNotify-T" |
|
action = "pub" |
|
buffer = 128 |
|
name = "usersuit-admin/databus" |
|
proto = "tcp" |
|
addr = "172.16.33.158:6205" |
|
active = 1 |
|
idle = 1 |
|
dialTimeout = "1s" |
|
readTimeout = "1s" |
|
writeTimeout = "1s" |
|
idleTimeout = "10s" |
|
|
|
[property] |
|
limitExpireCheckLimit = 100 |
|
limitExpireCheckTick = "5m" |
|
creditExpireCheckLimit = 100 |
|
creditExpireCheckTick = "5m" |
|
msgURL = "http://message.bilibili.co/api/notify/send.user.notify.do" |
|
[property.flag] |
|
expireCheck = true # 自动解禁检查 |
|
creditSub = true # 小黑屋答题状态订阅 |
|
[property.msg] |
|
[property.msg.blockRemove] |
|
code = "2_3_6" |
|
title = "账号封禁解除通知" |
|
content = "你的账号已经解除封禁,封禁期间禁止使用的各项社区功能已经恢复。请遵守社区规范,共同维护良好的社区氛围。" |
|
|
|
[managerLog] |
|
Key = "2511663d546f1413" |
|
Secret = "cde3b480836cc76df3d635470f991caa" |
|
Group = "LogAudit-MainSearch-P" |
|
Topic = "LogAudit-T" |
|
Action = "pub" |
|
Buffer = 10240 |
|
Name = "log-audit/log-sub" |
|
Proto = "tcp" |
|
Addr = "172.18.33.50:6205" |
|
Active = 10 |
|
Idle = 5 |
|
DialTimeout = "200ms" |
|
ReadTimeout = "200ms" |
|
WriteTimeout = "200ms" |
|
IdleTimeout = "80s" |
|
|
|
|