mattermost_un_container_lxc
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
mattermost_un_container_lxc [2021/02/24 11:34] – Benjamin Labomedia | mattermost_un_container_lxc [2021/02/24 11:53] – Benjamin Labomedia | ||
---|---|---|---|
Ligne 132: | Ligne 132: | ||
systemctl status mattermost.service | systemctl status mattermost.service | ||
systemctl enable mattermost.service | systemctl enable mattermost.service | ||
+ | |||
+ | On peut désormais sortir du container pour configurer le vhost proxy | ||
+ | root@tlcvl ~ #exit | ||
+ | |||
+ | ==== Configuration du vhost sur le serveur hote pour proxy du traffic vers le container ==== | ||
+ | On génère déjà un certificat avec certbot avec un vhost temporaire qui contient l' | ||
+ | certbot certonly --http-01-address 135.181.129.123 -d tl-cvl.futuretic.fr --verbose | ||
+ | Une fois le certificat généré, config du vhost, on redirige les requêtes sur port 80 vers 443 et | ||
+ | nano / | ||
+ | <file php tl-cvl.futuretic.fr-le-ssl.conf> | ||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | ServerAdmin | ||
+ | ServerName | ||
+ | |||
+ | SSLEngine on | ||
+ | SSLProxyEngine On | ||
+ | |||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | Include / | ||
+ | |||
+ | ProxyPreserveHost | ||
+ | |||
+ | # proxy pour cetificat | ||
+ | DocumentRoot / | ||
+ | ProxyPass / | ||
+ | |||
+ | # Set web sockets | ||
+ | RewriteEngine On | ||
+ | RewriteCond %{REQUEST_URI} / | ||
+ | RewriteCond %{HTTP: | ||
+ | RewriteCond %{HTTP: | ||
+ | RewriteRule .* ws:// | ||
+ | |||
+ | < | ||
+ | Require all granted | ||
+ | ProxyPass http:// | ||
+ | ProxyPassReverse http:// | ||
+ | ProxyPassReverseCookieDomain 10.0.3.235 tl-cvl.futuretic.fr | ||
+ | </ | ||
+ | |||
+ | |||
+ | ErrorLog / | ||
+ | LogLevel error | ||
+ | CustomLog / | ||
+ | |||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | Ajouter ensuite ce vhost ainsi que celui pour port 80 et reload | ||
+ | a2ensite tl-cvl.futuretic.fr.conf tl-cvl.futuretic.fr-le-ssl.conf | ||
+ | systemctl reload apache2 | ||
==== Configuration de Mattermost ==== | ==== Configuration de Mattermost ==== | ||
+ | On doit maintenant pouvoir se rendre à l'url pour accéder à l' | ||
+ | |||
+ | Notamment la configuration SMTP pour que les mails soient bien envoyés | ||
+ | {{:: | ||
+ | Et configurer les notifications pour qu' | ||
+ | {{:: | ||
+ | |||
+ | ==== Configurations complémentaires ==== | ||
+ | On règle les locales pour être en français par défaut | ||
+ | dpkg-reconfigure locales | ||
+ | Choisir FR UTF8 par défaut et régler dans l' | ||
+ | |||
+ | Ajout du plug-in jitsi pour permettre l' | ||
+ | {{tag>bj serveur lxc mattermost futuretic}} |
mattermost_un_container_lxc.txt · Dernière modification : 2023/10/11 21:04 de Labomedia