Container 'pad'

Ressourcen

0.5 GB RAM

1 Cores

5 GB HDD (root-fs)

System

interne IPs

10.2.0.3, fd00:10:2:0::3

10.3.0.3, fd00:10:3:0::3

Dienste

Etherpad-Lite mit Plugins

ep_pad_lister

Installation

Standard-Template mit Benutzern

Etherpad-Lite

Git installieren

sudo apt-get install git

Benutzer anlegen

sudo useradd -m -c „Etherpad“ etherpad -s /bin/bash

NodeJS installieren

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

sudo apt-get install nodejs

Etherpad-Lite installieren

sudo mkdir /opt/etherpad-lite

sudo chown etherpad:etherpad /opt/etherpad-lite

sudo -u etherpad git clone –branch master https://github.com/ether/etherpad-lite.git /opt/etherpad-lite

Etherpad-Standard-Konfiguration kopieren

sudo -u etherpad cp /opt/etherpad-lite/settings.json.template /opt/etherpad-lite/settings.json

Etherpad-Konfiguration anpassen

...
"skinName": "colibris",
...
"ip": "10.2.0.3",
"port": 9001,
...
/*
"dbType": "dirty",
"dbSettings": {
"filename": "var/dirty.db"
},
*/
...
"dbType" : "mysql",
"dbSettings" : {
"user": "XXXXXXXX",
"host": "10.3.0.100",
"port": 3306,
"password": "XXXXXXXXX",
"database": "etherpadlite",
"charset": "utf8mb4"
},
...
"trustProxy": true,
...

Etherpad-Abhängigkeiten updaten

sudo -u etherpad /opt/etherpad-lite/bin/installDeps.sh

Plugins installieren

sudo su - etherpad

cd /opt/etherpad-lite

npm install ep_pad-lister

exit

systemd Unit einrichten

[Unit]
Description=Etherpad-lite, the collaborative editor.
After=syslog.target network.target
[Service]
Type=simple
User=etherpad
Group=etherpad
WorkingDirectory=/opt/etherpad-lite
Environment=NODE_ENV=production
ExecStart=/usr/bin/nodejs --experimental-worker /opt/etherpad-lite/node_modules/ep_etherpad-lite/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

systemd unit einlesen, aktivieren und starten

sudo systemctl daemon-reload

sudo systemctl enable --now etherpad-lite.service

Backup mit Borgmatic

Installation siehe mariadb

Konfiguration

...
location:
# List of source directories to backup (required). Globs and
# tildes are expanded.
source_directories:
- /etc
- /home
- /opt
- /root
- /var/log
...