mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
add support for inter-node communications
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -363,7 +363,12 @@ func Init() {
|
||||
CreateDefaultAdmin: false,
|
||||
NamingRules: 1,
|
||||
IsShared: 0,
|
||||
BackupsPath: "backups",
|
||||
Node: dataprovider.NodeConfig{
|
||||
Host: "",
|
||||
Port: 0,
|
||||
Proto: "http",
|
||||
},
|
||||
BackupsPath: "backups",
|
||||
},
|
||||
HTTPDConfig: httpd.Conf{
|
||||
Bindings: []httpd.Binding{defaultHTTPDBinding},
|
||||
@@ -1967,6 +1972,9 @@ func setViperDefaults() {
|
||||
viper.SetDefault("data_provider.create_default_admin", globalConf.ProviderConf.CreateDefaultAdmin)
|
||||
viper.SetDefault("data_provider.naming_rules", globalConf.ProviderConf.NamingRules)
|
||||
viper.SetDefault("data_provider.is_shared", globalConf.ProviderConf.IsShared)
|
||||
viper.SetDefault("data_provider.node.host", globalConf.ProviderConf.Node.Host)
|
||||
viper.SetDefault("data_provider.node.port", globalConf.ProviderConf.Node.Port)
|
||||
viper.SetDefault("data_provider.node.proto", globalConf.ProviderConf.Node.Proto)
|
||||
viper.SetDefault("data_provider.backups_path", globalConf.ProviderConf.BackupsPath)
|
||||
viper.SetDefault("httpd.templates_path", globalConf.HTTPDConfig.TemplatesPath)
|
||||
viper.SetDefault("httpd.static_files_path", globalConf.HTTPDConfig.StaticFilesPath)
|
||||
|
||||
Reference in New Issue
Block a user