matrix: fixed minor mistakes

master
tiyn 2 years ago
parent af13843ba6
commit 348b00afeb

@ -86,15 +86,24 @@ docker run -it --rm \
matrixdotorg/synapse:latest generate matrixdotorg/synapse:latest generate
``` ```
Navigate to the volume and edit the configuration files. If you want to enable/disable registration go to the `homeserver.yaml`
For the `homeserver.yaml` locate the following line and change them and add the following line either set to `true` or `false`:
accordingly: `enable_registration: true`.
```yaml Additionally create the following lines:
public_baseurl: https://synapse.example.com/
```
Additionally uncomment the lines following `ip_range_blacklist:` ```
federation_ip_range_blacklist:
- '127.0.0.0/8'
- '10.0.0.0/8'
- '172.16.0.0/12'
- '192.168.0.0/16'
- '100.64.0.0/10'
- '169.254.0.0/16'
- '::1/128'
- 'fe80::/64'
- 'fc00::/7'
```
If you start the docker container with `docker-compose up` and navigate to If you start the docker container with `docker-compose up` and navigate to
`https://synapse.example.com` you should be redirected to `https://synapse.example.com` you should be redirected to
@ -105,9 +114,6 @@ If this is not the case please check your configuration.
Create an admin user in the docker containers shell with the command: Create an admin user in the docker containers shell with the command:
`register_new_matrix_user -c /data/homeserver.yaml https://synapse.example.com` `register_new_matrix_user -c /data/homeserver.yaml https://synapse.example.com`
If you want to enable registration go to the `homeserver.yaml`
and locate the line starting with `enable_registration:` and set it to `true`.
Finally shut down the container using `docker-compose down` to be able to keep Finally shut down the container using `docker-compose down` to be able to keep
following the guide (this applies to any following step). following the guide (this applies to any following step).

Loading…
Cancel
Save