ChatMatrix: Difference between revisions
From FlowerHouseWiki
Line 48: | Line 48: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<p></p> | <p>Uncomment following line</p> | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# bind_addresses: ... | |||
</syntaxhighlight> | |||
<p>Add following lines</p> | |||
<syntaxhighlight lang="console" line> | |||
suppress_key_server_warning: true | |||
registration_shared_secret: <SECRET-KEY> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Add User === | === Add User === | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> |
Revision as of 17:54, 15 July 2022
IP: | 192.168.88.19 |
---|---|
MAC: | BE:B1:89:38:28:44 |
Domain: | chat.flowerhouse.at |
OS: | Debian Bullseye |
---|---|
RAM: | 4096MB |
Cores: | 2 |
Privileged: | No |
The ChatMatrix-LXC is reachable under 192.168.88.19
which is located in the ServerVLAN.
The subdomain is chat.flowerhouse.at which is handled by the ReverseProxy.
Basic Setup
Installation
Install required packages
apt install -y lsb-release wget apt-transport-https
Add repository
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" | tee /etc/apt/sources.list.d/matrix-org.list
apt update
Install matrix-synapse
apt install matrix-synapse-py3
Check status
systemctl status matrix-synapse
Configuration
Create random key and save it
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
Edit matrix-synapse configuration file
nano /etc/matrix-synapse/homeserver.yaml
Uncomment following line
# bind_addresses: ...
Add following lines
suppress_key_server_warning: true
registration_shared_secret: <SECRET-KEY>
Add User
register_new_matrix_user -c /etc/matrix-synapse/homeserver.yaml http://localhost:8008