mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
move proxy settings to env.
This commit is contained in:
parent
0e3a58c519
commit
c22cf6ffce
3
.env
Normal file
3
.env
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# proxy for neko server
|
||||||
|
NEKO_HOST="192.168.1.20"
|
||||||
|
NEKO_PORT="3000"
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
|
.env.local
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
|
@ -14,11 +14,11 @@ module.exports = {
|
|||||||
disableHostCheck: true,
|
disableHostCheck: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
'^/ws': {
|
'^/ws': {
|
||||||
target: 'ws://192.168.1.20:3000/',
|
target: 'ws://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
||||||
ws: true,
|
ws: true,
|
||||||
},
|
},
|
||||||
'^/api': {
|
'^/api': {
|
||||||
target: 'http://192.168.1.20:3000/',
|
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user