Add README.md
This commit is contained in:
parent
1a8503700a
commit
86578a93ed
1 changed files with 21 additions and 0 deletions
21
README.md
Normal file
21
README.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
## 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.
|
||||
|
||||
Use `pwgen -s 64 1` to generate a password and set it to the `POSTGRES_PASSWORD` environment variable on the postgres container.
|
||||
|
||||
Then set go into the caddy directory and replace all domain names in the Caddyfile with your domain names.
|
||||
|
||||
Go into the cotorun directory and edit the turnserver.conf file.
|
||||
Replace the "realm" with your domain name.
|
||||
Replace the "cert" and "pkey" paths with your domain name for the turn server (caddy will generate the certs for you).
|
||||
Run `pwgen -s 64 1` again to get a new password and set it to the "static-auth-secret" field.
|
||||
|
||||
Now go into your synapse folder and edit the "homeserver.yaml" file.
|
||||
Remove the current database entry from the file and copy everything from the "homeserver.template" file into it.
|
||||
Set the database password to the one set in the "docker-compose.yml".
|
||||
Change the turn server uris to your turn domain name.
|
||||
Set the "turn_shared_secret" to the value of the "static-auth-secret" in the "turnserver.conf" file.
|
||||
|
||||
Now run `docker compose up -d` to start everything.
|
||||
To create your use, run `docker exec -it synapse register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml` and fill in all the values.
|
Loading…
Add table
Reference in a new issue