mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-28 14:08:29 +02:00
move proxy settings to env.
This commit is contained in:
parent
0e3a58c519
commit
c22cf6ffce
3 changed files with 6 additions and 2 deletions
|
@ -14,11 +14,11 @@ module.exports = {
|
|||
disableHostCheck: true,
|
||||
proxy: {
|
||||
'^/ws': {
|
||||
target: 'ws://192.168.1.20:3000/',
|
||||
target: 'ws://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
||||
ws: true,
|
||||
},
|
||||
'^/api': {
|
||||
target: 'http://192.168.1.20:3000/',
|
||||
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue