Change vite listen port name to GOTIFY_SERVER_PORT
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
8741d1e50d
commit
3d8bee8b11
|
|
@ -1,7 +1,7 @@
|
||||||
import {defineConfig} from 'vite';
|
import {defineConfig} from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
|
|
||||||
const GOTIFY_PORT = process.env.GOTIFY_PORT ?? '80';
|
const GOTIFY_SERVER_PORT = process.env.GOTIFY_SERVER_PORT ?? '80';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {
|
build: {
|
||||||
|
|
@ -21,12 +21,12 @@ export default defineConfig({
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
proxy: {
|
proxy: {
|
||||||
'^/(application|message|client|current|user|plugin|version|image)': {
|
'^/(application|message|client|current|user|plugin|version|image)': {
|
||||||
target: `http://localhost:${GOTIFY_PORT}/`,
|
target: `http://localhost:${GOTIFY_SERVER_PORT}/`,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
},
|
},
|
||||||
'/stream': {
|
'/stream': {
|
||||||
target: `ws://localhost:${GOTIFY_PORT}/`,
|
target: `ws://localhost:${GOTIFY_SERVER_PORT}/`,
|
||||||
ws: true,
|
ws: true,
|
||||||
rewriteWsOrigin: true,
|
rewriteWsOrigin: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue