From 39b5d1631e2a4d4407236da2917b423283228b4f Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Tue, 17 Sep 2024 08:46:21 +0100 Subject: [PATCH 1/3] fix(docker): remove duplicated NEXT_PUBLIC_API_ORIGIN environment variable --- docker/.env.example | 1 - 1 file changed, 1 deletion(-) diff --git a/docker/.env.example b/docker/.env.example index 33347086..4ff13c73 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -4,7 +4,6 @@ APP_DOMAIN=localhost SSL_EMAIL=hello@hexabot.ai API_PORT=4000 APP_SCRIPT_COMPODOC_PORT=9003 -NEXT_PUBLIC_API_ORIGIN=http://${APP_DOMAIN}:${API_PORT} API_ORIGIN=http://${APP_DOMAIN}:${API_PORT} FRONTEND_ORIGIN=http://${APP_DOMAIN}:8080,http://${APP_DOMAIN}:8081,http://${APP_DOMAIN}:5173,http://${APP_DOMAIN},http://${APP_DOMAIN}/*,* JWT_SECRET=dev_only From f4367755080ee392cbc541b7c83b0b4a86dd8a34 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Tue, 17 Sep 2024 11:00:43 +0100 Subject: [PATCH 2/3] udapte(docker): replace hardcoded port by the correspending env variable --- docker/.env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/.env.example b/docker/.env.example index 4ff13c73..619d9010 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -48,11 +48,11 @@ NLP_PORT=5000 # Frontend (Next.js) APP_FRONTEND_PORT=8080 -NEXT_PUBLIC_API_ORIGIN=http://${APP_DOMAIN}:4000/ +NEXT_PUBLIC_API_ORIGIN=http://${APP_DOMAIN}:${API_PORT}/ NEXT_PUBLIC_SSO_ENABLED=false # Widget APP_WIDGET_PORT=5173 -REACT_APP_WIDGET_API_URL=http://${APP_DOMAIN}:4000 +REACT_APP_WIDGET_API_URL=http://${APP_DOMAIN}:${API_PORT} REACT_APP_WIDGET_CHANNEL=offline REACT_APP_WIDGET_TOKEN=token123 From 28893a4977b4a4270f373ff6f7af8804b673a572 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Wed, 18 Sep 2024 06:15:50 +0100 Subject: [PATCH 3/3] udapte(docker): update MONGO_URI env variable syntax --- docker/.env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/.env.example b/docker/.env.example index 619d9010..2104dcc3 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -27,7 +27,7 @@ I18N_TRANSLATION_FILENAME=messages APP_MONGO_EXPRESS_PORT=9000 MONGO_USER=dev_only MONGO_PASSWORD=dev_only -MONGO_URI=mongodb://dev_only:dev_only@mongo:27017/ +MONGO_URI=mongodb://${MONGO_USER}:${MONGO_PASSWORD}@mongo:27017/ MONGO_DB=hexabot # SMTP Config for local dev env