Extra bit of Draupnir documentation.

This commit is contained in:
Hans van Zijst 2024-11-29 02:45:23 +01:00 committed by Valentin Gagarin
parent 321e41746c
commit f2da1e8ed1

View file

@ -54,10 +54,32 @@ Copy it to `production.yaml` and change what you must.
| Option | Value | Meaning |
| :---- | :---- | :---- |
| `homeserverUrl` | `http://localhost:8008` | Where to communicate with Synapse |
| ` rawHomeserverUrl` | `https://vm02199.example.com` | Same as `server_name` |
| `rawHomeserverUrl` | `https://vm02199.example.com` | Same as `server_name` |
| `accessToken` | access token | Copy from login session |
| `password` | password | Password for the account |
| `dataPath` | `/opt/Draupnir/datastorage` | Storage |
| `managementRoom` | room ID | Room where moderators command Draupnir |
This should give a working bot.
There are a few other bits that you probably want to change. Draupnir can
direct reports to the management room, this is what you should change to
activate that:
```
web:
enabled: true
port: 8082
address: ::1
abuseReporting:
enabled: true
pollReports: true
displayReports: true
```
For this to work (for reports to reach Draupnir) you'll need to configure
nginx...
```