Diferencia entre revisiones de «Etherpad»

De Wiki Castanedo.es
Ir a la navegación Ir a la búsqueda
m (Referencias)
m
Línea 110: Línea 110:
  
 
* [https://github.com/ether/etherpad-lite/wiki/How-to-deploy-Etherpad-Lite-as-a-service https://github.com/ether/etherpad-lite/wiki/How-to-deploy-Etherpad-Lite-as-a-service]
 
* [https://github.com/ether/etherpad-lite/wiki/How-to-deploy-Etherpad-Lite-as-a-service https://github.com/ether/etherpad-lite/wiki/How-to-deploy-Etherpad-Lite-as-a-service]
 +
 +
[[Categoría:Notas]]

Revisión del 07:30 8 ene 2021

Requisitos

Se va a instalar etherpad 1.8.7 cuyos requisitos mínimos son:

  • nodejs >= 10.13.0

Se va a instalar en un servidor: ubuntu server 20.04 TLS.

Usuario root

Todos los comandos se ejecutarán como root, a menos que se especifique lo contrario.

$ sudo -i

Instalación de requisitos

  • Instalación NodeJS

# apt-get install nodejs npm

Requisitos en el OS

Se va a crear el usuario y el grupo "etherpad" para ejecutar etherpad.

# groupadd -r etherpad

# useradd -r -d /home/etherpad -m -g etherpad -s /bin/bash etherpa

Instalación de Etherpad 1.8.7

  • Descarga de Etherpad 1.8.7

# cd /opt

# curl -OL "https://github.com/ether/etherpad-lite/archive/1.8.7.tar.gz"

  • Compresión de Etherpad

# tar -xzvf 1.8.7.tar.gz

  • Establecimiento de permisos

# chown -R etherpad:etherpad /opt/etherpad-lite-1.8.7

  • Instalación de dependencias de Etherpad

# sudo -i -u etherpad /opt/etherpad-lite-1.8.7/bin/installDeps.sh


Añadir extensiones para Etherpad

Se añaden las siguientes extensiones:

npm install ep_headings2 ep_markdown ep_comments_page ep_align ep_font_color ep_webrtc ep_embedded_hyperlinks2

Etherpad con servicio (SystemD)

Se va a configurar Etherpad para que arranque con es OS.

  • Crear el fichero "/etc/systemd/system/etherpad.service"

[Unit]

Description=Etherpad-lite, the collaborative editor.

After=syslog.target network.target


[Service]

Type=simple

User=etherpad

Group=etherpad

WorkingDirectory=/opt/etherpad-lite-1.8.7

Environment=NODE_ENV=production

ExecStart=/usr/bin/nodejs --experimental-worker /opt/etherpad-lite-1.8.7/src/node/server.js

# use mysql plus a complete settings.json to avoid Service hold-off time over, scheduling restart.

Restart=always


[Install]

WantedBy=multi-user.target

  • Recargar demonios

# systemctl daemon-reload

  • Arrancar Etherpad

# systemctl start etherpad.service


  • Habilitar Etherpad durante el arranque

# systemctl enable etherpad.service

  • Comprobar que Etherpad ha arrancado

# systemctl status etherpad.service

Usar nginx como frontal

Etherpad tiene su propio servidor web que, por defecto, escucha en el puerto 9001/tcp. Se va a configurar nginx para que funcione como frontal y redireccione al servidor web de Etherpad (reverse proxy).

Referencias