From ad3cb0386b72a7f9d46b4a2068ff947570fa67ff Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 6 Jun 2017 00:05:32 +0200 Subject: Add token authentication (api) --- matterbridge.toml.sample | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'matterbridge.toml.sample') 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 ################################################################### -- cgit v1.2.3