rename & edit

This commit is contained in:
tavo-wasd 2024-02-15 21:39:00 -06:00
parent bf228ce9ab
commit 6b68ecb447
11 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,19 @@
# Matrix Synapse
```
sudo -i -u postgres psql -c "CREATE USER synapse_user WITH PASSWORD 'DB_PASSWORD';"
sudo -i -u postgres psql -c "CREATE DATABASE synapse ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' template=template0 OWNER synapse_user;"
systemctl restart postgresql
```
## Install Synapse
```
apt install -y lsb-release wget apt-transport-https
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
apt update
apt install matrix-synapse
```
## Configure nginx

View file

@ -22,7 +22,7 @@ server {
root /var/www/nextcloud;
# set max upload size and increase upload timeout:
client_max_body_size 512M;
client_max_body_size 8192M;
client_body_timeout 300s;
fastcgi_buffers 64 4K;