Refactor setup.sh to use updated matrixdotorg/synapse image

This commit is contained in:
Roger Gonzalez 2025-01-31 11:30:37 -03:00
parent 686e86df9e
commit 21948a68ed
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -15,10 +15,11 @@ fi
# Generate configuration
echo "Generating configuration with domain: $DOMAIN..."
docker compose run --rm \
-e SYNAPSE_SERVER_NAME="$DOMAIN" \
docker run -it --rm \  ✔   22s
-v $(pwd)/config/synapse:/data \
-e SYNAPSE_SERVER_NAME= "$DOMAIN" \
-e SYNAPSE_REPORT_STATS=no \
synapse generate
matrixdotorg/synapse:latest generate
# Generate and display the registration shared secret
SHARED_SECRET=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 50)