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 [01/11/2020 10:55] – ↷ Page déplacée de infrastructure:travail-collaboratif:etherpad:installation à infrastructure:services:travail-collaboratif:etherpad:installation Stéphane Pailletinfrastructure:services:travail-collaboratif:etherpad:installation [14/04/2023 16: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_10.x | sudo -E bash - +curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - 
-sudo apt-get install -y nodejs+sudo aptitude install 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 20: Ligne 25:
 </WRAP> </WRAP>
  
-<code> 
 Nous téléchargeons la dernière version d'Etherpad Nous téléchargeons la dernière version d'Etherpad
 <code> <code>
-wget https://github.com/ether/etherpad-lite/archive/1.8.4.zip+wget https://github.com/ether/etherpad-lite/archive/1.8.18.tar.gz
 </code> </code>
  
 Nous la dézippons et mettons les bons droits, et le plaçons dans son répertoire de travail Nous la dézippons et mettons les bons droits, et le plaçons dans son répertoire de travail
 <code> <code>
-unzip 1.8.4.zip +tar xzf 1.8.4.tar.gz 
-sudo chown -R etherpad: etherpad-1.8.4 +sudo chown -R etherpad: etherpad-lite-1.8.18 
-sudo mv etherpad-1.8./opt/etherpad+sudo mv etherpad-lite-1.8.18/* /opt/etherpad
 </code> </code>
  
 À l'issue de l'installation, nous pouvons vérifier la version installée À l'issue de l'installation, nous pouvons vérifier la version installée
 <code> <code>
-nodejs --version+node --version
 npm --version npm --version
 </code> </code>
  
 ===== Configuration MariaDB ===== ===== Configuration MariaDB =====
 +<WRAP center round important 60%>
 +Nous n'utilisons plus MariaDB, mais à défaut de mieux, Redis.
 +</WRAP>
 +
 Nous créons la base de données, et y attachons l'utilisateur Nous créons la base de données, et y attachons l'utilisateur
 <code> <code>
Ligne 60: Ligne 68:
 </code> </code>
  
-À suivre.+Nous ajoutons le connecteur pour Redis 
 +<code> 
 +  "dbType" : "redis", 
 +  "dbSettings" : { 
 +    "host": "localhost", 
 +    "port": 6379, 
 +    "database":
 +  }, 
 +</code> 
 + 
 +Nous configurons le compte admin en décommentant / adaptant ce bloc 
 +<code> 
 +  "users":
 +    "admin":
 +      // 1) "password" can be replaced with "hash" if you install ep_hash_auth 
 +      // 2) please note that if password is null, the user will not be created 
 +      "password": "monsupermotdepasse", 
 +      "is_admin": true 
 +    } 
 +  }, 
 +</code>
  
 ===== Configuration Systemd ===== ===== Configuration Systemd =====
Ligne 80: Ligne 108:
 WorkingDirectory=/opt/etherpad WorkingDirectory=/opt/etherpad
 Environment=NODE_ENV=production Environment=NODE_ENV=production
-ExecStart=/usr/bin/nodejs /opt/etherpad/node_modules/ep_etherpad-lite/node/server.js +ExecStart=/usr/bin/node /opt/etherpad/node_modules/ep_etherpad-lite/node/server.js 
-Restart=always # use mysql plus a complete settings.json to avoid Service hold-off time over, scheduling restart.+Restart=always
  
 [Install] [Install]
Ligne 95: Ligne 123:
 Nous activons le service via systemd et le lançons Nous activons le service via systemd et le lançons
 <code> <code>
-sudo systemctl enable etherpad.service +sudo systemctl enable --now etherpad.service
-sudo systemctl start etherpad.service+
 </code> </code>
  
Ligne 102: Ligne 129:
 <code> <code>
 sudo systemctl status etherpad.service sudo systemctl status etherpad.service
 +</code>
 +
 +
 +===== Proxy Nginx =====
 +
 +Nous créons un vHost Nginx
 +<code>
 +sudo vi /etc/nginx/sites-available/pad.domain.tld.conf
 +</code>
 +
 +Nous y collons et adaptons ce contenu
 +<code>
 +À venir.
 +</code>
 +
 +Nous créons le liens symbolique
 +<code>
 +cd /etc/nginx/sites-enabled/
 +sudo ln -s /etc/nginx/sites-available/pad.domain.tld.conf
 +</code>
 +
 +Nous vérifions la configuration et la rechargeons
 +<code>
 +sudo nginx -t
 +sudo systemctl reload neginx.service
 </code> </code>
  
Ligne 108: Ligne 160:
   * [[https://github.com/ether/etherpad-lite#installation|documentation installation]]   * [[https://github.com/ether/etherpad-lite#installation|documentation installation]]
   * [[https://www.howtoforge.com/tutorial/ubuntu-etherpad-editor-server-installation/|How to Install Collaborative Real-time Editor Etherpad on Ubuntu 18.04]]   * [[https://www.howtoforge.com/tutorial/ubuntu-etherpad-editor-server-installation/|How to Install Collaborative Real-time Editor Etherpad on Ubuntu 18.04]]
 +  * [[https://etherpad.org/doc/latest/|documentation Etherpad-lite]]
 +  * [[https://github.com/ether/etherpad-lite/wiki/How-to-use-Etherpad-Lite-with-Redis|How to use Etherpad Lite with Redis]]
  • infrastructure/services/travail-collaboratif/etherpad/installation.1604228154.txt.gz
  • Dernière modification : 01/11/2020 10:55
  • de Stéphane Paillet