Skip to content

Commit 578c64e

Browse files
committed
Make the Nsight Streamer plugin work with Brev tunnels
1 parent 19e8c36 commit 578c64e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ services:
4242
- HOST_IP=0.0.0.0
4343
- WEB_USERNAME=""
4444
- WEB_PASSWORD=""
45+
- SELKIES_TURN_HOST=nsight-turn0-${BREV_ENV_ID}.brevlab.com
4546
ports:
4647
- "0.0.0.0:8080:8080" # HTTP
4748
- "0.0.0.0:3478:3478" # TURN
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/bin/bash
22

3-
EXTERNAL_IP=$(curl -sSL https://ipecho.net/plain)
3+
JUPYTER_HOST="nsight-jupyter0-${BREV_ENV_ID}.brevlab.com"
4+
NSIGHT_HTTP_URL="https://nsight-http0-${BREV_ENV_ID}.brevlab.com:8080"
45

56
cat << EOF
67
{
78
"ui": {
89
"enabled": true,
910
"suppressServerAddressWarning": true,
10-
"host": "${EXTERNAL_IP}",
11-
"dockerHost": "${EXTERNAL_IP}",
12-
"defaultStreamerAddress": "http://${EXTERNAL_IP}:8080"
11+
"host": "${JUPYTER_HOST}",
12+
"dockerHost": "${JUPYTER_HOST}",
13+
"defaultStreamerAddress": "${NSIGHT_HTTP_URL}"
1314
}
1415
}
1516
EOF

0 commit comments

Comments
 (0)