diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-05-18 14:49:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 14:49:33 -0400 |
commit | a1cb05b3e8b439a2e68d3762ea7373785b8be4e1 (patch) | |
tree | bbfc224bcf1107528c8d34fad6d75b866943b111 /demo | |
parent | Skip waiting for full state if a StateFilter does not require it (#12498) (diff) | |
download | synapse-a1cb05b3e8b439a2e68d3762ea7373785b8be4e1.tar.xz |
Fix federation in demo scripts. (#12783)
Diffstat (limited to 'demo')
-rwxr-xr-x | demo/start.sh | 7 |
1 files changed, 5 insertions, 2 deletions
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 |