diff --git a/config/trackdirect.ini b/config/trackdirect.ini index af33eed..fa4ee97 100644 --- a/config/trackdirect.ini +++ b/config/trackdirect.ini @@ -23,6 +23,10 @@ leaflet_raster_tile_satellite="" ;; Examples: "HERE.satelliteDay" coverage_only_moving_senders="0" coverage_percentile="95" +;; Url to the websocket server, if you use https you need to set this +;; If nothing is set we will try the url: ws://current-url:9000/ws +;websocket_url="wss://ws.my-domain.com" + [database] diff --git a/htdocs/public/index.php b/htdocs/public/index.php index c26188b..9cefff1 100755 --- a/htdocs/public/index.php +++ b/htdocs/public/index.php @@ -146,9 +146,9 @@ $REQUEST_PROTOCOL = $isSecure ? 'https' : 'http'; options['host'] = ""; var supportsWebSockets = 'WebSocket' in window || 'MozWebSocket' in window; - if (supportsWebSockets) { - - var wsServerUrl = 'wss://:9000/ws'; + if (supportsWebSockets) { + + var wsServerUrl = ""; var wsServerUrl = 'ws://:9000/ws';