From ae66b1f8f177f47c80dcbc999b6887e41c431b65 Mon Sep 17 00:00:00 2001 From: Abdul Rahman Reza Date: Tue, 24 Dec 2024 14:08:11 +0700 Subject: [PATCH] update config --- config/prod.json | 38 ++++++++++++++++++++++++++++++++++++++ config/stag.json | 6 +++--- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/config/prod.json b/config/prod.json index e69de29..3744910 100644 --- a/config/prod.json +++ b/config/prod.json @@ -0,0 +1,38 @@ +{ + "app": { + "name": "Service User", + "description": "Purpose of this service is to provide authorization, roles, user activity and etc", + "version": "1.0.0", + "env": "Production" + }, + "server": { + "port": "4001", + "host": "0.0.0.0", + "host_swagger": "https://brilianapps.shiblysolution.id/api/u", + "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_staging", + "password": "fK*#o>1W2&6f", + "database": "bri_erp_staging" + }, + "auth": { + "refresh_token_lifetime_day": 30, + "access_token_lifetime": 86400, + "reset_password_url": "https://brilianapps.shiblysolution.id/ukln/auth/reset-password/" + }, + "service": { + "notification": "http://127.0.0.1:4008/" + } +} diff --git a/config/stag.json b/config/stag.json index 7f933f0..c2c9fc8 100644 --- a/config/stag.json +++ b/config/stag.json @@ -8,15 +8,15 @@ "server": { "port": "4001", "host": "0.0.0.0", - "host_swagger": "http://brilianapps.shiblysolution.id:4001", + "host_swagger": "http://brilianapps.shiblysolution.id:5001", "max_body": "50mb", "max_upload": 104857600, "morgan": "combined", "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": {