Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions scripts/set-test-tokens.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ if [[ $# -ne 0 ]]; then
_fail "this script is hard-coded and does not accept arguments" 2
fi

LIVEKIT_API_KEY="devkey"
LIVEKIT_API_SECRET="secret"
LIVEKIT_API_KEY="${LIVEKIT_API_KEY:-devkey}"
LIVEKIT_API_SECRET="${LIVEKIT_API_SECRET:-secret}"
LIVEKIT_URL="${LIVEKIT_URL:-ws://localhost:7880}"
LIVEKIT_VALID_FOR="99999h"
LIVEKIT_URL="ws://localhost:7880"
_grant_json='{"canPublish":true,"canSubscribe":true,"canPublishData":true}'

echo "set_test_tokens: Using LIVEKIT_URL: $LIVEKIT_URL" >&2
Comment thread
stephen-derosa marked this conversation as resolved.

if ! command -v lk >/dev/null 2>&1; then
_fail "'lk' CLI not found. Install: https://docs.livekit.io/home/cli/" 2
fi
Expand Down
Loading