Skip to content

lyln/nacos-confd

 
 

Repository files navigation

confd 项目

项目基于nacos-confd修改扩展,用于Nacos 1.2.0 增加权限控制后,拉取配置中心配置.

新增功能

  • confd新增权限认证
  • confd增加yaml解析

构建confd流程

go环境准备~~~

$ mkdir -p $GOPATH/src/github.com/kelseyhightower
$ git clone https://github.com/lyln/nacos-confd.git $GOPATH/src/github.com/kelseyhightower/confd
$ cd $GOPATH/src/github.com/kelseyhightower/confd
$ make

notes:

$GOPATH/src/github.com/kelseyhightower下项目重命名为confd

confd权限使用

参考配置 /etc/confd/confd.toml

backend = "nacos"
confdir = "/etc/confd"
#log-level = "debug"
namespace = "dev"
interval = 5
nodes = [
  "nacos_server",
  ]
scheme = "http"
watch = true
NacosUsername = "nacos"
NacosPassword = "nacos"

其他疑惑

欢迎共同学习探讨。

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 87.7%
  • Shell 11.3%
  • Makefile 1.0%