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 [14/04/2023 11:49] Stéphane Pailletinfrastructure:services:travail-collaboratif:etherpad:installation [14/04/2023 16:30] (Version actuelle) Stéphane Paillet
Ligne 7: Ligne 7:
 <code> <code>
 curl -sL https://deb.nodesource.com/setup_16.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 39: Ligne 44:
  
 ===== 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 59: 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 79: 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 94: 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 101: 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 107: 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.1681472991.txt.gz
  • Dernière modification : 14/04/2023 11:49
  • de Stéphane Paillet