mirror of
https://github.com/codex-storage/codex-frontend.git
synced 2025-03-01 02:30:49 +00:00
MDF removed debug code
This commit is contained in:
parent
c72ad73aab
commit
a4b663b686
@ -11,7 +11,6 @@ RUN yarn build --production
|
|||||||
# Build step #2: build an nginx container
|
# Build step #2: build an nginx container
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
COPY --from=build-step /frontend/build /usr/share/nginx/html
|
COPY --from=build-step /frontend/build /usr/share/nginx/html
|
||||||
EXPOSE 80
|
|
||||||
COPY deployment/nginx.template /etc/nginx/nginx.template
|
COPY deployment/nginx.template /etc/nginx/nginx.template
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
@ -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";
|
|
||||||
}
|
|
||||||
}
|
|
@ -8,7 +8,6 @@ import {
|
|||||||
import NodeInfoItemComponent from "../../components/nodeInfoItem/NodeInfoItemComponent";
|
import NodeInfoItemComponent from "../../components/nodeInfoItem/NodeInfoItemComponent";
|
||||||
import Header from "../../components/layout/partials/Header";
|
import Header from "../../components/layout/partials/Header";
|
||||||
import { useDexyStore } from "../../store";
|
import { useDexyStore } from "../../store";
|
||||||
import constants from "../../util/Constants";
|
|
||||||
|
|
||||||
function DebugPage() {
|
function DebugPage() {
|
||||||
const { nodeInfo } = useDexyStore();
|
const { nodeInfo } = useDexyStore();
|
||||||
@ -30,7 +29,6 @@ function DebugPage() {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
console.log(response.data);
|
|
||||||
setStatusInfo(
|
setStatusInfo(
|
||||||
Convert.toDebugNodeInfoModel(JSON.stringify(response.data))
|
Convert.toDebugNodeInfoModel(JSON.stringify(response.data))
|
||||||
);
|
);
|
||||||
|
@ -28,7 +28,7 @@ export const useDexyStore = create<DexyState>()(
|
|||||||
ftdCid: "",
|
ftdCid: "",
|
||||||
setFtdCid: (cid) => set({ ftdCid: cid }),
|
setFtdCid: (cid) => set({ ftdCid: cid }),
|
||||||
nodeInfo: {
|
nodeInfo: {
|
||||||
baseUrl: "http://localhost",
|
baseUrl: "http://host.docker.internal:8080",
|
||||||
nodeToConnectTo: null,
|
nodeToConnectTo: null,
|
||||||
id: null,
|
id: null,
|
||||||
// ip: null,
|
// ip: null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user