Matrix: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
| Line 20: | Line 20: | ||
== Database Setup == |
== Database Setup == |
||
Install PostgreSQL and related packages. |
|||
<pre> |
<pre> |
||
apt install postgresql libpq5 |
apt install postgresql libpq5 |
||
</pre> |
</pre> |
||
Authenticate as database user |
|||
<pre> |
<pre> |
||
su - postgres |
su - postgres |
||
| Line 40: | Line 40: | ||
</pre> |
</pre> |
||
Edit Synapse config in <code>/etc/matrix-synapse/homeserver.yaml</code> |
|||
<pre> |
<pre> |
||
database: |
database: |
||
Revision as of 15:49, 10 July 2025
We are currently setting up a test server for Matrix. If everything goes well, we will set up a production Matrix server.
Server Setup
We are currently running Matrix on a Proxmox VM on citric-acid. Ask Siracha for the credentials to access Proxmox and the VM.
Matrix Setup
Note: all steps are adapted from https://element-hq.github.io/synapse/latest/setup/installation.html.
Matrix Installation
sudo apt install -y lsb-release wget apt-transport-https
sudo wget -O /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ $(lsb_release -cs) main" |
sudo tee /etc/apt/sources.list.d/matrix-org.list
sudo apt update
sudo apt install matrix-synapse-py3
Database Setup
Install PostgreSQL and related packages.
apt install postgresql libpq5
Authenticate as database user
su - postgres # Or, if your system uses sudo to get administrative rights sudo -u postgres bash
- Create a postgres user and a database
# this will prompt for a password for the new user createuser --pwprompt synapse_user createdb --encoding=UTF8 --locale=C --template=template0 --owner=synapse_user synapse
Edit Synapse config in /etc/matrix-synapse/homeserver.yaml
database:
name: psycopg2
args:
user: synapse_user
password: <pass>
dbname: synapse
host: localhost
cp_min: 5
cp_max: 10