From d7b5de9ae17efd314dc1ee84ed130b939a7c8018 Mon Sep 17 00:00:00 2001 From: Roee Gadot Date: Thu, 7 Jul 2022 17:38:49 +0300 Subject: [PATCH] no message --- nginx-files/conf.d/applications/00-api-server.conf | 7 +++++-- ui/src/helpers/api.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/nginx-files/conf.d/applications/00-api-server.conf b/nginx-files/conf.d/applications/00-api-server.conf index 3a7a25543..ff7eb6c23 100644 --- a/nginx-files/conf.d/applications/00-api-server.conf +++ b/nginx-files/conf.d/applications/00-api-server.conf @@ -1,8 +1,8 @@ location /api/ { proxy_pass http://127.0.0.1:8899/; } -location /ws/ { - proxy_pass http://127.0.0.1:8899/ws/; +location /ws { + proxy_pass http://127.0.0.1:8899/ws; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; @@ -17,3 +17,6 @@ location /wsTapper { proxy_set_header Host $host; proxy_read_timeout 86400s; } + + + diff --git a/ui/src/helpers/api.js b/ui/src/helpers/api.js index 7b7dc1802..fe9ba4e55 100644 --- a/ui/src/helpers/api.js +++ b/ui/src/helpers/api.js @@ -5,7 +5,7 @@ export const MizuWebsocketURL = process.env.REACT_APP_OVERRIDE_WS_URL ? process. const CancelToken = axios.CancelToken; -const apiURL = process.env.REACT_APP_OVERRIDE_API_URL ? process.env.REACT_APP_OVERRIDE_API_URL : `${window.location.origin}`; +const apiURL = process.env.REACT_APP_OVERRIDE_API_URL ? process.env.REACT_APP_OVERRIDE_API_URL : `${window.location.origin}/`; let client = null let source = null