Difference between revisions of "Matrix"
From Jon's Wiki
(Created page with "The IRC of the future! == Installing for a domain == Create a 'matrix' subdomain A record for the domain, e.g. matrix.example.com then add a .well-known to https://example.c...") |
|||
Line 9: | Line 9: | ||
} | } | ||
+ | Create a user and empty database on PostgreSQL. | ||
+ | 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 | ||
+ | |||
+ | Edit /etc/matrix-synapse/homeserver.yaml for database details. | ||
See: https://matrix.org/docs/guides/installing-synapse | See: https://matrix.org/docs/guides/installing-synapse |
Revision as of 13:50, 27 November 2020
The IRC of the future!
Installing for a domain
Create a 'matrix' subdomain A record for the domain, e.g. matrix.example.com then add a .well-known to https://example.com/.well-known/matrix/server that returns MIME type application/json with the following:
{ "m.server": "matrix.example.com:443" }
Create a user and empty database on PostgreSQL.
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
Edit /etc/matrix-synapse/homeserver.yaml for database details.