MatrixServerInstallation: Difference between revisions
Jump to navigation
Jump to search
(Created page with "https://matrix.org/docs/guides/installing-synapse/ == Implementation: Synapse == * https://github.com/matrix-org/synapse/ * https://matrix-org.github.io/synapse/latest/setup/installation.html == Installation == * Host: matrix.traxel.com * IP: 44.237.36.191 * Provider: Lightsail === Host Basics === <pre> ssh -i path/to/key.pem admin@44.237.36.191 sudo apt update && sudo apt upgrade -y && sudo apt install -y emacs-nox net-tools git curl unzip wget </pre> .ssh/config <pre>...") |
No edit summary |
||
Line 1: | Line 1: | ||
https://matrix.org/docs/guides/installing-synapse/ | https://matrix.org/docs/guides/installing-synapse/ | ||
= Implementation: Synapse = | |||
* https://github.com/matrix-org/synapse/ | * https://github.com/matrix-org/synapse/ | ||
* https://matrix-org.github.io/synapse/latest/setup/installation.html | * https://matrix-org.github.io/synapse/latest/setup/installation.html | ||
= Installation = | |||
* Host: matrix.traxel.com | * Host: matrix.traxel.com | ||
* IP: 44.237.36.191 | * IP: 44.237.36.191 | ||
* Provider: Lightsail | * Provider: Lightsail | ||
== Host Basics == | |||
<pre> | <pre> | ||
ssh -i path/to/key.pem admin@44.237.36.191 | ssh -i path/to/key.pem admin@44.237.36.191 | ||
Line 20: | Line 20: | ||
IdentityFile /path/to/key.pem | IdentityFile /path/to/key.pem | ||
</pre> | </pre> | ||
== Synapse Install == | |||
Based on: https://matrix-org.github.io/synapse/latest/setup/installation.html | Based on: https://matrix-org.github.io/synapse/latest/setup/installation.html | ||
<pre> | <pre> | ||
Line 30: | Line 30: | ||
</pre> | </pre> | ||
== Using Postgres == | |||
Based on: https://matrix-org.github.io/synapse/latest/postgres.html#set-up-database | Based on: https://matrix-org.github.io/synapse/latest/postgres.html#set-up-database | ||
Line 47: | Line 47: | ||
</pre> | </pre> | ||
=== Configure User & DB === | |||
<pre> | <pre> | ||
sudo -u postgres bash | sudo -u postgres bash | ||
Line 55: | Line 55: | ||
</pre> | </pre> | ||
=== Synapse Config === | === Postgres Synapse Config === | ||
Based on: https://matrix-org.github.io/synapse/latest/postgres.html#synapse-config | Based on: https://matrix-org.github.io/synapse/latest/postgres.html#synapse-config |
Revision as of 19:54, 19 February 2023
https://matrix.org/docs/guides/installing-synapse/
Implementation: Synapse
- https://github.com/matrix-org/synapse/
- https://matrix-org.github.io/synapse/latest/setup/installation.html
Installation
- Host: matrix.traxel.com
- IP: 44.237.36.191
- Provider: Lightsail
Host Basics
ssh -i path/to/key.pem admin@44.237.36.191 sudo apt update && sudo apt upgrade -y && sudo apt install -y emacs-nox net-tools git curl unzip wget
.ssh/config
Host matrix HostName 44.237.36.191 User admin IdentityFile /path/to/key.pem
Synapse Install
Based on: https://matrix-org.github.io/synapse/latest/setup/installation.html
sudo apt install -y lsb-release apt-transport-https wget 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 -y matrix-synapse-py3
Using Postgres
Based on: https://matrix-org.github.io/synapse/latest/postgres.html#set-up-database
sudo apt install -y postgresql libpq5
Results:
Success. You can now start the database server using: pg_ctlcluster 13 main start Ver Cluster Port Status Owner Data directory Log file 13 main 5432 down postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.log
Configure User & DB
sudo -u postgres bash createuser --pwprompt synapse_user # local access only password createdb --encoding=UTF8 --locale=C --template=template0 --owner=synapse_user synapse
Postgres Synapse Config
Based on: https://matrix-org.github.io/synapse/latest/postgres.html#synapse-config