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:09]
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 64: Ligne 62:
 cat <<'EOF' | tee /opt/meshcentral/meshcentral-data/config.json cat <<'EOF' | tee /opt/meshcentral/meshcentral-data/config.json
 { {
- "settings":+  "settings":
- "MongoDb": "mongodb://127.0.0.1:27017/meshcentral", +    "MongoDb": "mongodb://127.0.0.1:27017/meshcentral", 
- "WANonly": true+    "Cert": "myservername.domain.com"
- "_Port": 443, +    "AliasPort": 443, 
- "_RedirPort": 80+    "Port": 4430
- "_AllowLoginToken": true+    "RedirPort": 800
- "_AllowFraming": true+    "AgentPong": 300
- "_WebRTC": false, +    "TlsOffload": "10.0.3.177" 
- "_ClickOnce": false, +  } 
- "_UserAllowedIP" : "127.0.0.1,::1,10.0.3.1+  "domains": { 
- }+  "": {"certUrl": "https://myservername.domain.com/"} 
 +  }
 } }
 EOF EOF
Ligne 81: Ligne 80:
 </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.1604848159.txt.gz · Dernière modification: 2020/11/08 16:09 de pielo