diff --git a/.env-sample b/.env-sample index ec05862..c22e5b6 100644 --- a/.env-sample +++ b/.env-sample @@ -39,4 +39,4 @@ LIVEKIT_NODE_IP=127.0.0.1 COUNTRY=GB # as a convenience for creating /etc/hosts -DOMAINS=($DOMAIN $HOMESERVER_FQDN $MAS_FQDN $ELEMENT_WEB_FQDN $ELEMENT_CALL_FQDN $LIVEKIT_FQDN $LIVEKIT_JWT_FQDN) +DOMAINS="$DOMAIN $HOMESERVER_FQDN $MAS_FQDN $ELEMENT_WEB_FQDN $ELEMENT_CALL_FQDN $LIVEKIT_FQDN $LIVEKIT_JWT_FQDN" diff --git a/README.md b/README.md index 876ceec..19e84e0 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ For production-grade Matrix from Element, please see https://element.io/server-s # Point DNS for *.domain at your docker host, # Or if running on localhost with mkcert: -# source .env; sudo echo "127.0.0.1 ${DOMAINS[@]}" >> /etc/hosts +# source .env; sudo sh -c echo "127.0.0.1 $DOMAINS >> /etc/hosts" docker compose up # go to https://element on your domain. diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh index 13dc8e3..04297d7 100755 --- a/init-letsencrypt.sh +++ b/init-letsencrypt.sh @@ -10,7 +10,7 @@ if ! [ -x "$(command -v docker)" ]; then fi source .env -domains=("${DOMAINS[@]}") # deep copy the array +domains=($DOMAINS) rsa_key_size=4096 data_path="./data/certbot" read -p "admin email address for letsencrypt: " email