Outils pour utilisateurs

Outils du site


meshcentral-sur-lxc

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é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://info.meshcentral.com/downloads/MeshCentral2/MeshCentral2InstallGuide.pdf +  [[http://info.meshcentral.com/downloads/MeshCentral2/MeshCentral2InstallGuide.pdf|Installation Guide]] 
- +  * [[http://info.meshcentral.com/downloads/MeshCentral2/MeshCentral2UserGuide.pdf|User's Guide]]
 ===== 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 /opt/meshcentral/meshcentral-data mkdir /opt/meshcentral/meshcentral-data
 +chown -R meshcentral:meshcentral /opt/meshcentral
 +chmod 755 -R /opt/meshcentral/meshcentral-*
  
 +
 +cat <<'EOF' | tee /opt/meshcentral/meshcentral-data/config.json
 +{
 +  "settings": {
 +    "MongoDb": "mongodb://127.0.0.1:27017/meshcentral",
 +    "Cert": "myservername.domain.com",
 +    "AliasPort": 443,
 +    "Port": 4430,
 +    "RedirPort": 800,
 +    "AgentPong": 300,
 +    "TlsOffload": "10.0.3.177"
 +  }
 +  "domains": {
 +  "": {"certUrl": "https://myservername.domain.com/"}
 +  }
 +}
 +EOF
 +
 +sudo -u meshcentral node ./node_modules/meshcentral
 </code> </code>
  
 +
 +===== Apache reverse proxy =====
 +
 +https://github.com/Ylianst/MeshCentral/issues/317#issuecomment-525048548
 +
 +
 +<code apache>
 +RewriteEngine on
 +RewriteCond %{HTTP:Upgrade} websocket [NC]
 +RewriteCond %{HTTP:Connection} upgrade [NC]
 +RewriteRule . "ws://10.0.3.133:4430%{REQUEST_URI}" [P]
 +ProxyPass / http://10.0.3.133:4430/ connectiontimeout=86400 timeout=30
 +ProxyPassReverse / http://10.0.3.133:4430/
 +ProxyPreserveHost On
 +</code>
  
 ===== Systemd service ===== ===== Systemd service =====
meshcentral-sur-lxc.1604848031.txt.gz · Dernière modification: 2020/11/08 16:07 de pielo