# This is a TOML document. Boom. version = "2.1.0" user = "nobody" pid = "/tmp/location-service.pid" dir = "./" perf = "0.0.0.0:6290" checkFile = "/data/www/location.html" family = "location-service" filePath = "../cmd/source" fileName = "SinaIP.txt" filterZone = ["共享地址","局域网","本机地址"] [tracer] family = "location-service" proto = "unixgram" addr = "172.16.33.46:5140" [log] dir = "/data/log/location-service/" [db] [db.zlimit] name = "172.16.33.205:3308" dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_oversea?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4" active = 5 idle = 5 idleTimeout ="4h" queryTimeout = "1s" execTimeout = "1s" tranTimeout = "1s" [db.zlimit.breaker] window ="3s" sleep ="100ms" bucket = 10 ratio = 0.5 request = 100 [redis] [redis.zlimit] name = "location-service" proto = "tcp" #addr = "172.16.33.54:6379" addr = "172.18.33.61:6812" idle = 10 active = 10 dialTimeout = "1s" readTimeout = "1s" writeTimeout = "1s" idleTimeout = "10s" expire = "10s" [identify] whiteAccessKey = "" whiteMid = 0 [identify.app] key = "53e2fa226f5ad348" secret = "3cf6bd1b0ff671021da5f424fea4b04a" [identify.host] auth = "http://passport.bilibili.com" secret = "http://open.bilibili.com" [identify.httpClient] key = "53e2fa226f5ad348" secret = "3cf6bd1b0ff671021da5f424fea4b04a" 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 = "100ms"} "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"} "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"} [multiHTTP] [multiHTTP.inner] addrs = ["0.0.0.0:6291"] [multiHTTP.local] addrs = ["0.0.0.0:6292"] [rpcServer2] [[rpcServer2.servers]] proto = "tcp" addr = "0.0.0.0:6293" weight = 10 [rpcServer2.zookeeper] root = "/microservice/location-service/" addrs = ["172.18.33.172:2181"] timeout = "30s" [accountRPC] pullInterval = "10s" group ="groupapp" [accountRPC.client] token="123456" proto = "tcp" addr = "172.16.33.56:6079" timeout = "10s" timer = 1000 [accountRPC.client.breaker] window ="10s" sleep ="10ms" bucket = 10 ratio = 0.5 request = 100 [accountRPC.zookeeper] root = "/microservice/account-service/" addrs = ["172.18.33.172:2181"] timeout = "30s"