From a4b663b68673644f5509591a0bfe31ea5715d6a9 Mon Sep 17 00:00:00 2001 From: Shaun Orssaud <72015533+Shorssaud@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:15:52 +0900 Subject: [PATCH] MDF removed debug code --- Dockerfile.client | 1 - deployment/nginx.conf | 21 --------------------- frontend/src/pages/debug/DebugPage.tsx | 2 -- frontend/src/store.ts | 2 +- 4 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 deployment/nginx.conf diff --git a/Dockerfile.client b/Dockerfile.client index 8408326..cc5466a 100644 --- a/Dockerfile.client +++ b/Dockerfile.client @@ -11,7 +11,6 @@ RUN yarn build --production # Build step #2: build an nginx container FROM nginx:stable-alpine COPY --from=build-step /frontend/build /usr/share/nginx/html -EXPOSE 80 COPY deployment/nginx.template /etc/nginx/nginx.template CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/deployment/nginx.conf b/deployment/nginx.conf deleted file mode 100644 index 85aaca7..0000000 --- a/deployment/nginx.conf +++ /dev/null @@ -1,21 +0,0 @@ -server -{ - listen 80; - server_name localhost; - - root /usr/share/nginx/html; - index index.html; - error_page 500 502 503 504 /50x.html; - - location /api { - proxy_pass $codex_url; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - location / { - try_files $uri /index.html; - add_header Cache-Control "no-cache"; - } -} \ No newline at end of file diff --git a/frontend/src/pages/debug/DebugPage.tsx b/frontend/src/pages/debug/DebugPage.tsx index ec535ea..c52af52 100644 --- a/frontend/src/pages/debug/DebugPage.tsx +++ b/frontend/src/pages/debug/DebugPage.tsx @@ -8,7 +8,6 @@ import { import NodeInfoItemComponent from "../../components/nodeInfoItem/NodeInfoItemComponent"; import Header from "../../components/layout/partials/Header"; import { useDexyStore } from "../../store"; -import constants from "../../util/Constants"; function DebugPage() { const { nodeInfo } = useDexyStore(); @@ -30,7 +29,6 @@ function DebugPage() { } ) .then((response) => { - console.log(response.data); setStatusInfo( Convert.toDebugNodeInfoModel(JSON.stringify(response.data)) ); diff --git a/frontend/src/store.ts b/frontend/src/store.ts index a6b5d1b..19a17b2 100644 --- a/frontend/src/store.ts +++ b/frontend/src/store.ts @@ -28,7 +28,7 @@ export const useDexyStore = create()( ftdCid: "", setFtdCid: (cid) => set({ ftdCid: cid }), nodeInfo: { - baseUrl: "http://localhost", + baseUrl: "http://host.docker.internal:8080", nodeToConnectTo: null, id: null, // ip: null,