JG-mirror/Synapse
James Turland 6e00e0aa3f cleaning
2023-09-20 22:34:29 +01:00
..
mautrix-discord-bridge cleaning 2023-09-20 22:34:29 +01:00
docker-compose.yaml cleaning 2023-09-20 22:34:29 +01:00
homeserver.yaml cleaning 2023-09-20 22:34:29 +01:00
readme.md cleaning 2023-09-20 22:34:29 +01:00

  1. Create a config file

sudo docker run -it --rm
--mount type=volume,src=synapse-data,dst=/data
-e SYNAPSE_SERVER_NAME=matrix.jimsgarage.co.uk
-e SYNAPSE_REPORT_STATS=no
matrixdotorg/synapse:latest generate

  1. become root and access the file

sudo -i

  1. copy config file to your docker volume mount

  2. become non-root user

  3. change owner and permissions of configs so that we can edit them

su username

sudo chown ubuntu:ubuntu * (or whatever your user is)

  1. edit config

change database section

name: psycopg2 args: user: password: database: host: cp_min: 5 cp_max: 10

copy over the credentials from the docker compose

  1. create admin user

docker exec -it synapse register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml --help #remove help once ready

  1. add record to dns server (remember needs to be external as well!)

  2. check page to see it's up

  3. element and profit

  4. Add emails, recaptcha if you want to (recommended!)