fix https mix content

This commit is contained in:
2026-05-01 10:18:44 +07:00
parent df3a3cd188
commit b2d3d09eb0
3 changed files with 13 additions and 11 deletions
+12
View File
@@ -8,6 +8,18 @@ logLevel: info
############################################ ############################################
api: true api: true
apiAddress: :9997 apiAddress: :9997
authMethod: internal
authInternalUsers:
- user: dashboard
pass: password
ips: ['127.0.0.1', '::1', '192.168.88.0/24', '172.16.0.0/12']
permissions:
- action: api
- user: any
ips: ['127.0.0.1', '::1', '192.168.88.0/24', '172.16.0.0/12']
permissions:
- action: read
############################################ ############################################
# RTSP # RTSP
-1
View File
@@ -37,7 +37,6 @@
"typescript": "~5.8.3", "typescript": "~5.8.3",
"typescript-eslint": "^8.30.1", "typescript-eslint": "^8.30.1",
"vite": "^6.3.5", "vite": "^6.3.5",
"vite-plugin-trae-solo-badge": "^1.0.0",
"vite-tsconfig-paths": "^5.1.4", "vite-tsconfig-paths": "^5.1.4",
"vitest": "^2.1.9", "vitest": "^2.1.9",
"jsdom": "^25.0.1", "jsdom": "^25.0.1",
+1 -10
View File
@@ -1,7 +1,6 @@
import { defineConfig, loadEnv } from 'vite' import { defineConfig, loadEnv } from 'vite'
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
import tsconfigPaths from "vite-tsconfig-paths"; import tsconfigPaths from "vite-tsconfig-paths";
import { traeBadgePlugin } from 'vite-plugin-trae-solo-badge';
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig(({ mode }) => { export default defineConfig(({ mode }) => {
@@ -13,6 +12,7 @@ export default defineConfig(({ mode }) => {
proxy: { proxy: {
"/api": backend, "/api": backend,
"/videos": backend, "/videos": backend,
"/mtx": "http://127.0.0.1:8889",
}, },
}, },
build: { build: {
@@ -24,15 +24,6 @@ export default defineConfig(({ mode }) => {
plugins: ["react-dev-locator"], plugins: ["react-dev-locator"],
}, },
}), }),
traeBadgePlugin({
variant: "dark",
position: "bottom-right",
prodOnly: true,
clickable: true,
clickUrl: "https://www.trae.ai/solo?showJoin=1",
autoTheme: true,
autoThemeTarget: "#root",
}),
tsconfigPaths(), tsconfigPaths(),
], ],
test: { test: {