Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
meshcentral-sur-lxc [2020/11/08 16:07] pielo [Meshcentral] |
meshcentral-sur-lxc [2021/12/26 10:35] (Version actuelle) pielo [Apache revese proxy] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Installation de Meshcentral sur LXC ====== | + | ====== Installation de Meshcentral sur LXC Ubuntu 18.04 ====== |
===== Liens ===== | ===== Liens ===== | ||
- | * http:// | + | |
- | + | * [[http:// | |
===== Outils ===== | ===== Outils ===== | ||
<code bash> | <code bash> | ||
apt install net-tools bash-completion software-properties-common | apt install net-tools bash-completion software-properties-common | ||
- | |||
dpkg-reconfigure locales | dpkg-reconfigure locales | ||
Ligne 58: | Ligne 56: | ||
npm install archiver@4.0.2 otplib@10.2.3 mongodb | npm install archiver@4.0.2 otplib@10.2.3 mongodb | ||
mkdir / | mkdir / | ||
+ | chown -R meshcentral: | ||
+ | chmod 755 -R / | ||
+ | |||
+ | cat <<' | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | " | ||
+ | "": | ||
+ | } | ||
+ | } | ||
+ | EOF | ||
+ | |||
+ | sudo -u meshcentral node ./ | ||
</ | </ | ||
+ | |||
+ | ===== Apache reverse proxy ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | <code apache> | ||
+ | RewriteEngine on | ||
+ | RewriteCond %{HTTP: | ||
+ | RewriteCond %{HTTP: | ||
+ | RewriteRule . " | ||
+ | ProxyPass / http:// | ||
+ | ProxyPassReverse / http:// | ||
+ | ProxyPreserveHost On | ||
+ | </ | ||
===== Systemd service ===== | ===== Systemd service ===== |