diff --git a/config/config.json b/config/config.json index 38a1dfbc..c2a2c230 100644 --- a/config/config.json +++ b/config/config.json @@ -1,33 +1,13 @@ { "general": { - "port": 8334, - "host": "https://nuage.kerjean.me", - "secret_key": "", - "editor": "emacs", - "fork_button": true, - "display_hidden": false, - "client_search_enable": true, - "client_search_per_min": 20, - "auto_connect": false + }, + "features": { }, "log": { - "enable": true, - "level": "INFO", - "telemetry": true }, - "smtp": { - "addr": "smtp.gmail.com", - "username": "mickael.kerjean@gmail.com", - "password": "test" + "email": { }, "oauth": { - "gdrive": { - "client_id": "", - "client_secret": "" - }, - "dropbox": { - "client_id": "" - } }, "connections": [ { diff --git a/server/common/config.go b/server/common/config.go index 0c1feeea..e1bd6f49 100644 --- a/server/common/config.go +++ b/server/common/config.go @@ -35,8 +35,8 @@ func init() { c.Get("oauth").Default("") // Features - c.Get("feature.share.enable").Default(true) - c.Get("feature.search.enable").Default(true) + c.Get("features.share.enable").Default(true) + c.Get("features.search.enable").Default(true) // Log @@ -196,8 +196,8 @@ func (this Config) Export() (string, error) { Name: this.Get("general.name").String(), RememberMe: this.Get("general.remember_me").Bool(), Connections: this.Get("connections").Interface(), - EnableSearch: this.Get("feature.search.enable").Bool(), - EnableShare: this.Get("geature.share.enable").Bool(), + EnableSearch: this.Get("features.search.enable").Bool(), + EnableShare: this.Get("features.share.enable").Bool(), MimeTypes: AllMimeTypes(), } j, err := json.Marshal(publicConf)