mattermost

Basic usage

  1. Set up Docker Swarm and abra
  2. Deploy coop-cloud/traefik
  3. abra app new --secrets --app-name YOURAPPNAME mattermost (optionally with --pass if you'd like to save secrets in pass)
  4. abra app config YOURAPPNAME - be sure to change $DOMAIN to something that resolves to your Docker swarm box
  5. abra app deploy YOURAPPNAME
  6. Open the configured domain in your browser to finish set-up

Enable Email

WARNING: Following these steps will overwrite the configuration of your Mattermost instance. Probably only run it on a fresh deployment.

  • abra app config YOURAPPNAME
  • Uncomment the section starting with Email Support
  • abra app secret i YOURAPPNAME smtp_pass v1 'yourSMTPpassword'
  • abra app undeploy YOURAPPNAME
  • abra app deploy YOURAPPNAME
  • abra app command -C YOURAPPNAME app reset_config <- This will overwrite your configuration

Enable SSO with Authentik

This is how to configure your Mattermost server to accept logins from your Authentik SSO provider.

Configure Authentik

Create a property mapping

  • Log in as administrator of your Authentik instance
  • Go to https://authentik.yourserver.org/if/admin/#/core/property-mappings and choose Create
  • Choose Scope Mapping
    • Name: Mattermost ID
    • Scope Name: id
    • Description: optional own description
    • Expression: return { "id": request.user.id }
  • Create another Scope Mapping
    • Name: Mattermost Username
    • Scope Name: username
    • Description: optional own description
    • Expression: return { "username": request.user.username }

Create Application and Provider

Configure Mattermost

WARNING: Following these steps will overwrite the configuration of your Mattermost instance. Probably only run it on a fresh deployment.

  • abra app configure YOURAPPNAME
    • Uncomment the section starting with ## SSO config
    • Set SSO_ID to the value you saved when configuring Authentik
  • abra app secret insert YOURAPPNAME mattermost_sso_secret v1 <the authentik provider secret you saved>
  • abra app undeploy YOURAPPNAME
  • abra app deploy YOURAPPNAME
  • abra app command -C YOURAPPNAME app reset_config <- This will overwrite your configuration

Disable non-SSO login (Optional)

Use a Mattermost Enterprise License

NOTE: This deploys non-FOSS code and requires you to pay Mattermost for a license to enable features. Not recommended unless you know what you're doing.

  • abra app config YOURAPPNAME
  • Uncomment the section which starts with ## Enable enterprise version
  • abra app undeploy YOURAPPNAME
  • abra app deploy YOURAPPNAME
Description
No description provided
Readme 175 KiB
Languages
Shell 100%