From a1cb05b3e8b439a2e68d3762ea7373785b8be4e1 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 18 May 2022 14:49:33 -0400 Subject: Fix federation in demo scripts. (#12783) --- demo/start.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'demo/start.sh') diff --git a/demo/start.sh b/demo/start.sh index 5a9972d24c..96b3a2ceab 100755 --- a/demo/start.sh +++ b/demo/start.sh @@ -12,6 +12,7 @@ export PYTHONPATH echo "$PYTHONPATH" +# Create servers which listen on HTTP at 808x and HTTPS at 848x. for port in 8080 8081 8082; do echo "Starting server on port $port... " @@ -19,10 +20,12 @@ for port in 8080 8081 8082; do mkdir -p demo/$port pushd demo/$port || exit - # Generate the configuration for the homeserver at localhost:848x. + # Generate the configuration for the homeserver at localhost:848x, note that + # the homeserver name needs to match the HTTPS listening port for federation + # to properly work.. python3 -m synapse.app.homeserver \ --generate-config \ - --server-name "localhost:$port" \ + --server-name "localhost:$https_port" \ --config-path "$port.config" \ --report-stats no -- cgit 1.4.1