Ansible role for MatterBridge
Go to file
Siddarth Kumar 87b9f74d39
docker: use latest image
https://harbor.status.im/harbor/projects/12/repositories/matterbridge/artifacts-tab/artifacts/sha256:4c84f1ea93e964646463d20bd4ddcdbd82e4433a5f2d5cb261cae99bc4cd133e
2024-09-11 07:48:25 +05:30
defaults docker: use latest image 2024-09-11 07:48:25 +05:30
files config: add node JSON config for matterbridge 2024-03-13 13:16:47 +01:00
meta meta: use full names of Ansible roles 2024-03-11 14:34:22 +01:00
tasks docker: upgrade to Docker Compose V2 2024-08-21 16:20:18 +02:00
templates config: enable API by adding a dummy gateway 2024-03-21 19:54:45 +01:00
README.md docker: add ability to set env variables 2024-03-13 13:17:41 +01:00

README.md

Description

This role configures matterbridge chat bridging software.

Details

The software runs as a docker container from 42wim/matterbridge.

The configuration file template is in templates/matterbridge.yaml.j2.

Configuration

matterbridge_bridges:
  status:
    bridge:
      Nick: 'bridge.stateofus.eth'
      Token: '0x04abcXYZ...'
      RemoteNickFormat: '**{NICK}**@*{PROTOCOL}*: '

  discord:
    status-pub:
      Token: 'super-secret-token'
      Server: 'Status Community'
      RemoteNickFormat: '{NICK}@{PROTOCOL}'

matterbridge_gateways:
  - { status: "tech",   discord: [{ srv: "status-pub", ch: "tech" }] }
  - { status: "music",  discord: [{ srv: "status-pub", ch: "music" }] }
  - { status: "movies", discord: [{ srv: "status-pub", ch: "movies" }] }

You can also provide environment variables to the container:

matterbridge_cont_env:
  SUPER_SECRET_CREDENTIAL: 'hunter2'

API

To use the Matterbridge API it must be enabled with matterbridge_api_enabled: true. Currently only a single API (called api) is supported.

It can be used in a gateway like this:

- { discord: [{ srv: "vac", ch: "waku" }], api: ["api"]}

The API is running on port 4242 by default (matterbridge_api_port). More info about the API can be found on the Matterbridge wiki.

Known Issues

If your bridge is posting in a Discord channel but doesn't receive mesages from it you might have to adjust the channel-level permissions to give the bot message read rights.

Links