diff options
author | Wim <wim@42.be> | 2017-02-18 23:10:22 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-02-18 23:13:46 +0100 |
commit | 73f01ad8d813505c6309fe568d0abc597cff8790 (patch) | |
tree | 426bc1779c1abcf2afe56e2dc2a2f43d70aae278 /matterbridge.toml.sample | |
parent | 930b639cc9cd2d2873302f30303378c0e53816a8 (diff) | |
download | matterbridge-msglm-73f01ad8d813505c6309fe568d0abc597cff8790.tar.gz matterbridge-msglm-73f01ad8d813505c6309fe568d0abc597cff8790.tar.bz2 matterbridge-msglm-73f01ad8d813505c6309fe568d0abc597cff8790.zip |
Add REST API support
Diffstat (limited to 'matterbridge.toml.sample')
-rw-r--r-- | matterbridge.toml.sample | 29 |
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 |