update config
This commit is contained in:
@ -25,6 +25,7 @@
|
|||||||
"port": "5432",
|
"port": "5432",
|
||||||
"username": "postgres",
|
"username": "postgres",
|
||||||
"password": "123",
|
"password": "123",
|
||||||
"database": "bri_erp"
|
"database": "bri_erp",
|
||||||
|
"logging": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -15,8 +15,8 @@
|
|||||||
"cors": "*",
|
"cors": "*",
|
||||||
"ssl": {
|
"ssl": {
|
||||||
"enable": false,
|
"enable": false,
|
||||||
"cert": "/etc/letsencrypt/live/bri-dev.shiblysolution.id/fullchain.pem",
|
"cert": "",
|
||||||
"key": "/etc/letsencrypt/live/bri-dev.shiblysolution.id/privkey.pem"
|
"key": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"database": {
|
"database": {
|
||||||
@ -26,6 +26,6 @@
|
|||||||
"username": "bri_staging",
|
"username": "bri_staging",
|
||||||
"password": "fK*#o>1W2&6f",
|
"password": "fK*#o>1W2&6f",
|
||||||
"database": "bri_erp_staging",
|
"database": "bri_erp_staging",
|
||||||
"logging": false
|
"logging": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,7 +19,7 @@ export class OrmHelper {
|
|||||||
password: String(config.get("database.password")),
|
password: String(config.get("database.password")),
|
||||||
database: String(config.get("database.database")),
|
database: String(config.get("database.database")),
|
||||||
synchronize: true,
|
synchronize: true,
|
||||||
logging: true,
|
logging: config.get('database.logging'),
|
||||||
entities: [Product, Branch, Menu, Administrativu, Aldeia, ClassEconomi, District, IncomeTier, Munisipo, Suco, Category, Target, Application],
|
entities: [Product, Branch, Menu, Administrativu, Aldeia, ClassEconomi, District, IncomeTier, Munisipo, Suco, Category, Target, Application],
|
||||||
subscribers: [],
|
subscribers: [],
|
||||||
migrations: [],
|
migrations: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user