131 lines
4.5 KiB
TOML
131 lines
4.5 KiB
TOML
#This is configuration for matterbridge.
|
|
#WARNING: as this file contains credentials, be sure to set correct file permissions
|
|
###################################################################
|
|
# NCTalk (Nextcloud Talk)
|
|
###################################################################
|
|
|
|
[nctalk.bridge]
|
|
|
|
# Url of your Nextcloud server
|
|
Server = "https://nextcloud.eom.dev"
|
|
|
|
# Enable to not verify the certificate on your Nextcloud server.
|
|
# e.g. when using selfsigned certificates
|
|
# OPTIONAL (default false)
|
|
SkipTLSVerify=false
|
|
|
|
# Username of the bot
|
|
Login = "minecraft"
|
|
|
|
# Password of the bot
|
|
Password = "{{ minecraft_admin_password }}"
|
|
|
|
# Suffix for Guest Users
|
|
GuestSuffix = " (Guest)"
|
|
|
|
# Separate display name (Note: needs to be configured from Nextcloud Talk to work)
|
|
SeparateDisplayName=false
|
|
|
|
###################################################################
|
|
#API
|
|
###################################################################
|
|
[api]
|
|
#You can configure multiple API hooks
|
|
#In this example we use [api.minecraft]
|
|
#REQUIRED
|
|
|
|
[api.minecraft]
|
|
#Address to listen on for API
|
|
#REQUIRED
|
|
BindAddress="0.0.0.0:4242"
|
|
|
|
#Amount of messages to keep in memory
|
|
Buffer=1000
|
|
|
|
#Bearer token used for authentication
|
|
#curl -H "Authorization: Bearer token" http://localhost:4242/api/messages
|
|
#OPTIONAL (no authorization if token is empty)
|
|
Token=""
|
|
|
|
#extra label that can be used in the RemoteNickFormat
|
|
#optional (default empty)
|
|
Label="minecraft"
|
|
|
|
#RemoteNickFormat defines how remote users appear on this bridge
|
|
#The string "{NICK}" (case sensitive) will be replaced by the actual nick / username.
|
|
#The string "{BRIDGE}" (case sensitive) will be replaced by the sending bridge
|
|
#The string "{PROTOCOL}" (case sensitive) will be replaced by the protocol used by the bridge
|
|
#OPTIONAL (default empty)
|
|
RemoteNickFormat="{NICK}"
|
|
|
|
###################################################################
|
|
#General configuration
|
|
###################################################################
|
|
# Settings here are defaults that each protocol can override
|
|
[general]
|
|
#RemoteNickFormat defines how remote users appear on this bridge
|
|
#The string "{NICK}" (case sensitive) will be replaced by the actual nick / username.
|
|
#The string "{BRIDGE}" (case sensitive) will be replaced by the sending bridge
|
|
#The string "{PROTOCOL}" (case sensitive) will be replaced by the protocol used by the bridge
|
|
#OPTIONAL (default empty)
|
|
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
|
|
|
|
#StripNick only allows alphanumerical nicks. See https://github.com/42wim/matterbridge/issues/285
|
|
#It will strip other characters from the nick
|
|
#OPTIONAL (default false)
|
|
StripNick=false
|
|
|
|
|
|
#MediaServerUpload and MediaServerDownload are used for uploading images/files/video to
|
|
#a remote "mediaserver" (a webserver like caddy for example).
|
|
#When configured images/files uploaded on bridges like mattermost,slack, telegram will be downloaded
|
|
#and uploaded again to MediaServerUpload URL
|
|
#The MediaServerDownload will be used so that bridges without native uploading support:
|
|
#gitter, irc and xmpp will be shown links to the files on MediaServerDownload
|
|
#
|
|
#More information https://github.com/42wim/matterbridge/wiki/Mediaserver-setup-%5Badvanced%5D
|
|
#OPTIONAL (default empty)
|
|
#MediaServerUpload="https://user:pass@yourserver.com/upload"
|
|
#OPTIONAL (default empty)
|
|
#MediaServerDownload="https://youserver.com/download"
|
|
|
|
#MediaDownloadSize is the maximum size of attachments, videos, images
|
|
#matterbridge will download and upload this file to bridges that also support uploading files.
|
|
#eg downloading from slack to upload it to mattermost
|
|
#
|
|
#It will only download from bridges that don't have public links available, which are for the moment
|
|
#slack, telegram, matrix and mattermost
|
|
#
|
|
#Optional (default 1000000 (1 megabyte))
|
|
MediaDownloadSize=1000000
|
|
|
|
###################################################################
|
|
#Gateway configuration
|
|
###################################################################
|
|
|
|
#You can specify multiple gateways using [[gateway]]
|
|
#Each gateway has a [[gateway.in]] and a [[gateway.out]]
|
|
#[[gateway.in]] specifies the account and channels we will receive messages from.
|
|
#[[gateway.out]] specifies the account and channels we will send the messages
|
|
#from [[gateway.in]] to.
|
|
#
|
|
#Most of the time [[gateway.in]] and [[gateway.out]] are the same if you
|
|
#want bidirectional bridging. You can then use [[gateway.inout]]
|
|
#
|
|
|
|
[[gateway]]
|
|
#REQUIRED and UNIQUE
|
|
name="minecraft"
|
|
#Enable enables this gateway
|
|
##OPTIONAL (default false)
|
|
enable=true
|
|
|
|
# API
|
|
[[gateway.inout]]
|
|
account="api.minecraft"
|
|
channel="api"
|
|
|
|
[[gateway.inout]]
|
|
account="nctalk.bridge"
|
|
token="wgo6vovu"
|