From 7b9a7e9ef02b9fc73472cb1012548fa3261eb486 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 13 Oct 2023 17:26:13 +0800 Subject: [PATCH] add matterbridge --- README.md | 1 + matterbridge/README.md | 8 ++++ matterbridge/data/matterbridge.toml | 61 +++++++++++++++++++++++++++++ matterbridge/docker-compose.yml | 8 ++++ 4 files changed, 78 insertions(+) create mode 100644 matterbridge/README.md create mode 100644 matterbridge/data/matterbridge.toml create mode 100644 matterbridge/docker-compose.yml diff --git a/README.md b/README.md index 0801bdd..3f516b6 100644 --- a/README.md +++ b/README.md @@ -388,6 +388,7 @@ A collection of delicious docker recipes. - [x] martialblog/limesurvey - [x] mailhog/mailhog - [x] linuxserver/mastodon +- [x] 42wim/matterbridge :octocat: - [x] matrixconduit/matrix-conduit - [x] getmeili/meilisearch :mag: - [x] mitmproxy/mitmproxy diff --git a/matterbridge/README.md b/matterbridge/README.md new file mode 100644 index 0000000..be501c3 --- /dev/null +++ b/matterbridge/README.md @@ -0,0 +1,8 @@ +matterbridge +============ + + +[matterbridge][1] is a simple chat bridge. +Letting people be where they want to be. + +[1]: https://github.com/42wim/matterbridge diff --git a/matterbridge/data/matterbridge.toml b/matterbridge/data/matterbridge.toml new file mode 100644 index 0000000..35a9e34 --- /dev/null +++ b/matterbridge/data/matterbridge.toml @@ -0,0 +1,61 @@ +#WARNING: as this file contains credentials, be sure to set correct file permissions + +[irc] + [irc.foo] + Server="irc.myfooserver.com:6667" + Nick="matterbot" + +# Can also connect to multiple different servers of the same protocol: +[irc] + [irc.bar] + Server="irc.mybarserver.com:6667" + Nick="matterbot" + +[telegram] + [telegram.mytelegram] + Token="123456789:FillInYourTokenHereThatIsImportant" + +[mattermost] + [mattermost.work] + #do not prefix it wit http:// or https:// + Server="yourmattermostserver.domain" + Team="yourteam" + Login="yourlogin" + Password="yourpass" + PrefixMessagesWithNick=true + +# Bridge 1: Copy all messages from all rooms to all rooms. +# This shows how you can have multiple rooms in a single bridge. +[[gateway]] +name="cats-are-cool" +enable=true + [[gateway.inout]] + account="irc.foo" + channel="#cats-are-cool" + [[gateway.inout]] + account="irc.bar" + channel="#cats-are-cool" + [[gateway.inout]] + account="telegram.mytelegram" + channel="-1234567890123" + [[gateway.inout]] + account="mattermost.work" + channel="cats-are-cool" + +# Bridge 2: Copy some messages from some rooms to some rooms. +# This shows how you can have multiple bridges. +[[gateway]] +name="dog-announcements" +enable=true + [[gateway.in]] + account="irc.foo" + channel="#dog-announcements" + [[gateway.in]] + account="irc.bar" + channel="#dog-announcements" + [[gateway.out]] + account="telegram.mytelegram" + channel="-9876543219876" + [[gateway.out]] + account="mattermost.work" + channel="dog-announcements" diff --git a/matterbridge/docker-compose.yml b/matterbridge/docker-compose.yml new file mode 100644 index 0000000..75cc3c2 --- /dev/null +++ b/matterbridge/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3.8' +services: + matterbridge: + image: 42wim/matterbridge:stable + #command: -debug + volumes: + - ./data:/etc/matterbridge + restart: unless-stopped