meshcentral-sur-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édente | ||
| meshcentral-sur-lxc [2020/11/08 15:07] – [Meshcentral] pielo | meshcentral-sur-lxc [2021/12/26 09:35] (Version actuelle) – [Apache revese proxy] pielo | ||
|---|---|---|---|
| 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 ===== | ||
meshcentral-sur-lxc.1604848031.txt.gz · Dernière modification : de pielo
