1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 10:22:19 +00:00

Change default config path

This commit is contained in:
Alexandre Iooss 2020-10-12 21:27:44 +02:00
parent 407d565927
commit 293a75803e
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

View File

@ -73,7 +73,7 @@ func Load() (*Config, error) {
// Create Configuro
config, err := configuro.NewConfig(
configuro.WithLoadFromEnvVars("GHOSTREAM"),
configuro.WithLoadFromConfigFile("./ghostream.yml", false),
configuro.WithLoadFromConfigFile("/etc/ghostream/ghostream.yml", false),
configuro.WithEnvConfigPathOverload("GHOSTREAM_CONFIG"),
)