contrib/matrix-synapse
2022-05-21 22:40:07 +02:00
..
.footprint Merge remote-tracking branch 'origin/3.6' into 3.7 2022-05-21 22:40:07 +02:00
.signature Merge remote-tracking branch 'origin/3.6' into 3.7 2022-05-21 22:40:07 +02:00
Pkgfile matrix-synapse: 1.59.0 -> 1.59.1 2022-05-21 18:13:03 +02:00
pre-install
README.md
synapse.service

contrib/matrix-synapse README.md

Create a default config

Read 1. Substitute --server-name my.domain.name with your settings.

cd /var/lib/synapse
sudo -u synapse /usr/bin/python3 -m synapse.app.homeserver \\
  --server-name my.domain.name \\
  --config-path /etc/synapse/homeserver.yaml \\
  --generate-config \\
  --report-stats=yes

Databases

synapse uses sqlite by default, although postgresql is highly recommended in terms of server performance.

If you want to use postgresql as your database backend, read 2 and install:

  • contrib/psycopg2

Then migrate the database as described in the manual.

Caching

synapse can use redis, if you decide to have a complexer setup with workers. In this case, install:

  • hiredis
  • python3-txredisapi
  • python3-hiredis

Then you can alter the config appropriately.

Footnotes