This playbook deploys Matrix server.
-
Provision a VM.
-
Add the (floating) IP to the
[matrix]
group inenv/hosts.ini
. -
Open
env/vars.yml
. Fill out the following config:matrix_db
matrix_db_user
matrix_db_pass
matrix_registration_shared_secret
-
Set up A record domain pointing to the VM IP. Put the domain name in
matrix_fqdn
. -
Deploy:
ansible-playbook -i env/hosts.ini -e @env/vars.yml matrix/deploy.yml
-
SSH to the VM.
-
Add a user by running:
register_new_matrix_user -c /etc/matrix-synapse/homeserver.yaml -u <username> http://localhost:8008
- Open a Matrix client, e.g. https://app.element.io.
- Change the homeserver to the value of
matrix_fqdn
. - Verify that we can log in using the user above.
Use this: https://github.com/zeratax/matrix-registration.
We can make newly-registered users (using the above public registration mechanism) to auto-join certain rooms, by setting the auto_join_rooms
config in /etc/matrix-synapse/homeserver.yaml
.