From 6dbfe29923eb271471bbd74723137f9b0987e644 Mon Sep 17 00:00:00 2001
From: DMRobertson The following applies to Synapse installations that have been installed from source using You can start the main Synapse process with Poetry by running the following command: For worker setups, you can run the following commandinstance_map
-with the main
process defined, as well as the relevant connection information from
-it's HTTP replication
listener (defined in step 1 above). Note that the host
defined
-is the address the worker needs to look for the main
process at, not necessarily the same address that is bound to.main
process defined, as well as the relevant connection information from
+it's HTTP replication
listener (defined in step 1 above).
+
+
+
host
defined is the address the worker needs to look for the main
+process at, not necessarily the same address that is bound to.replication
resource, make sure to
+use a path
to the socket file instead of a port
.systemd
where available: for information on se
Start Synapse with Poetry
poetry
.poetry run synapse_homeserver -c [your homeserver.yaml]
+
poetry run synapse_homeserver --config-file [your homeserver.yaml]
poetry run synapse_worker -c [your worker.yaml]
+
poetry run synapse_worker --config-file [your homeserver.yaml] --config-file [your worker.yaml]
Available worker applications
@@ -621,6 +627,26 @@ the stream writer for the synapse.app.generic_worker
receipts
stream:
presence
stream:
^/_matrix/client/(api/v1|r0|v3|unstable)/presence/
+The
+outbound_federation_restricted_to
+configuration is useful to make sure outbound federation traffic only goes through a
+specified subset of workers. This allows you to set more strict access controls (like a
+firewall) for all workers and only allow the federation_sender
's to contact the
+outside world.
instance_map:
+ main:
+ host: localhost
+ port: 8030
+ federation_sender1:
+ host: localhost
+ port: 8034
+
+outbound_federation_restricted_to:
+ - federation_sender1
+
+worker_replication_secret: "secret_secret"
+
There is also support for moving background tasks to a separate worker. Background tasks are run periodically or started via replication. Exactly -- cgit 1.5.1