mirror of https://github.com/rancher/dashboard.git
Resolve WS connection issues
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
parent
56beb4fc55
commit
aed3f3589c
|
|
@ -246,6 +246,7 @@ module.exports = function(dir, _appConfig) {
|
|||
const config = {
|
||||
// Vue server
|
||||
devServer: {
|
||||
client: { webSocketURL: `wss://0.0.0.0:${ devPorts ? 8005 : 80 }` },
|
||||
server: {
|
||||
type: 'https',
|
||||
options: {
|
||||
|
|
@ -253,11 +254,8 @@ module.exports = function(dir, _appConfig) {
|
|||
cert: fs.readFileSync(path.resolve(__dirname, 'server/server.crt'))
|
||||
}
|
||||
},
|
||||
port: (devPorts ? 8005 : 80),
|
||||
host: '0.0.0.0',
|
||||
// TODO: Verify after migration completed
|
||||
client: { webSocketURL: `https://0.0.0.0:${ devPorts ? 8005 : 80 }` },
|
||||
proxy,
|
||||
port: (devPorts ? 8005 : 80),
|
||||
host: '0.0.0.0',
|
||||
setupMiddlewares(middlewares, devServer) {
|
||||
const socketProxies = {};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue