From 6dbfe29923eb271471bbd74723137f9b0987e644 Mon Sep 17 00:00:00 2001 From: DMRobertson Date: Tue, 1 Aug 2023 11:02:34 +0000 Subject: deploy: 190c990a76ac0faaaec31340a721cee4d172016a --- latest/print.html | 129 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 113 insertions(+), 16 deletions(-) (limited to 'latest/print.html') diff --git a/latest/print.html b/latest/print.html index fb889b1adf..1d43f1242e 100644 --- a/latest/print.html +++ b/latest/print.html @@ -320,8 +320,8 @@ The latest version of Synapse can be installed from https://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-15/standard/

ArchLinux

-

The quickest way to get up and running with ArchLinux is probably with the community package -https://archlinux.org/packages/community/x86_64/matrix-synapse/, which should pull in most of +

The quickest way to get up and running with ArchLinux is probably with the package provided by ArchLinux +https://archlinux.org/packages/extra/x86_64/matrix-synapse/, which should pull in most of the necessary dependencies.

pip may be outdated (6.0.7-1 and needs to be upgraded to 6.0.8-1 ):

sudo pip install --upgrade pip
@@ -1779,6 +1779,12 @@ dpkg -i matrix-synapse-py3_1.3.0+stretch1_amd64.deb
 
+

Upgrading to v1.89.0

+

Removal of unspecced user property for /register

+

Application services can no longer call /register with a user property to create new users. +The standard username property should be used instead. See the +Application Service specification +for more information.

Upgrading to v1.88.0

Minimum supported Python version

The minimum supported Python version has been increased from v3.7 to v3.8. @@ -4043,6 +4049,23 @@ on this port. Sub-options for each resource are:

additional endpoints which should be loaded via dynamic modules.

+

Unix socket support (Added in Synapse 1.89.0):

+

Valid resource names are:

@@ -10907,10 +10982,10 @@ recommend the use of systemd where available: for information on se

Start Synapse with Poetry

The following applies to Synapse installations that have been installed from source using poetry.

You can start the main Synapse process with Poetry by running the following command:

-
poetry run synapse_homeserver -c [your homeserver.yaml]
+
poetry run synapse_homeserver --config-file [your homeserver.yaml]
 

For worker setups, you can run the following command

-
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

synapse.app.generic_worker

@@ -11235,6 +11310,26 @@ the stream writer for the receipts stream:

the stream writer for the presence stream:

^/_matrix/client/(api/v1|r0|v3|unstable)/presence/
 
+

Restrict outbound federation traffic to a specific set of workers

+

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"
+

Background tasks

There is also support for moving background tasks to a separate worker. Background tasks are run periodically or started via replication. Exactly @@ -14284,7 +14379,8 @@ when admins wish to do actions on behalf of a user.

An optional valid_until_ms field can be specified in the request body as an integer timestamp that specifies when the token should expire. By default tokens -do not expire.

+do not expire. Note that this API does not allow a user to login as themselves +(to create more tokens).

A response body like the following is returned:

{
     "access_token": "<opaque_access_token_string>"
@@ -16111,6 +16207,7 @@ See the worker documentation for addit
 
 
  • Passing ASYNCIO_REACTOR=1 as an environment variable to use the Twisted asyncio reactor instead of the default one.
  • Passing PODMAN=1 will use the podman container runtime, instead of docker.
  • +
  • Passing UNIX_SOCKETS=1 will utilise Unix socket functionality for Synapse, Redis, and Postgres(when applicable).
  • To increase the log level for the tests, set SYNAPSE_TEST_LOG_LEVEL, e.g:

    SYNAPSE_TEST_LOG_LEVEL=DEBUG COMPLEMENT_DIR=../complement ./scripts-dev/complement.sh -run TestImportHistoricalMessages
    -- 
    cgit 1.5.1