From 98e1ccc5d2b4bf69851d8a3e7bb7a246fa7f1198 Mon Sep 17 00:00:00 2001 From: im-calvin Date: Thu, 26 Oct 2023 00:54:12 -0700 Subject: [PATCH] change api-endpoint to .com This reverts commit 38a7333b38da52554107f347b4db69b7b36c63e0. --- admin-system/backend/postman-environment.json | 36 +++++++++---------- admin-system/frontend/vite.config.js | 2 +- client/forge.config.js | 2 +- client/src/main.js | 2 +- client/src/preload.js | 2 +- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/admin-system/backend/postman-environment.json b/admin-system/backend/postman-environment.json index fcbac07..308092c 100644 --- a/admin-system/backend/postman-environment.json +++ b/admin-system/backend/postman-environment.json @@ -1,19 +1,19 @@ { - "id": "cf22f32b-d27b-4ec9-8685-912f70de555f", - "values": [ - { - "key": "hostname", - "value": "https://3fa.bxian03.systems", - "type": "default", - "enabled": true - }, - { - "key": "port", - "value": "443", - "type": "default", - "enabled": true - } - ], - "name": "Globals", - "_postman_variable_scope": "globals" -} \ No newline at end of file + "id": "cf22f32b-d27b-4ec9-8685-912f70de555f", + "values": [ + { + "key": "hostname", + "value": "https://3fa.bxian03.com", + "type": "default", + "enabled": true + }, + { + "key": "port", + "value": "443", + "type": "default", + "enabled": true + } + ], + "name": "Globals", + "_postman_variable_scope": "globals" +} diff --git a/admin-system/frontend/vite.config.js b/admin-system/frontend/vite.config.js index 333b3c3..3ad1611 100644 --- a/admin-system/frontend/vite.config.js +++ b/admin-system/frontend/vite.config.js @@ -9,7 +9,7 @@ export default ({ mode }) => { plugins: [react()], server: { cors: { - origin: [/(localhost|127\.0\.0\.1)/, "http://192.168.137.1", "https://3fa.bxian03.systems"], + origin: [/(localhost|127\.0\.0\.1)/, "http://192.168.137.1", "https://3fa.bxian03.com"], }, }, }); diff --git a/client/forge.config.js b/client/forge.config.js index cbff134..fd04ade 100644 --- a/client/forge.config.js +++ b/client/forge.config.js @@ -25,7 +25,7 @@ module.exports = { { name: "@electron-forge/plugin-webpack", config: { - devContentSecurityPolicy: `connect-src 'self' http://192.168.137.1:5000 https://192.168.137.1:5000 https://127.0.0.1:5000 http://127.0.0.1:5000 http://192.168.137.159 http://192.168.12.159 https://3fa.bxian03.systems`, + devContentSecurityPolicy: `connect-src 'self' http://192.168.137.1:5000 https://192.168.137.1:5000 https://127.0.0.1:5000 http://127.0.0.1:5000 http://192.168.137.159 http://192.168.12.159 https://3fa.bxian03.com`, mainConfig: "./webpack.main.config.js", renderer: { config: "./webpack.renderer.config.js", diff --git a/client/src/main.js b/client/src/main.js index 37c86de..6d9cb7f 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -4,7 +4,7 @@ const { readFileSync, writeFile } = require("node:fs"); const { desktopCapturer } = require("electron"); require("dotenv").config(); -API_ENDPOINT = "https://3fa.bxian03.com/"; +API_ENDPOINT = "https://3fa.bxian03.systems/"; require("update-electron-app")({ updateInterval: "1 hour", diff --git a/client/src/preload.js b/client/src/preload.js index efe695a..26a8bfb 100644 --- a/client/src/preload.js +++ b/client/src/preload.js @@ -4,7 +4,7 @@ const { contextBridge, ipcRenderer, app } = require("electron"); -API_ENDPOINT = "https://3fa.bxian03.systems/"; +API_ENDPOINT = "https://3fa.bxian03.com/"; PICO_API_ENDPOINT = "http://192.168.1.153"; // 'internal' channel is used for internal stuff