mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
To solve a major problem: when there are many devices connected, the broker will blocked in processing messages. By the way, I've rewritten and reorganized the entire code architecture, improved performance. Some new features has been added: * support device grouping. * support show device's IP address. Change-Id: I250e18091be7fd42028c82767b6edef50b3f6d8f Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
49 lines
1.0 KiB
Go
49 lines
1.0 KiB
Go
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import eslint from '@nabla/vite-plugin-eslint'
|
|
import vueI18n from '@intlify/unplugin-vue-i18n/vite'
|
|
import compression from 'vite-plugin-compression2'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
eslint(),
|
|
compression({
|
|
algorithms: ['gzip'],
|
|
deleteOriginalAssets: true,
|
|
threshold: 10240
|
|
}),
|
|
vueI18n()
|
|
],
|
|
server: {
|
|
proxy: {
|
|
'/groups': {
|
|
target: 'http://127.0.0.1:5913'
|
|
},
|
|
'/devs': {
|
|
target: 'http://127.0.0.1:5913'
|
|
},
|
|
'/signin': {
|
|
target: 'http://127.0.0.1:5913'
|
|
},
|
|
'/signout': {
|
|
target: 'http://127.0.0.1:5913'
|
|
},
|
|
'/alive': {
|
|
target: 'http://127.0.0.1:5913'
|
|
},
|
|
'^/cmd/.*': {
|
|
target: 'http://127.0.0.1:5913'
|
|
},
|
|
'^/connect/.*': {
|
|
ws: true,
|
|
target: 'http://127.0.0.1:5913'
|
|
},
|
|
'^/web/*': {
|
|
target: 'http://127.0.0.1:5913'
|
|
}
|
|
}
|
|
}
|
|
})
|