update DNS
This commit is contained in:
parent
2a3c0e4a4f
commit
0f85cc1c9b
2 changed files with 6 additions and 5 deletions
|
@ -22,8 +22,9 @@ pip3 install --user matrix-client
|
|||
|
||||
- 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`)
|
||||
- Put the configuration into a `.env` file
|
||||
- Configure your DNS for `${CHATONS_SERVICE:-matrixwebhook}.${CHATONS_DOMAIN:-localhost}` **and**
|
||||
`www.${CHATONS_SERVICE:-matrixwebhook}.${CHATONS_DOMAIN:-localhost}`
|
||||
|
||||
```
|
||||
docker-compose up -d
|
||||
|
@ -32,6 +33,6 @@ docker-compose up -d
|
|||
## 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"}' matrixwebhook.localhost
|
||||
```
|
||||
(or mwh.localhost:4785 without docker)
|
||||
(or matrixwebhook.localhost:4785 without docker)
|
||||
|
|
|
@ -14,4 +14,4 @@ services:
|
|||
- web
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.frontend.rule: "Host: ${CHATONS_SERVICE:-mwh}.${CHATONS_DOMAIN:-localhost}, www.${CHATONS_SERVICE:-mwh}.${CHATONS_DOMAIN:-localhost}"
|
||||
traefik.frontend.rule: "Host: ${CHATONS_SERVICE:-matrixwebhook}.${CHATONS_DOMAIN:-localhost}, www.${CHATONS_SERVICE:-matrixwebhook}.${CHATONS_DOMAIN:-localhost}"
|
||||
|
|
Loading…
Reference in a new issue