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
infrastructure:services:travail-collaboratif:etherpad:installation [24/08/2025 11:57] Stéphane Pailletinfrastructure:services:travail-collaboratif:etherpad:installation [24/08/2025 15:30] (Version actuelle) Stéphane Paillet
Ligne 6: Ligne 6:
 Nous installons node.js Nous installons node.js
 <code> <code>
-curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -+curl -sL https://deb.nodesource.com/setup_22.x | sudo -E bash -
 sudo apt install -y nodejs sudo apt install -y nodejs
-</code> 
- 
-Nous installons Nginx et redis (qui nous servira de base de données) 
-<code> 
-sudo aptitude install nginx redis-server 
 </code> </code>
  
Ligne 64: Ligne 59:
 Nous ajoutons le connecteur pour Redis Nous ajoutons le connecteur pour Redis
 <code> <code>
-  "dbType" : "redis",+  "dbType" : "postgres",
   "dbSettings" : {   "dbSettings" : {
-    "host": "localhost", +    "user":     "etherpad", 
-    "port": 6379+    "host":     "localhost", 
-    "database": 0+    "port":     5432, 
 +    "password": "montsupermotdepasse"
 +    "database": "etherpad",
   },   },
 </code> </code>
Ligne 102: Ligne 99:
 WorkingDirectory=/opt/etherpad WorkingDirectory=/opt/etherpad
 Environment=NODE_ENV=production Environment=NODE_ENV=production
-ExecStart=/usr/bin/node /opt/etherpad/node_modules/ep_etherpad-lite/node/server.js+ExecStart=pnpm run prod 
 +# use mysql plus a complete settings.json to avoid Service hold-off time over, scheduling restart.
 Restart=always Restart=always
 +
 +StandardOutput=append:/var/log/etherpad/etherpad.log
 +StandardError=append:/var/log/etherpad/etherpad-error.log
  
 [Install] [Install]
Ligne 136: Ligne 137:
 sudo systemctl status etherpad.service sudo systemctl status etherpad.service
 </code> </code>
- 
  
 ===== Proxy Nginx ===== ===== Proxy Nginx =====
 +
 +Nous installons Nginx
 +<code>
 +sudo apt install -y nginx
 +</code>
  
 Nous créons un vHost Nginx Nous créons un vHost Nginx
  • infrastructure/services/travail-collaboratif/etherpad/installation.1756036646.txt.gz
  • Dernière modification : 24/08/2025 11:57
  • de Stéphane Paillet