Fix configuration par variables d'environnement
Autres changements: - [DOCKER-COMPOSE] Passer valeurs de MINIO_ROOT_USER et MINIO_ROOT_PASSWORD à `services.server`
This commit is contained in:
parent
85e899e5f6
commit
44cf284534
2 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@ package cmd
|
|||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
@ -51,6 +52,8 @@ func initConfig() {
|
|||
viper.SetConfigName(".agecem-org")
|
||||
}
|
||||
|
||||
viper.SetEnvPrefix("AGECEM_ORG")
|
||||
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
|
||||
viper.AutomaticEnv() // read in environment variables that match
|
||||
|
||||
// If a config file is found, read it in.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue