Go to file
2021-09-18 02:18:53 -05:00
cmd/svr adding prometheus endpoint 2021-09-18 02:11:22 -05:00
pkg sdasd 2021-09-18 02:18:53 -05:00
vendor Initial Commit of Matrix Handler 2021-02-04 01:25:16 -06:00
.gitignore Removing DS Store 2021-02-04 01:31:32 -06:00
config.json Initial Commit of Matrix Handler 2021-02-04 01:25:16 -06:00
Dockerfile build from alpine instead of scratch 2021-02-04 01:45:50 -06:00
go.mod Initial Commit of Matrix Handler 2021-02-04 01:25:16 -06:00
go.sum Initial Commit of Matrix Handler 2021-02-04 01:25:16 -06:00
README.md updating readme with docker info 2021-02-04 17:54:24 -06: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.

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.

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

docker build -t myrepo/matrix-handler:latest .

Docker Compose

You can use these settings for deploying via Docker Compose.

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