summaryrefslogtreecommitdiffstats
path: root/matterbridge.toml.sample
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-06-06 00:05:32 +0200
committerWim <wim@42.be>2017-06-06 00:05:32 +0200
commitad3cb0386b72a7f9d46b4a2068ff947570fa67ff (patch)
tree6bd08153f66d1e46765177842e36e58edac7573a /matterbridge.toml.sample
parent3a183cb218c6812964a70d2e75884ad7071d9c0c (diff)
downloadmatterbridge-msglm-ad3cb0386b72a7f9d46b4a2068ff947570fa67ff.tar.gz
matterbridge-msglm-ad3cb0386b72a7f9d46b4a2068ff947570fa67ff.tar.bz2
matterbridge-msglm-ad3cb0386b72a7f9d46b4a2068ff947570fa67ff.zip
Add token authentication (api)
Diffstat (limited to 'matterbridge.toml.sample')
-rw-r--r--matterbridge.toml.sample7
1 files changed, 7 insertions, 0 deletions
diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample
index 6fa9f1f4..f53863a9 100644
--- a/matterbridge.toml.sample
+++ b/matterbridge.toml.sample
@@ -612,6 +612,11 @@ BindAddress="127.0.0.1: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="mytoken"
+
#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
@@ -619,6 +624,8 @@ Buffer=1000
#OPTIONAL (default empty)
RemoteNickFormat="{NICK}"
+
+
###################################################################
#General configuration
###################################################################