Matterbridge set up
This commit is contained in:
parent
31f494a7b6
commit
fa568e1ab5
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
id_ed25516
|
id_ed25516
|
||||||
|
.env
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
version: "2.1"
|
version: "2.1"
|
||||||
services:
|
services:
|
||||||
ssh-chat:
|
ssh-chat:
|
||||||
build: https://gitea.demb.uk/a31/ssh-chat.git
|
build: https://gitea.demb.uk/a31/ssh-chat.git#v1.11-rc5
|
||||||
image: ssh-chat
|
image: ssh-chat
|
||||||
container_name: ssh-chat
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 2022:2022
|
- 2022:2022
|
||||||
@ -12,10 +11,25 @@ services:
|
|||||||
- admins # Not so secret
|
- admins # Not so secret
|
||||||
- motd # Also not a secret
|
- motd # Also not a secret
|
||||||
command: "/usr/local/bin/ssh-chat --identity /run/secrets/chatkey --admin=/run/secrets/admins --log=/dev/stdout --motd=/run/secrets/motd"
|
command: "/usr/local/bin/ssh-chat --identity /run/secrets/chatkey --admin=/run/secrets/admins --log=/dev/stdout --motd=/run/secrets/motd"
|
||||||
|
|
||||||
|
matterbridge:
|
||||||
|
build: https://gitea.demb.uk/a31/matterbridge.git#v1.26.0
|
||||||
|
image: matterbridge
|
||||||
|
restart: unless-stopped
|
||||||
|
secrets:
|
||||||
|
- source: matterbridge-config
|
||||||
|
target: /etc/matterbridge/matterbridge.toml
|
||||||
|
environment:
|
||||||
|
- MATTERBRIDGE_DISCORD_MYDISCORD_TOKEN # Expected to be found in ./.env
|
||||||
|
depends_on:
|
||||||
|
- ssh-chat
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
chatkey:
|
chatkey:
|
||||||
file: ./id_ed25516
|
file: ./id_ed25516
|
||||||
admins:
|
admins:
|
||||||
file: ./admins
|
file: ./ssh-chat/admins
|
||||||
motd:
|
motd:
|
||||||
file: ./motd
|
file: ./ssh-chat/motd
|
||||||
|
matterbridge-config:
|
||||||
|
file: ./matterbridge/matterbridge.toml
|
||||||
|
24
matterbridge/matterbridge.toml
Normal file
24
matterbridge/matterbridge.toml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
[sshchat.mychat]
|
||||||
|
Server="ssh-chat:2022"
|
||||||
|
Nick="bridge0"
|
||||||
|
#RemoteNickFormat="{NICK}[{PROTOCOL}] "
|
||||||
|
RemoteNickFormat="[{NICK}] "
|
||||||
|
|
||||||
|
[discord.mydiscord]
|
||||||
|
Token=""
|
||||||
|
Server="DEMB corporation"
|
||||||
|
#RemoteNickFormat="{NICK}[{PROTOCOL}] "
|
||||||
|
RemoteNickFormat="{NICK} "
|
||||||
|
AutoWebHooks=true
|
||||||
|
UseLocalAvatar=["sshchat.mychat"]
|
||||||
|
|
||||||
|
[[gateway]]
|
||||||
|
name="gateway1"
|
||||||
|
enable=true
|
||||||
|
[[gateway.inout]]
|
||||||
|
account="sshchat.mychat"
|
||||||
|
channel="sshchat"
|
||||||
|
|
||||||
|
[[gateway.inout]]
|
||||||
|
account="discord.mydiscord"
|
||||||
|
channel="main"
|
Loading…
x
Reference in New Issue
Block a user