![]() ![]() Please check the matterbridge Wiki on how to configure matterbridge to connect to your local chat or ChatOps platforms and Mattermost at the same time. You now have a very simple demo setup where matterbridge is mirroring all Messages from one channel to another channel. More information on running the app is displayed in a “readme” file after the app has been installed. Since Matterbridge does not auto detect changes to its configuration you need to restart the app by issuing systemctl restart rvice. ![]() To modify the Matterbridge configuration after the initial installation you need to modify the file /etc/matterbridge/matterbridge.toml. When running Mattermost and matterbridge on a Univention Corporate Server (UCS) setup is a lot easier, as installing the app will already take care of creating the matterbridge user and an example matterbridge.toml for you. This can be achieved with the following command: docker run -d -restart=unless-stopped -v /etc/matterbridge/matterbridge.toml:/matterbridge.toml 42wim/matterbridge Running Matterbridge on Univention Once you are happy with your configuration you can stop the foreground Docker command and run it instead in the background. docker run -ti -v /etc/matterbridge/matterbridge.toml:/matterbridge.toml 42wim/matterbridge The command below will start matterbridge in the foreground and as long as matterbridge is running messages will be mirrored between the configured channels. With a user and the configuration in place, we can start matterbridge for the first time. # should be set to false when using a trusted ssl cert (system ca may not be trusted inside of the docker container) #Use a dedicated user for this and not your own! #the team name as can be seen in the mattermost webinterface URL I recommend storing the configuration for example in /etc/matterbridge. Make sure to adapt the values such as Server, Team, Password and channel to your local environment. The example configuration below is hopefully pretty self-explanatory. With a user and channels now available we can create a configuration file for matterbridge. Mattermost-platform channel create -team Univention -name matterbridge2 -display_name "Matterbridge Demo Channel (mirror)" Mattermost-platform channel create -team Univention -name matterbridge1 -display_name "Matterbridge Demo Channel" Mattermost-platform team add Univention matterbridge Subsequently, the user will be added to a team with the name “Univention” and two new channels are created within the team with the id “matterbridge1” and “matterbridge2”: mattermost-platform user create -password="password-of-matterbridge-user" -username=matterbridge When executing the commands below, make sure to choose a pre-created random password for the “matterbridge” and note it down for later. The following commands will create a service account called “matterbridge”. A dedicated service account in Mattermost needs to be created first. As an alternative to running the above binary, matterbridge can also be run through Docker.īefore matterbridge can run we need a basic configuration. ![]() The latest version of matterbridge can be downloaded from the Github releases page of matterbridge. ![]() Note: if you want to run matterbridge on Univention you can skip this part and jump directly toward “Running matterbridge on Univention” This blog will explain how to install matterbridge and will configure matterbridge to mirror a specific channel within Mattermost. As the name already implies, it acts as a bridge between different providers (namely IRC, XMPP, Gitter, Mattermost, Slack, Discord, Telegram, Rocket.Chat, Hipchat (via xmpp), Matrix, Steam, ssh-chat and Zulip) and will relay messages and files posted in e.g. Matterbridge was designed to help out in exactly these scenarios. For those using the Univention Corporate Server (UCS) we maintain an app that sets up Mattermost and configures it for you automatically.īut what if you already have a chat platform in your company and cannot migrate all users at the same time? Or you want to provide a Mattermost chat for all your customers, but only want to buy a Mattermost subscription for your internal users? Or you have a subset of your users relying on your old chat platform and clients? At Kopano we have been developing packages to easily install and update Mattermost for quite some time now. ![]()
0 Comments
Leave a Reply. |