custom domain name
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<body>
|
||||
<video id="v" controls autoplay muted style="width:100%"></video>
|
||||
<script>
|
||||
const wsUrl = `ws://194.36.208.86:9090` // TODO use custom domain name
|
||||
const wsUrl = `${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/ws`;
|
||||
const player = mpegts.createPlayer(
|
||||
{ type: 'mpegts', isLive: true, url: wsUrl },
|
||||
{ liveBufferLatencyChasing: true, liveBufferLatencyMaxLatency: 1.5 }
|
||||
|
||||
@@ -14,13 +14,13 @@ services:
|
||||
container_name: mqtt-worker
|
||||
depends_on:
|
||||
- mosquitto
|
||||
ports:
|
||||
# - "80:80"
|
||||
- "9090:9090" # external WebSocket port for video streaming
|
||||
expose:
|
||||
- 80
|
||||
- 9090
|
||||
environment:
|
||||
MQTT_URL: mqtt://mosquitto:1883
|
||||
HTTP_PORT: "80"
|
||||
WS_PORT: "9090"
|
||||
HTTP_PORT: 80 # http port for video previewiong page
|
||||
WS_PORT: 9090 # WebSocket port for video streaming
|
||||
CLOUD_INGEST_URL: ${CLOUD_INGEST_URL:-https://demo.backend.drill.greact.ru/ingest}
|
||||
CLOUD_INGEST_API_KEY: ${CLOUD_INGEST_API_KEY:-}
|
||||
DEMO_CLOUD_INGEST_URL: ${DEMO_CLOUD_INGEST_URL:-}
|
||||
|
||||
Reference in New Issue
Block a user