logiciels_libres:mattermost
Table des matières
Mattermost Server
How to host mattermost on your own server ?
Source Code
Download the source :
wget https://releases.mattermost.com/5.39.0/mattermost-5.39.0-linux-amd64.tar.gz
Apache2 modules
You need to enable the following apache modules: mod_rewrite , mod_proxy, mod_proxy_http, mod_headers, and proxy_wstunnel.
You can use the apache2 enable mod command, a2enmod :
sudo a2enmod proxy_wstunnel
and
sudo a2enmod headers
… and so on.
Apache2 configuration - SSL
Under /etc/apache2/sites-available/000-default-le-ssl.conf
<IfModule mod_ssl.c> <VirtualHost *:443> ServerName mattermost.yourdomain.org SSLCertificateFile /etc/letsencrypt/live/mattermost.yourdomain.org/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/mattermost.yourdomain.org/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf ProxyPreserveHost On <IfModule mod_security2.c> SecRuleEngine Off </IfModule> # Set web sockets RewriteEngine On RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC] RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC] RewriteCond %{HTTP:CONNECTION} \bUpgrade\b [NC] RewriteRule .* ws://127.0.0.1:8065%{REQUEST_URI} [P,QSA,L] <Location /> Require all granted ProxyPass http://127.0.0.1:8065/ ProxyPassReverse http://127.0.0.1:8065/ ProxyPassReverseCookieDomain 127.0.0.1 mattermost.yourdomain.org </Location> </VirtualHost> </IfModule>
logiciels_libres/mattermost.txt · Dernière modification : 2021/10/08 17:18 de klorobionten