This module installs and configures Matrix Synapse.
- Description
- Setup - The basics of getting started with synapse
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
This module installs and configures Matrix Synapse.
- Configures Apt to use the Matrix repositories (if enabled).
- Installs the Synapse package using the system package manager.
- Configures Synapse using the settings specific in the manifest.
- Manages the Synapse service.
This module by default configures Synapse to listen on 127.0.0.1:8008. If you want to connect to it remotely, you'll need to configure a frontend webserver or change the default bind address.
To get started, simply include the synapse
class as follows:
include ::synapse
The default settings will install Synapse and configure it to listen on 127.0.0.1:8008. You should configure a frontend webserver to proxy through to that address.
You should provide new values for registration_secret
and macaroon_secret_key
.
The default configuration doesn't provide secure values for registration_secret
and macaroon_secret_key
.
You can set them with the following Hiera:
synapse::registration_secret: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
synapse::macaroon_secret_key: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
To change what address Synapse binds to, use the following Hiera:
synapse::listen_address: 127.0.0.1
synapse::listen_port: 8008
To enable LDAP integration for logging in, you can use the following:
synapse::registration_enabled: false
synapse::additional_config:
password_providers:
- module: 'ldap_auth_provider.LdapAuthProvider'
config:
enabled: true
uri: 'my-ldap-server.com'
start_tls: true
base: 'ou=Users,dc=my-ldap-server,dc=com'
attributes:
uid: "cn"
mail: "mail"
name: "givenName"
# Search auth if anonymous search not enabled
bind_dn: 'cn=reader,dc=my-ldap-server,dc=com'
bind_password: 'reader password'
filter: '(objectClass=posixAccount)'
There are currently no known issues.
If you'd like to contribute, please see CONTRIBUTING.