update docs
This commit is contained in:
parent
bffc7002c1
commit
3f4bd2b067
1 changed files with 5 additions and 4 deletions
|
@ -9,7 +9,6 @@ Set the following environment variables:
|
||||||
- `MATRIX_URL`: the url of the matrix homeserver
|
- `MATRIX_URL`: the url of the matrix homeserver
|
||||||
- `MATRIX_ID`: the user id of the bot on this server
|
- `MATRIX_ID`: the user id of the bot on this server
|
||||||
- `MATRIX_PW`: the password for this user
|
- `MATRIX_PW`: the password for this user
|
||||||
- `ROOM_ID`: the room on which send the notifications
|
|
||||||
|
|
||||||
## Dev
|
## Dev
|
||||||
|
|
||||||
|
@ -20,14 +19,16 @@ pip3 install --user matrix-client
|
||||||
|
|
||||||
## Prod
|
## Prod
|
||||||
|
|
||||||
With a proxyta.net:
|
- Use [Traefik](https://traefik.io/) on the `web` docker network, eg. with
|
||||||
(don't forget about `CHATONS_DOMAIN`, otherwise you will stay on `localhost`)
|
[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
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
## Test
|
## Test / Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -d '{"text":"new contrib from toto: http://radio.localhost/map/#44", "key": "secret"}' mwh.localhost
|
curl -d '{"text":"new contrib from toto: http://radio.localhost/map/#44", "key": "secret"}' mwh.localhost
|
||||||
|
|
Loading…
Reference in a new issue