comment postgres config & add mongodb config in config.go
Build and Push Docker Image / build_and_push (push) Successful in 1m44s Details

This commit is contained in:
Nicolas CARON 2024-03-27 13:32:50 +01:00
parent 2501dabdba
commit d588fe2b67
1 changed files with 27 additions and 12 deletions

View File

@ -7,23 +7,38 @@ import (
)
func ReadConfig() (*viper.Viper, error) {
// defaults := map[string]any{
// "name": "COOPGO Mobility Accounts",
// "dev_env": false,
// "storage": map[string]any{
// "db": map[string]any{
// "type": "psql",
// "psql": map[string]any{
// "user": "postgres",
// "password": "postgres",
// "host": "localhost",
// "port": "5432",
// "dbname": "coopgo_platform",
// "sslmode": "disable",
// "schema": "mobilityaccounts",
// "tables": map[string]any{
// "accounts": "accounts",
// "accounts_auth_local": "accounts_auth_local",
// },
// },
// },
defaults := map[string]any{
"name": "COOPGO Mobility Accounts",
"dev_env": false,
"storage": map[string]any{
"db": map[string]any{
"type": "psql",
"psql": map[string]any{
"user": "postgres",
"password": "postgres",
"host": "localhost",
"port": "5432",
"dbname": "coopgo_platform",
"sslmode": "disable",
"schema": "mobilityaccounts",
"tables": map[string]any{
"accounts": "accounts",
"accounts_auth_local": "accounts_auth_local",
"type": "mongodb",
"mongodb": map[string]any{
"host": "localhost",
"port": "27017",
"db_name": "coopgo_platform",
"collections": map[string]any{
"users": "users",
},
},
},