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.
84 lines
1.9 KiB
84 lines
1.9 KiB
version = "1.0.0" |
|
user = "nobody" |
|
pid = "/tmp/sms-admin.pid" |
|
dir = "./" |
|
perf = "0.0.0.0:7540" |
|
family = "sms-admin" |
|
|
|
[log] |
|
dir = "/data/log/sms-admin/" |
|
|
|
[HTTPServer] |
|
addr = "0.0.0.0:7541" |
|
maxListen = 1000 |
|
timeout = "1s" |
|
readTimeout = "1s" |
|
writeTimeout = "1s" |
|
|
|
[httpClient] |
|
key = "c05dd4e1638a8af0" |
|
secret = "7daa7f8c06cd33c5c3067063c746fdcb" |
|
dial = "1s" |
|
timeout = "1s" |
|
keepAlive = "60s" |
|
timer = 1000 |
|
[httpClient.breaker] |
|
window = "10s" |
|
sleep = "100ms" |
|
bucket = 10 |
|
ratio = 0.5 |
|
request = 100 |
|
|
|
[db] |
|
dsn = "sms:s2eEdt4kAPW4SEOk@tcp(172.16.33.205:3306)/sms?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4" |
|
active = 5 |
|
idle = 5 |
|
idleTimeout = "4h" |
|
|
|
[sms] |
|
tplPsMax = 10 |
|
mountDir = "/data/storage/" |
|
|
|
[auth] |
|
managerHost = "http://uat-manager.bilibili.co" |
|
dashboardHost = "http://dashboard-mng.bilibili.co" |
|
dashboardCaller = "manager-go" |
|
[auth.DsHTTPClient] |
|
key = "manager-go" |
|
secret = "949bbb2dd3178252638c2407578bc7ad" |
|
dial = "1s" |
|
timeout = "1s" |
|
keepAlive = "60s" |
|
[auth.DsHTTPClient.breaker] |
|
window = "3s" |
|
sleep = "100ms" |
|
bucket = 10 |
|
ratio = 0.5 |
|
request = 100 |
|
[auth.MaHTTPClient] |
|
key = "f6433799dbd88751" |
|
secret = "36f8ddb1806207fe07013ab6a77a3935" |
|
dial = "1s" |
|
timeout = "1s" |
|
keepAlive = "60s" |
|
[auth.MaHTTPClient.breaker] |
|
window = "3s" |
|
sleep = "100ms" |
|
bucket = 10 |
|
ratio = 0.5 |
|
request = 100 |
|
[auth.session] |
|
sessionIDLength = 32 |
|
cookieLifeTime = 1800 |
|
cookieName = "mng-go" |
|
domain = ".bilibili.co" |
|
[auth.session.Memcache] |
|
name = "go-business/auth" |
|
proto = "tcp" |
|
addr = "172.16.33.54:11211" |
|
active = 10 |
|
idle = 5 |
|
dialTimeout = "1s" |
|
readTimeout = "1s" |
|
writeTimeout = "1s" |
|
idleTimeout = "80s"
|
|
|