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) {
|
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",
|
"host": "localhost",
|
||||||
"password": "postgres",
|
"port": "27017",
|
||||||
"host": "localhost",
|
"db_name": "coopgo_platform",
|
||||||
"port": "5432",
|
"collections": map[string]any{
|
||||||
"dbname": "coopgo_platform",
|
"users": "users",
|
||||||
"sslmode": "disable",
|
|
||||||
"schema": "mobilityaccounts",
|
|
||||||
"tables": map[string]any{
|
|
||||||
"accounts": "accounts",
|
|
||||||
"accounts_auth_local": "accounts_auth_local",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue