support serving web interface via https proxy
This commit is contained in:
parent
99b0b644a9
commit
0da24a3f90
|
@ -86,8 +86,13 @@ export default {
|
|||
|
||||
const vm = this
|
||||
|
||||
var protocol = 'ws://'
|
||||
if (window.location.protocol === 'https:') {
|
||||
protocol = 'wss://'
|
||||
}
|
||||
|
||||
var socket = new ReconnectingWebSocket(
|
||||
'ws://' + window.location.hostname + ':' + vm.$store.state.config.websocket_port,
|
||||
protocol + window.location.hostname + ':' + vm.$store.state.config.websocket_port,
|
||||
'notify',
|
||||
{ reconnectInterval: 3000 }
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue