summaryrefslogtreecommitdiffstats
path: root/matterbridge.toml.sample
diff options
context:
space:
mode:
Diffstat (limited to 'matterbridge.toml.sample')
-rw-r--r--matterbridge.toml.sample29
1 files changed, 29 insertions, 0 deletions
diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample
index e251d0e0..0fa95d0b 100644
--- a/matterbridge.toml.sample
+++ b/matterbridge.toml.sample
@@ -486,6 +486,28 @@ RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
#OPTIONAL (default false)
ShowJoinPart=false
+###################################################################
+#API
+###################################################################
+[api]
+#You can configure multiple API hooks
+#In this example we use [api.local]
+#REQUIRED
+
+[api.local]
+#Address to listen on for API
+#REQUIRED
+BindAddress="127.0.0.1:4242"
+
+#Amount of messages to keep in memory
+Buffer=1000
+
+#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
@@ -572,6 +594,13 @@ enable=true
#OPTIONAL - your irc channel key
key="yourkey"
+ #API example
+ #[[gateway.inout]]
+ #account="api.local"
+ #channel="api"
+ #To send data to the api:
+ #curl -XPOST -H 'Content-Type: application/json' -d '{"text":"test","username":"randomuser"}' http://localhost:4242/api/message
+
#If you want to do a 1:1 mapping between protocols where the channelnames are the same
#e.g. slack and mattermost you can use the samechannelgateway configuration
#the example configuration below send messages from channel testing on mattermost to