From cdaf32f299675c2da29755b96190ca9bdd710535 Mon Sep 17 00:00:00 2001 From: thetechnocrat-dev Date: Mon, 23 Oct 2023 12:04:56 -0400 Subject: [PATCH 1/2] handle secure web socket on frontend --- frontend/app/job/detail/[jobID]/LogViewer.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/app/job/detail/[jobID]/LogViewer.tsx b/frontend/app/job/detail/[jobID]/LogViewer.tsx index 9528bcd81..676d63429 100644 --- a/frontend/app/job/detail/[jobID]/LogViewer.tsx +++ b/frontend/app/job/detail/[jobID]/LogViewer.tsx @@ -15,11 +15,12 @@ const LogViewer = () => { useEffect(() => { setLogs('') - // remove http:// or https:// from backendUrl for websocket - let formattedBackendUrl = backendUrl().replace('http://', '') - formattedBackendUrl = formattedBackendUrl.replace('https://', '') + + let formattedBackendUrl = backendUrl().replace('http://', '').replace('https://', ''); + let wsProtocol = backendUrl().startsWith('https://') ? 'wss' : 'ws'; + console.log(formattedBackendUrl) - const ws = new WebSocket(`ws://${formattedBackendUrl}/jobs/${job.BacalhauJobID}/logs`) + const ws = new WebSocket(`${wsProtocol}://${formattedBackendUrl}/jobs/${job.BacalhauJobID}/logs`) ws.onopen = () => { console.log('connected') From a8a360cfa69ed37d7255c69c4d8a5b00c758f2ed Mon Sep 17 00:00:00 2001 From: thetechnocrat-dev Date: Mon, 23 Oct 2023 19:58:12 +0000 Subject: [PATCH 2/2] add mb req to equibind gateway tool --- tools/equibind/equibind_gateway.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/equibind/equibind_gateway.json b/tools/equibind/equibind_gateway.json index 786be77c3..c1f175e6f 100644 --- a/tools/equibind/equibind_gateway.json +++ b/tools/equibind/equibind_gateway.json @@ -18,6 +18,7 @@ "dockerPull": "ghcr.io/labdao/equibind:main@sha256:21a381d9ab1ff047565685044569c8536a55e489c9531326498b28d6b3cc244f", "gpuBool": false, "networkBool": false, + "memoryGB": 5, "inputs": { "protein": { "type": "File",