mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-23 19:42:31 -05: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
|
||||
|
||||
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…
x
Reference in New Issue
Block a user