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
37
config.go
37
config.go
|
@ -7,23 +7,38 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func ReadConfig() (*viper.Viper, error) {
|
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{
|
defaults := map[string]any{
|
||||||
"name": "COOPGO Mobility Accounts",
|
"name": "COOPGO Mobility Accounts",
|
||||||
"dev_env": false,
|
"dev_env": false,
|
||||||
"storage": map[string]any{
|
"storage": map[string]any{
|
||||||
"db": map[string]any{
|
"db": map[string]any{
|
||||||
"type": "psql",
|
"type": "mongodb",
|
||||||
"psql": map[string]any{
|
"mongodb": map[string]any{
|
||||||
"user": "postgres",
|
|
||||||
"password": "postgres",
|
|
||||||
"host": "localhost",
|
"host": "localhost",
|
||||||
"port": "5432",
|
"port": "27017",
|
||||||
"dbname": "coopgo_platform",
|
"db_name": "coopgo_platform",
|
||||||
"sslmode": "disable",
|
"collections": map[string]any{
|
||||||
"schema": "mobilityaccounts",
|
"users": "users",
|
||||||
"tables": map[string]any{
|
|
||||||
"accounts": "accounts",
|
|
||||||
"accounts_auth_local": "accounts_auth_local",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue