mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-29 08:43:42 -04:00
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
|
const vm = this
|
||||||
|
|
||||||
|
var protocol = 'ws://'
|
||||||
|
if (window.location.protocol === 'https:') {
|
||||||
|
protocol = 'wss://'
|
||||||
|
}
|
||||||
|
|
||||||
var socket = new ReconnectingWebSocket(
|
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',
|
'notify',
|
||||||
{ reconnectInterval: 3000 }
|
{ reconnectInterval: 3000 }
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user