diff --git a/.env-sample b/.env-sample index b4d1335..325ee06 100644 --- a/.env-sample +++ b/.env-sample @@ -30,6 +30,8 @@ MAS_CLIENT_ID="0000000000000000000SYNAPSE" MAS_EMAIL_FROM='"Matrix Authentication Service" ' MAS_EMAIL_REPLY_TO='"Matrix Authentication Service" ' +# This should be the public IP of your $LIVEKIT_FQDN. +# If livekit doesn't work, double-check this. LIVEKIT_NODE_IP=127.0.0.1 COUNTRY=GB diff --git a/setup.sh b/setup.sh index 5b26e20..176b35a 100755 --- a/setup.sh +++ b/setup.sh @@ -21,9 +21,12 @@ if [[ ! -e .env ]]; then sed -ir s/^USER_ID=/USER_ID=$(id -u)/ .env sed -ir s/^GROUP_ID=/GROUP_ID=$(id -g)/ .env - NODE_IP=`getent hosts livekit.$DOMAIN | cut -d' ' -f1` - if ! [ -z "$NODE_IP" ]; then - sed -ir s/LIVEKIT_NODE_IP=127.0.0.1/LIVEKIT_NODE_IP=$NODE_IP/ .env + # try to guess your livekit IP + if [ -x "$(command -v getent)" ]; then + NODE_IP=`getent hosts livekit.$DOMAIN | cut -d' ' -f1` + if ! [ -z "$NODE_IP" ]; then + sed -ir s/LIVEKIT_NODE_IP=127.0.0.1/LIVEKIT_NODE_IP=$NODE_IP/ .env + fi fi read -p "Enter base domain name (e.g. example.com): " DOMAIN