Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Oct 9, 2024
1 parent 07bf29d commit 62c50ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
}
Expand Down Expand Up @@ -92,6 +92,8 @@ func NewDefaultConfig() *Config {

Clusters: map[string]ClusterOptions{},

Storages: nil,

Certificates: []CertificateConfig{},

Tunneler: TunnelConfig{
Expand Down Expand Up @@ -164,8 +166,6 @@ func NewDefaultConfig() *Config {
},
},

Storages: nil,

WebdavUsers: map[string]*storage.WebDavUser{},

Advanced: AdvancedConfig{
Expand Down

0 comments on commit 62c50ae

Please sign in to comment.