update docs

This commit is contained in:
Guilhem Saurel 2019-02-17 12:29:50 +01:00
parent bffc7002c1
commit 3f4bd2b067

View file

@ -9,7 +9,6 @@ Set the following environment variables:
- `MATRIX_URL`: the url of the matrix homeserver
- `MATRIX_ID`: the user id of the bot on this server
- `MATRIX_PW`: the password for this user
- `ROOM_ID`: the room on which send the notifications
## Dev
@ -20,14 +19,16 @@ pip3 install --user matrix-client
## Prod
With a proxyta.net:
(don't forget about `CHATONS_DOMAIN`, otherwise you will stay on `localhost`)
- Use [Traefik](https://traefik.io/) on the `web` docker network, eg. with
[proxyta.net](https://framagit.org/oxyta.net/proxyta.net)
- Put the configuration into a `.env` file (don't forget about `CHATONS_DOMAIN`, otherwise by default you will stay on
`localhost`)
```
docker-compose up -d
```
## Test
## Test / Usage
```
curl -d '{"text":"new contrib from toto: http://radio.localhost/map/#44", "key": "secret"}' mwh.localhost