mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-04 05:54:11 -04:00
Fix federation in demo scripts. (#12783)
This commit is contained in:
parent
d38c73e9ab
commit
a1cb05b3e8
3 changed files with 11 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue