π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[server] Load museum.yaml after configuration.yaml
Manav Rathi9a3754215810
diff --git a/server/configurations/local.yaml b/server/configurations/local.yamlindex bca362b838..3775d6158a 100644--- a/server/configurations/local.yaml+++ b/server/configurations/local.yaml@@ -5,12 +5,13 @@# load one of the files from the `configurations/` directory. If not present,# then by default `local.yaml` (this file) will get loaded.#-# 2. Then, museum will look for a file named `museum.yaml` in the current-# working directory. If found, this file will also be loaded, and entries-# specified therein will override the defaults specified here.+# 2. If the "credentials-file" config option is set then museum will look for+# that file. If found, that file will also be loaded, and entries specified+# therein will override the defaults specified here.#-# 3. If the "credentials-file" config option is set, then museum will also load-# that and merge it in.+# 3. Then, museum will look for a file named `museum.yaml` (gitignored) in the+# current working directory. If found, this file will also be loaded and+# merged.## 4. Config can be overridden with via environment variables (details below).#diff --git a/server/pkg/utils/config/config.go b/server/pkg/utils/config/config.goindex 1bbd3707ac..b78d89b908 100644--- a/server/pkg/utils/config/config.go+++ b/server/pkg/utils/config/config.go@@ -47,11 +47,6 @@ func ConfigureViper(environment string) error {return err}- err = mergeConfigFileIfExists("museum.yaml")- if err != nil {- return err- }-credentialsFile := viper.GetString("credentials-file")if credentialsFile == "" {credentialsFile = "credentials.yaml"@@ -61,6 +56,11 @@ func ConfigureViper(environment string) error {return err}+ err = mergeConfigFileIfExists("museum.yaml")+ if err != nil {+ return err+ }+return nil}