mirror of
https://git.freebsd.org/ports.git
synced 2025-07-12 23:09:19 -04:00
- Adjust pkg-message Changelog: https://matrix.org/blog/2018/11/20/synapse-0-33-9-is-here/ PR: 232379 Submitted by: maintainer Sponsored by: iXsystems Inc.
22 lines
1 KiB
Text
22 lines
1 KiB
Text
Configuring Synapse:
|
|
|
|
You may use the sample config located at %%ETCDIR%% to get started. It
|
|
already is configured to find the configuration in that location and
|
|
places the database in %%DBDIR%% and the logs in %%LOGDIR%%, but there
|
|
are some crucial values you will need to populate with unique data:
|
|
registration_shared_secret and macaroon_secret_key. Both of these
|
|
by default are 50 character random strings. These are by default set to
|
|
CHANGEME_50CHAR_RANDOM in the sample homeserver.yaml.
|
|
|
|
If you wish to have Synapse handle this for you including generation of
|
|
self-signed TLS certificates and dhparams you can use the following
|
|
command:
|
|
|
|
%%PYTHON_CMD%% -B -m synapse.app.homeserver -c %%ETCDIR%%/homeserver.yaml --generate-config -H <SERVER_NAME> --report-stats no
|
|
|
|
Please note that you will still need to manually configure paths to log
|
|
directory, database, and media storage with this method.
|
|
|
|
It is also important that you deploy a TLS certificate that your
|
|
clients accept as valid or some functionality will fail to work
|
|
correctly (eg, media file retrieval).
|