- 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.