This howto describes how to setup the Mattermost provider included in discourse-chat-integration.
Enable
The discourse-chat-integration plugin is bundled with Discourse. No separate installation is required. To enable it, check that the chat_integration_enabled site setting is turned on.
Notifications
Set up Mattermost
Your Mattermost server needs to be accessible from your Discourse server in order to connect them. It is recommended that you use HTTPS, but HTTP should also work.
In your Mattermost System Console, under Custom Integrations, check that these settings are enabled:
Enable Incoming Webhooks
Enable integrations to override usernames
Enable integrations to override profile picture icons
Enable Custom Slash Commands (if you want slash commands)
Login to your team, click your name in the top left, then click Integrations
Choose Incoming Webhooks, Add incoming Webhook
Enter a “Display Name”, “Description”, and choose a random channel from the list (it doesn’t matter which one, Discourse will override this)
Paste the URL you copied into the chat_integration_mattermost_webhook_url site setting
Enable chat_integration_mattermost_enabled
Setup some “Rules” for your channels, according to the discourse-chat-integration instructions. Channel identifiers look like #town-square or @davidtaylor.
Click Test on one of the channels to check everything’s working. You should receive a message like this:
Hello! I am getting a broken image link to the right of the mattermost post. I tried to see the image url and it looks like an actual post instead of an image:
Make sure you copied the webhook URL correctly, and that there are no spaces before/after the URL. Is your mattermost server accessible to the internet? Or just an internal network?
3개의 좋아요
csmu
(Keith John Hutchison - Ceiteach Seán Mac Úistin)
12
What’s the best way to handle multiple teams / multiple mattermost servers?
하지만 알림 규칙을 설정하는 가장 쉬운 방법은 Discourse 관리자 패널을 사용하는 것입니다.在那里 모든 옵션이 UI에 명확하게 표시되어 있어, 정확한 ‘슬래시 명령어’ 구문을 알아내려 할 필요가 없습니다. 자세한 내용은 플러그인 문서의 ‘규칙 설정’ 섹션을 참고해 주세요.
(드롭다운의 '카테고리 없음’은 실제로 의미하는 바를 잘 설명하지 못하는 잘못된 표현입니다. 이 부분은 수정하겠습니다)
도움말 텍스트의 공간 절약 차원에서 하위 카테고리가 생략된 것 같습니다. 하지만 ‘슬러그’(URL에 표시되는 하위 카테고리 이름)를 사용하면 여전히 카테고리에 구독할 수 있습니다. 예를 들어, Meta의 #howto:admins의 경우 /discourse watch admins를 사용하게 됩니다.