Files
tnb.server/apihost/Tnb.API.Entry/Configurations/Nacos.json
2024-04-11 17:31:32 +08:00

29 lines
1.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"Nacos": {
"EndPoint": "",
"ServerAddresses": [ "http://localhost:8848/" ], // nacos服务端地址
"DefaultTimeOut": 15000,
"Namespace": "dev", // 服务注册到的命名空间id
"ListenInterval": 1000,
"ServiceName": "tnb-core", //服务名称
"GroupName": "DEFAULT_GROUP", //服务分组
"ClusterName": "DEFAULT",
"Ip": "",
"PreferredNetworks": "", // select an IP that matches the prefix as the service registration IP
"Port": 9212,
"Weight": 100, // 权重
"RegisterEnabled": true,
"InstanceEnabled": true,
"Ephemeral": true,
"Secure": false,
"AccessKey": "",
"SecretKey": "",
"UserName": "nacos",
"Password": "nacos",
"ConfigUseRpc": true, // 为true时通过 gRPC 去和 nacos server 交互nacos 2.x版本要设置为true": null,
"NamingUseRpc": true, // 为true时通过 gRPC 去和 nacos server 交互, nacos 2.x版本要设置为true": null,
"NamingLoadCacheAtStart": "",
"LBStrategy": "WeightRandom", // WeightRandom WeightRoundRobin
"Metadata": {}
}
}