mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: reload cluster node settings from settings file #169
This commit is contained in:
parent
29f1b7db89
commit
e0366f949f
13 changed files with 110 additions and 34 deletions
|
@ -1,4 +1,4 @@
|
|||
package kernal
|
||||
package cluster
|
||||
|
||||
import (
|
||||
"github.com/0xJacky/Nginx-UI/internal/logger"
|
||||
|
@ -10,7 +10,7 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
func registerPredefinedClusterNodes() {
|
||||
func RegisterPredefinedNodes() {
|
||||
if len(settings.ClusterSettings.Node) == 0 {
|
||||
return
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package kernal
|
||||
package cluster
|
||||
|
||||
import (
|
||||
"github.com/0xJacky/Nginx-UI/settings"
|
|
@ -3,6 +3,7 @@ package kernal
|
|||
import (
|
||||
"github.com/0xJacky/Nginx-UI/internal/analytic"
|
||||
"github.com/0xJacky/Nginx-UI/internal/cert"
|
||||
"github.com/0xJacky/Nginx-UI/internal/cluster"
|
||||
"github.com/0xJacky/Nginx-UI/internal/logger"
|
||||
"github.com/0xJacky/Nginx-UI/internal/logrotate"
|
||||
"github.com/0xJacky/Nginx-UI/internal/validation"
|
||||
|
@ -44,7 +45,7 @@ func InitAfterDatabase() {
|
|||
registerPredefinedUser,
|
||||
cert.InitRegister,
|
||||
InitCronJobs,
|
||||
registerPredefinedClusterNodes,
|
||||
cluster.RegisterPredefinedNodes,
|
||||
analytic.RetrieveNodesStatus,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue