feat(cluster): add reload and restart for nginx

This commit is contained in:
Jacky 2025-04-05 15:37:47 +08:00
parent c086455772
commit 2d437ff0cc
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
24 changed files with 2897 additions and 1239 deletions

View file

@ -17,6 +17,9 @@ func InitRouter(r *gin.RouterGroup) {
// Node
r.GET("node", GetCurrentNode)
r.POST("environments/reload_nginx", ReloadNginx)
r.POST("environments/restart_nginx", RestartNginx)
r.GET("env_groups", GetGroupList)
r.GET("env_groups/:id", GetGroup)
r.POST("env_groups", AddGroup)