mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 19:35:39 +00:00
update DNS
This commit is contained in:
@@ -22,8 +22,9 @@ pip3 install --user matrix-client
|
|||||||
|
|
||||||
- Use [Traefik](https://traefik.io/) on the `web` docker network, eg. with
|
- Use [Traefik](https://traefik.io/) on the `web` docker network, eg. with
|
||||||
[proxyta.net](https://framagit.org/oxyta.net/proxyta.net)
|
[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
|
- Put the configuration into a `.env` file
|
||||||
`localhost`)
|
- Configure your DNS for `${CHATONS_SERVICE:-matrixwebhook}.${CHATONS_DOMAIN:-localhost}` **and**
|
||||||
|
`www.${CHATONS_SERVICE:-matrixwebhook}.${CHATONS_DOMAIN:-localhost}`
|
||||||
|
|
||||||
```
|
```
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
@@ -32,6 +33,6 @@ docker-compose up -d
|
|||||||
## Test / Usage
|
## 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
|
- web
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "true"
|
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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user