Compare commits

...

2 commits

Author SHA1 Message Date
10b084252e Merge pull request 'Update README.md' (#1) from andreas-patch-1 into main
Reviewed-on: #1
2025-02-04 19:27:15 +01:00
40236560ac Update README.md 2025-02-04 19:26:55 +01:00

View file

@ -1,6 +1,20 @@
## Synapse ## 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. Use `pwgen -s 64 1` to generate a password and set it to the `POSTGRES_PASSWORD` environment variable on the postgres container.