update config

This commit is contained in:
2025-01-01 15:49:55 +07:00
parent 535d25cf82
commit ca2db6efdc
4 changed files with 37 additions and 5 deletions

View File

@ -25,6 +25,7 @@
"port": "5432",
"username": "postgres",
"password": "123",
"database": "bri_erp"
"database": "bri_erp",
"logging": true
}
}

View File

@ -0,0 +1,31 @@
{
"app": {
"name": "Service Master Data",
"description": "Purpose of this service is to provide master data product, master data suco and etc",
"version": "1.0.0",
"env": "Production"
},
"server": {
"port": "4010",
"host": "0.0.0.0",
"host_swagger": "https://brilianapps.britimorleste.tl/test/m/",
"max_body": "50mb",
"max_upload": 104857600,
"morgan": "combined",
"cors": "*",
"ssl": {
"enable": false,
"cert": "",
"key": ""
}
},
"database": {
"engine": "postgres",
"host": "172.16.11.202",
"port": "5432",
"username": "bri_production",
"password": "44jTPj54%6<£",
"database": "bri_erp_production",
"logging": false
}
}

View File

@ -15,8 +15,8 @@
"cors": "*",
"ssl": {
"enable": false,
"cert": "/etc/letsencrypt/live/bri-dev.shiblysolution.id/fullchain.pem",
"key": "/etc/letsencrypt/live/bri-dev.shiblysolution.id/privkey.pem"
"cert": "",
"key": ""
}
},
"database": {
@ -26,6 +26,6 @@
"username": "bri_staging",
"password": "fK*#o>1W2&6f",
"database": "bri_erp_staging",
"logging": false
"logging": true
}
}

View File

@ -19,7 +19,7 @@ export class OrmHelper {
password: String(config.get("database.password")),
database: String(config.get("database.database")),
synchronize: true,
logging: true,
logging: config.get('database.logging'),
entities: [Product, Branch, Menu, Administrativu, Aldeia, ClassEconomi, District, IncomeTier, Munisipo, Suco, Category, Target, Application],
subscribers: [],
migrations: [],