MATTERMOST_SELFSIGNED_CERT boolean, default: none - If true it will ignore if MATTERMOST_ENDPOINT has a self signed certificate.MATTERMOST_HUBOT_USERNAME string, default: none - If Enable Overriding of Usernames from Webhooks you can set a custom username to show in mattermost.MATTERMOST_ICON_URL string, default: none - If Enable Overriding of Icon from Webhooks is enabled you can set a url with the icon that you want for your hubot.MATTERMOST_CHANNEL string, default: none - Override the channel that you want to reply to.In addition, the following optional variables can be set: MATTERMOST_TOKEN string, default: none - Token from your outgoing webhook.MATTERMOST_INCOME_URL string, default: none - Your incoming webhook url.Example: if you create your outgoing webhook with you should set it with /hubot/incoming. MATTERMOST_ENDPOINT string, default: none - URI that you want hubot to listen, need to be the uri you specified when creating your outgoing webhook on mattermost.The adapter requires the following environment variables to be defined prior to run a Hubot instance: Yo hubot -adapter mattermost Environment variables This is due to Webhooks nature (both Incoming and Outgoing) where a HTTP POST will be send both ways for communication purposes (sending and receiving Mattermost/Hubot messages). It's important to remember that if you don't run Hubot alongside with Mattermost (locally) you must ensure that Mattermost instance can connect to the machine where Hubot is installed as it will be running on port 8080.Set the environment variables MATTERMOST_ENDPOINT, MATTERMOST_INCOME_URL and MATTERMOST_TOKEN based on your mattermost configuration. You can follow the instructions on Incoming Webhooks and Outgoing Webhooks to setup.
0 Comments
Leave a Reply. |