From 40236560ac5e4ab04cc867796fd0114aa1d97078 Mon Sep 17 00:00:00 2001 From: andreas Date: Tue, 4 Feb 2025 19:26:55 +0100 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- docker-compose.yml | 5 +---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 169a7e7..667644d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,20 @@ ## Synapse -To init the synapse server, replace the `SYNAPSE_SERVER_NAME` value in the docker compose file to your domain name and run`docker compose up synapse` to generate the configuration files. Then remove the `command: generate` and all the environment variables from the synapse service in the compose file. +Set up your domain names. You'll need +- example.com (A record) +- matrix.example.com (A record or CNAME depending if they are on the same public ip or not) +- turn.example.com (CNAME to matrix.example.com) +- admin.matrix.example.com (CNAME to matrix.example.com) + +Open the following ports on your firewall and forward them to the Matrix Server IP. +- 80 (TCP) +- 443 (TCP/UDP) +- 8448 (TCP) +- 3478 (TCP/UDP) +- 5349 (TCP/UDP) +- 49152-65535 (UDP) + +To init the synapse server, replace the `SYNAPSE_SERVER_NAME` value in the docker compose file to your base domain name (this will become your server name which means you do NOT want to use the matrix.example.com, but instead use example.com) and run `docker compose up synapse` to generate the configuration files. Then remove the `command: generate` and all the environment variables from the synapse service in the compose file. Use `pwgen -s 64 1` to generate a password and set it to the `POSTGRES_PASSWORD` environment variable on the postgres container. diff --git a/docker-compose.yml b/docker-compose.yml index cd04138..fa6b705 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,10 +24,7 @@ services: container_name: coturn image: coturn/coturn:latest restart: unless-stopped - ports: - - "3478:3478/udp" - - "3478:3478/tcp" - - "5349:5349/tcp" + network_mode: "host" volumes: - ./coturn/turnserver.conf:/etc/coturn/turnserver.conf - caddy_data:/etc/ssl/caddy:ro -- 2.45.3