From daa2b95dc35d28d1b67d05cdc5683b08127a0f0d Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Thu, 18 Jul 2024 09:36:18 +0200 Subject: [PATCH] add api endpoint to nginx server and update env vars --- Frontend/patient_manager/lib/env/env.dart | 2 +- nginx/nginx.conf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Frontend/patient_manager/lib/env/env.dart b/Frontend/patient_manager/lib/env/env.dart index 45e95a54..664bb6de 100644 --- a/Frontend/patient_manager/lib/env/env.dart +++ b/Frontend/patient_manager/lib/env/env.dart @@ -17,7 +17,7 @@ abstract class AppEnviroment { } case Enviroment.prod: { - baseApiUrl = "http://mzansi-innovation-hub.co.za:8080"; + baseApiUrl = "http://mzansi-innovation-hub.co.za/api/"; baseFileUrl = "http://mzansi-innovation-hub.co.za:9000"; break; } diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 886f1856..383d0564 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -30,6 +30,10 @@ http { proxy_pass http://MIH-UX:83/; } + location /api/ { + proxy_pass http://MIH-API-Hub:8080/; + } + location ~ /.well-known/acme-challenge/ { root /var/www/certbot; }