fix /etc/hosts for mkcert

This commit is contained in:
Matthew Hodgson
2024-11-09 17:22:07 +00:00
parent bd85ab3414
commit f2a9d0bcb3
3 changed files with 3 additions and 3 deletions

View File

@@ -39,4 +39,4 @@ LIVEKIT_NODE_IP=127.0.0.1
COUNTRY=GB COUNTRY=GB
# as a convenience for creating /etc/hosts # 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"

View File

@@ -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, # Point DNS for *.domain at your docker host,
# Or if running on localhost with mkcert: # 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 docker compose up
# go to https://element on your domain. # go to https://element on your domain.

View File

@@ -10,7 +10,7 @@ if ! [ -x "$(command -v docker)" ]; then
fi fi
source .env source .env
domains=("${DOMAINS[@]}") # deep copy the array domains=($DOMAINS)
rsa_key_size=4096 rsa_key_size=4096
data_path="./data/certbot" data_path="./data/certbot"
read -p "admin email address for letsencrypt: " email read -p "admin email address for letsencrypt: " email