comment postgres config & add mongodb config in config.go
Build and Push Docker Image / build_and_push (push) Successful in 1m44s
Details
Build and Push Docker Image / build_and_push (push) Successful in 1m44s
Details
This commit is contained in:
parent
2501dabdba
commit
d588fe2b67
39
config.go
39
config.go
|
@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue