Skip to content

监听 nacos 服务更新(服务上线/服务下线)以自动更新 nginx conf 配置文件并 reload nginx

License

Notifications You must be signed in to change notification settings

godcheese/nginx-reload-from-nacos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-reload-from-nacos

监听 nacos 服务更新(服务上线/服务下线)以自动更新 nginx conf 配置文件并 reload nginx

特性 Features

  • 支持监听多个服务
  • 支持指定配置文件
  • 支持企业微信通知
  • 支持启动多个监听实例
  • 自定义 Nacos 重要配置项

运行 Run

# simple to run
./nginx-reload-from-nacos -c "./config.yaml"
# run in background
nohup ./nginx-reload-from-nacos > ./run.log 2>&1 &

开发 Develop

  • Dev/Compile in golang >= 1.19.3
  • Dev on Fedora >= 3.7
  • Compile on CentOS >= 7.9.2009

反馈 Feedback

Issues

捐赠 Donation

如果此项目对你有所帮助,不妨请我喝咖啡。 If you find this project useful, you can buy us a cup of coffee.

Paypal Me

协议 License

MIT License Copyright (c) 2023 godcheese

About

监听 nacos 服务更新(服务上线/服务下线)以自动更新 nginx conf 配置文件并 reload nginx

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published