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{