Outils pour utilisateurs

Outils du site


logiciels_libres:mattermost

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
logiciels_libres:mattermost [2021/10/08 17:12] klorobiontenlogiciels_libres:mattermost [2021/10/08 17:18] (Version actuelle) klorobionten
Ligne 1: Ligne 1:
 ====== Mattermost Server ====== ====== Mattermost Server ======
  
-How to host mattermost on your own serv ?+How to host mattermost on your own server ?
  
-You need to enable the following apache modules: mod_rewrite , mod_proxy, mod_proxy_http, mod_headers, and proxy_wstunnel.+===== Source Code ===== 
 + 
 +Download the source :  
 + 
 +<code> 
 +wget https://releases.mattermost.com/5.39.0/mattermost-5.39.0-linux-amd64.tar.gz 
 +</code> 
 + 
 +===== 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 : You can use the apache2 enable mod command, a2enmod :
Ligne 15: Ligne 26:
 </code> </code>
 ... and so on. ... and so on.
 +
 +===== Apache2 configuration - SSL =====
 +
 +Under /etc/apache2/sites-available/000-default-le-ssl.conf
 +
 +<code>
 +<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>
 +
 +
 +</code>
 +
logiciels_libres/mattermost.1633705920.txt.gz · Dernière modification : 2021/10/08 17:12 de klorobionten