From 62c50ae629256b0d03a8600e5ca4b6c2f31a43ea Mon Sep 17 00:00:00 2001 From: zyxkad Date: Wed, 9 Oct 2024 11:54:36 -0600 Subject: [PATCH] update config --- config/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index 3654b6c..c114cc3 100644 --- a/config/config.go +++ b/config/config.go @@ -50,6 +50,7 @@ type Config struct { AccessLogSlots int `yaml:"access-log-slots"` Clusters map[string]ClusterOptions `yaml:"clusters"` + Storages []storage.StorageOption `yaml:"storages"` Certificates []CertificateConfig `yaml:"certificates"` Tunneler TunnelConfig `yaml:"tunneler"` Cache CacheConfig `yaml:"cache"` @@ -60,7 +61,6 @@ type Config struct { GithubAPI GithubAPIConfig `yaml:"github-api"` Database DatabaseConfig `yaml:"database"` Hijack HijackConfig `yaml:"hijack"` - Storages []storage.StorageOption `yaml:"storages"` WebdavUsers map[string]*storage.WebDavUser `yaml:"webdav-users"` Advanced AdvancedConfig `yaml:"advanced"` } @@ -92,6 +92,8 @@ func NewDefaultConfig() *Config { Clusters: map[string]ClusterOptions{}, + Storages: nil, + Certificates: []CertificateConfig{}, Tunneler: TunnelConfig{ @@ -164,8 +166,6 @@ func NewDefaultConfig() *Config { }, }, - Storages: nil, - WebdavUsers: map[string]*storage.WebDavUser{}, Advanced: AdvancedConfig{