Difference between revisions of "Matrix"

From Organic Design wiki
m (Docker installation)
m (Docker installation)
Line 12: Line 12:
 
docker run -d --name synapse --mount type=volume,src=synapse-data,dst=/data -p 127.0.0.1:8008:8008 matrixdotorg/synapse:latest
 
docker run -d --name synapse --mount type=volume,src=synapse-data,dst=/data -p 127.0.0.1:8008:8008 matrixdotorg/synapse:latest
 
</source>
 
</source>
This is the default Matrix port for unsecured HTTP traffic, so that a reverse proxy needs to be set up from your web-server to handle the HTTPS side of things on exposing the default Matrix HTTPS port of '''8448''' to the public that connects to the the internal HTTP port on 8008.
+
This is the default Matrix port for unsecured HTTP traffic, so that a reverse proxy needs to be set up from your web-server to handle the HTTPS side of things on exposing the default Matrix HTTPS port of '''8448''' to the public that connects to the the internal HTTP port on 8008. See the official [https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.md reverse proxy notes].
  
 
== See also ==
 
== See also ==

Revision as of 20:14, 31 May 2020

Cone.png This article or section is a stub. Stubs are articles that have not yet received substantial attention from the authors. They are short or insufficient pieces of information and require additions to further increase the article's usefulness. The project values stubs as useful first steps toward complete articles.


Docker installation

First generate a default configuration file for your domain as follows, this will automatically pull the necessary containers as well.

docker run -it --rm --mount type=volume,src=synapse-data,dst=/data -e SYNAPSE_SERVER_NAME=organicdesign.co.nz -e SYNAPSE_REPORT_STATS=yes matrixdotorg/synapse:latest generate

This will create a new volume with your persistent configuration file in it in /var/lib/docker/volumes/synapse-data/_data/homeserver.yaml

Next, run the container on a local-only.

docker run -d --name synapse --mount type=volume,src=synapse-data,dst=/data -p 127.0.0.1:8008:8008 matrixdotorg/synapse:latest

This is the default Matrix port for unsecured HTTP traffic, so that a reverse proxy needs to be set up from your web-server to handle the HTTPS side of things on exposing the default Matrix HTTPS port of 8448 to the public that connects to the the internal HTTP port on 8008. See the official reverse proxy notes.

See also