matrix-handler/README.md

41 lines
1.0 KiB
Markdown
Raw Normal View History

2021-02-04 07:24:55 +00:00
# Matrix Handler
### Usage
> POST /generic/{matrixRoom}/{matrixUser}/{matrixPassword}
This is a generic handler that will accept any form of data and pass it through to Matrix using the appropriate JSON format.
2021-02-04 08:29:28 +00:00
### Usage
> POST /slack/{matrixRoom}/{matrixUser}/{matrixPassword}
This is a Slack-friendly handler that will accept any form of Slack data and pass through just the text to Matrix using the appropriate JSON format.
2021-02-04 23:54:24 +00:00
### Docker Usage
#### Prebuilt Image
There is a prebuilt image already on `registry.linuxrocker.com/matrix-handler:latest`
#### Building Your Own
You can build the image by running
```bash
docker build -t myrepo/matrix-handler:latest .
```
#### Docker Compose
You can use these settings for deploying via Docker Compose.
```yaml
version: '3.5'
services:
matrix-handler:
image: registry.linuxrocker.com/matrix-handler:latest
restart: always
container_name: matrix-handler
ports:
- 3000:3000
volumes:
- ./config.json:/config/config.json:ro
```