outil_d_echange_collaboratif_mattermost
no way to compare when less than two revisions
Différences
Ci-dessous, les différences entre deux révisions de la page.
Révision précédenteProchaine révision | |||
— | outil_d_echange_collaboratif_mattermost [2021/05/08 13:25] – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== MATTERMOST ====== | ||
+ | |||
+ | Présentation d' | ||
+ | Dans cette présentation, | ||
+ | |||
+ | Nous utiliserons les variables //DBNAME//, //DBUSER// et // | ||
+ | |||
+ | ===== Dépendances ===== | ||
+ | |||
+ | Utilise un [[Serveur web sécurisé (Nginx / Let's Encrypt)]].\\ | ||
+ | Nécessite également les outils : | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Vous devrez également ajouter le domaine __equipe.sleto.net__ dans le [[Serveur DNS (bind9)]] | ||
+ | |||
+ | ===== Base de données ===== | ||
+ | |||
+ | Nous allons créé une base de donnée PostgreSQL: | ||
+ | |||
+ | < | ||
+ | sudo -u postgres psql -c " | ||
+ | sudo -u postgres psql -c "ALTER USER $DBUSER PASSWORD ' | ||
+ | sudo -u postgres psql -c " | ||
+ | </ | ||
+ | |||
+ | ===== Pré-configuration ===== | ||
+ | |||
+ | Création d'un utilisateur __mattermost__: | ||
+ | < | ||
+ | adduser --system --home / | ||
+ | install -d -m 755 -o $DBUSER / | ||
+ | adduser mattermost www-data | ||
+ | </ | ||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | Pour installer l' | ||
+ | < | ||
+ | rm -rf / | ||
+ | cd /tmp | ||
+ | curl https:// | ||
+ | tar -xvzf mattermost.tar.gz | ||
+ | mv mattermost /opt | ||
+ | rm mattermost.tar.gz | ||
+ | mkdir / | ||
+ | chown -R mattermost: | ||
+ | chmod -R g+w / | ||
+ | </ | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | Configuration: | ||
+ | < | ||
+ | ln -sf / | ||
+ | mattermost config set SqlSettings.DriverName postgres | ||
+ | mattermost config set SqlSettings.DataSource ' | ||
+ | mattermost config set ServiceSettings.SiteURL " | ||
+ | mattermost config set TeamSettings.SiteName " | ||
+ | mattermost config set TeamSettings.CustomDescriptionText " | ||
+ | mattermost config set TeamSettings.MaxChannelsPerTeam " | ||
+ | mattermost config set TeamSettings.MaxUsersPerTeam " | ||
+ | mattermost config set TeamSettings.EnableUserCreation " | ||
+ | mattermost config set PasswordSettings.MinimumLength " | ||
+ | mattermost config set PasswordSettings.Number " | ||
+ | mattermost config set PluginSettings.Enable " | ||
+ | mattermost config set LocalizationSettings.AvailableLocales " | ||
+ | mattermost config set LocalizationSettings.DefaultClientLocale " | ||
+ | mattermost config set LocalizationSettings.DefaultServerLocale " | ||
+ | mattermost config set EmailSettings.SMTPServer " | ||
+ | mattermost config set EmailSettings.SMTPPort " | ||
+ | mattermost config set EmailSettings.SMTPUsername "" | ||
+ | mattermost config set EmailSettings.SMTPPassword "" | ||
+ | mattermost user create --email contact@sleto.net --username portail --password ' | ||
+ | </ | ||
+ | |||
+ | Créer le fichier de gestion de service /// | ||
+ | < | ||
+ | [Unit] | ||
+ | Description=Mattermost | ||
+ | After=network.target | ||
+ | After=postgresql.service | ||
+ | Requires=postgresql.service | ||
+ | |||
+ | [Service] | ||
+ | Type=notify | ||
+ | ExecStart=/ | ||
+ | TimeoutStartSec=3600 | ||
+ | Restart=always | ||
+ | RestartSec=10 | ||
+ | WorkingDirectory=/ | ||
+ | User=mattermost | ||
+ | Group=www-data | ||
+ | LimitNOFILE=49152 | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=postgresql.service | ||
+ | </ | ||
+ | |||
+ | Et l' | ||
+ | < | ||
+ | systemctl daemon-reload | ||
+ | systemctl start mattermost.service | ||
+ | systemctl enable mattermost.service | ||
+ | </ | ||
+ | |||
+ | ===== Configuration web ===== | ||
+ | |||
+ | Créer un fichier /// | ||
+ | < | ||
+ | upstream mmbackend { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | proxy_cache_path / | ||
+ | | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name equipe.sleto.net; | ||
+ | return 301 https:// | ||
+ | } | ||
+ | |||
+ | server { | ||
+ | listen 443 ssl; | ||
+ | server_name equipe.sleto.net; | ||
+ | access_log / | ||
+ | error_log | ||
+ | |||
+ | include / | ||
+ | |||
+ | location ~ / | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | location / { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | }</ | ||
+ | |||
+ | Notons que /// | ||
+ | |||
+ | Activer la configuration web par: | ||
+ | < | ||
+ | |||
+ | ===== Rechargement ===== | ||
+ | |||
+ | Pour rafraîchir les services nginx | ||
+ | < | ||
+ | service nginx restart | ||
+ | </ | ||
outil_d_echange_collaboratif_mattermost.txt · Dernière modification : 2023/02/07 17:57 de admin