mirror of
https://github.com/element-hq/element-docker-demo.git
synced 2026-01-24 22:26:13 +03:00
fix /etc/hosts for mkcert
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user