@@ -199,51 +199,48 @@ ShowJoinPart=false
199199#REQUIRED
200200
201201[mattermost.work]
202- #### Settings for webhook matterbridge.
203- #### These settings will not be used when useAPI is enabled
204-
205- #Url is your incoming webhook url as specified in mattermost.
206- #See account settings - integrations - incoming webhooks on mattermost.
207- #REQUIRED (unless useAPI=true)
208- URL="https://yourdomain/hooks/yourhookkey"
209-
210- #Address to listen on for outgoing webhook requests from mattermost.
211- #See account settings - integrations - outgoing webhooks on mattermost.
212- #This setting will not be used when using -plus switch which doesn't use
213- #webhooks
214- #REQUIRED (unless useAPI=true)
215- BindAddress="0.0.0.0:9999"
216-
217- #Icon that will be showed in mattermost.
218- #OPTIONAL
219- IconURL="http://youricon.png"
220-
221- #### Settings for matterbridge -plus
222- #### Thse settings will only be used when using the -plus switch.
223-
224- #### Settings for using matterbridge API
225- #OPTIONAL
226- useAPI=false
227-
228202#The mattermost hostname. (do not prefix it with http or https)
229- #REQUIRED (when useAPI=true )
203+ #REQUIRED (when not using webhooks )
230204Server="yourmattermostserver.domain"
231205
232206#Your team on mattermost.
233- #REQUIRED (when useAPI=true )
207+ #REQUIRED (when not using webhooks )
234208Team="yourteam"
235209
236210#login/pass of your bot.
237211#Use a dedicated user for this and not your own!
238- #REQUIRED (when useAPI=true )
212+ #REQUIRED (when not using webhooks )
239213Login="yourlogin"
240214Password="yourpass"
241215
242216#Enable this to make a http connection (instead of https) to your mattermost.
243217#OPTIONAL (default false)
244218NoTLS=false
245219
246- #### Shared settings for matterbridge and -plus
220+ #### Settings for webhook matterbridge.
221+ #NOT RECOMMENDED TO USE INCOMING/OUTGOING WEBHOOK. USE DEDICATED BOT USER WHEN POSSIBLE!
222+ #You don't need to configure this, if you have configured the settings
223+ #above.
224+
225+ #Url is your incoming webhook url as specified in mattermost.
226+ #See account settings - integrations - incoming webhooks on mattermost.
227+ #If specified, messages will be sent to mattermost using this URL
228+ #OPTIONAL
229+ WebhookURL="https://yourdomain/hooks/yourhookkey"
230+
231+ #Address to listen on for outgoing webhook requests from mattermost.
232+ #See account settings - integrations - outgoing webhooks on mattermost.
233+ #If specified, messages will be received from mattermost on this ip:port
234+ #(this will only work if WebhookURL above is also configured)
235+ #OPTIONAL
236+ WebhookBindAddress="0.0.0.0:9999"
237+
238+ #Icon that will be showed in mattermost.
239+ #This only works when WebhookURL is configured
240+ #OPTIONAL
241+ IconURL="http://youricon.png"
242+
243+ #### End settings for webhook matterbridge.
247244
248245#Enable to not verify the certificate on your mattermost server.
249246#e.g. when using selfsigned certificates
@@ -345,37 +342,29 @@ ShowJoinPart=false
345342#In this example we use [slack.hobby]
346343#REQUIRED
347344[slack.hobby]
348- #### Settings for webhook matterbridge.
349- #### These settings will not be used when useAPI is enabled
345+ #Token to connect with the Slack API
346+ #You'll have to use a test/api-token using a dedicated user and not a bot token.
347+ #See https://github.com/42wim/matterbridge/issues/75 for more info.
348+ #Use https://api.slack.com/custom-integrations/legacy-tokens
349+ #REQUIRED (when not using webhooks)
350+ Token="yourslacktoken"
350351
352+ #### Settings for webhook matterbridge.
351353#NOT RECOMMENDED TO USE INCOMING/OUTGOING WEBHOOK. USE SLACK API
352354#AND DEDICATED BOT USER WHEN POSSIBLE!
353355#Url is your incoming webhook url as specified in slack
354356#See account settings - integrations - incoming webhooks on slack
355- #REQUIRED (unless useAPI=true)
356- URL ="https://hooks.slack.com/services/yourhook"
357+ #OPTIONAL
358+ WebhookURL ="https://hooks.slack.com/services/yourhook"
357359
358360#NOT RECOMMENDED TO USE INCOMING/OUTGOING WEBHOOK. USE SLACK API
359361#AND DEDICATED BOT USER WHEN POSSIBLE!
360362#Address to listen on for outgoing webhook requests from slack
361363#See account settings - integrations - outgoing webhooks on slack
362364#This setting will not be used when useAPI is eanbled
363365#webhooks
364- #REQUIRED (unless useAPI=true)
365- BindAddress="0.0.0.0:9999"
366-
367- #### Settings for using slack API (RECOMMENDED)
368366#OPTIONAL
369- useAPI=false
370-
371- #Token to connect with the Slack API
372- #You'll have to use a test/api-token using a dedicated user and not a bot token.
373- #See https://github.com/42wim/matterbridge/issues/75 for more info.
374- #Use https://api.slack.com/custom-integrations/legacy-tokens
375- #REQUIRED (when useAPI=true)
376- Token="yourslacktoken"
377-
378- #### Shared settings for webhooks and API
367+ WebhookBindAddress="0.0.0.0:9999"
379368
380369#Icon that will be showed in slack
381370#The string "{NICK}" (case sensitive) will be replaced by the actual nick / username.
@@ -559,12 +548,12 @@ ShowJoinPart=false
559548#Read #https://rocket.chat/docs/administrator-guides/integrations/#how-to-create-a-new-incoming-webhook
560549#See administration - integrations - new integration - incoming webhook
561550#REQUIRED
562- URL ="https://yourdomain/hooks/yourhookkey"
551+ WebhookURL ="https://yourdomain/hooks/yourhookkey"
563552
564553#Address to listen on for outgoing webhook requests from rocketchat.
565554#See administration - integrations - new integration - outgoing webhook
566555#REQUIRED
567- BindAddress ="0.0.0.0:9999"
556+ WebhookBindAddress ="0.0.0.0:9999"
568557
569558#Your nick/username as specified in your incoming webhook "Post as" setting
570559#REQUIRED
0 commit comments