Finish up the synapse part
This commit is contained in:
parent
08da885513
commit
861603fc09
1 changed files with 53 additions and 1 deletions
54
README.md
54
README.md
|
@ -175,7 +175,19 @@ You can override this variable if you want in any of the following:
|
|||
- `host_vars/<hostname>.yml` file for host specific overrides
|
||||
- `group_vars/<group>.yml` file for group specific variables
|
||||
|
||||
Now back to synapse, you should have a running container by now, that has a directory mounted with your configuration. Check your container works with the `docker ps` command, you should see something like
|
||||
Anyways back to synapse, create a playbook real quick just containing the synapse role
|
||||
|
||||
```yaml
|
||||
---
|
||||
- hosts: all
|
||||
roles:
|
||||
- synapse
|
||||
```
|
||||
|
||||
Then apply it like we have seen above (`ansible-playbook -vi inventory -l <dockerhost> synapse.yml`)
|
||||
|
||||
You should now have a running container by now, that has a directory mounted with your configuration. Check your container works with the `docker ps` command, you should see something like
|
||||
|
||||
```
|
||||
root synapse.lil.maurice.fr ~ # docker ps | grep synapse
|
||||
95aba77cc320 matrixdotorg/synapse:v1.74.0 "/start.py" 2 weeks ago Up 6 days (healthy) 8009/tcp, 0.0.0.0:8008->8008/tcp, 8448/tcp synapse
|
||||
|
@ -208,3 +220,43 @@ server {
|
|||
```
|
||||
|
||||
After a reload of nginx it should work properly.
|
||||
|
||||
### Configure openwrt
|
||||
|
||||
To make you able to talk to synapse, you need to configure openwrt to send all packets from ports 443 and 8448 (the default federation port) to your docker host on port 443. You can do that either with the UI or with the command line config
|
||||
|
||||
### Create an admin user
|
||||
|
||||
Note about the matrix addresses, a matrix address looks like this:
|
||||
|
||||
```
|
||||
@<localpart>:<homeserver>
|
||||
```
|
||||
|
||||
For example my address is @thomas:matrix.maurice.fr, the localpart is `thomas` and the homeserver is `matrix.maurice.fr`
|
||||
|
||||
In the following step you can create one or two users (for your team) to connect to the homeserver, pick the localpart carefully because that will be your username.
|
||||
|
||||
Get into your synapse host and run
|
||||
|
||||
```
|
||||
$ docker exec -it synapse register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml
|
||||
```
|
||||
|
||||
Fill in the localpart, the password and you should be good to go.
|
||||
|
||||
### Test it works
|
||||
|
||||
#### Check you can login
|
||||
|
||||
The Matrix people wrote a nice web based application for using the protocol, called [Riot](https://riot.im/app/). Go to Riot, log in by specifying the homeserver URL, username and password, and verify the login goes smoothly. If it does not, check the logs.
|
||||
|
||||
#### Test the federation works
|
||||
|
||||
The federation is required to work for you to be able to speak to users on other servers !
|
||||
|
||||
Enter your hostname into the [matrix federation tester](https://federationtester.matrix.org/) and check the federation works
|
||||
|
||||
#### Test by sending a message to another address
|
||||
|
||||
Fire a message to `@thomas:matrix.maurice.fr`, or better yet, send a message to one of your colleague on another homeserver.
|
||||
|
|
Loading…
Add table
Reference in a new issue