dotnetcore / AgileConfig

基于.NET Core开发的轻量级分布式配置中心 / .NET Core lightweight configuration server
MIT License
1.5k stars 299 forks source link

AgileConfig 配置整合化一 #166

Closed zfchai closed 5 months ago

zfchai commented 7 months ago

appsettings.json 中的 AgileConfig 建议调整为如下格式

{
  "AgileConfig": {
    "ConfigsServer": {
      "ServerName": "AgileConfig" // localconfig,AgileConfig
    },
    "ConfigsClient": {
      "appId": "001",
      "secret": "zhang321",
      "nodes": "http://localhost:8010",
      "env": "DEV",
      "cache": {
        "directory": "agile/config"
      }
    }
  }
}

这样从配置上面可以方便直观的看出 AgileConfig 是有两个端,分别是 ServerClient

kklldog commented 7 months ago

额。。。没明白什么意思? 要这个节点干嘛: "ConfigsServer": { "ServerName": "AgileConfig" // localconfig,AgileConfig },