Etherpad

root ~ # useradd -m -r -d /opt/etherpad -U etherpad
root ~ # sudo -iu etherpad git clone https://github.com/ether/etherpad-lite
root ~ # sudo -iu etherpad npm config set prefix '~/.local/'
root ~ # sudo -iu etherpad npm install -g pnpm

etherpad ~ % fish_add_path ~/.local/bin/
etherpad ~/etherpad-lite % ~/.local/bin/pnpm run plugins install ep_delete_after_delay
 
 Image de fond modifiée : src/static/skins/colibris/images/fond.jpg 
 Modification du settings.json : 
 {
 "title": "Pad.fede.re",
 "favicon": "favicon.ico",

 "ip": "127.0.0.1",
 "port": 8679,

 "cleanup": {
 "enabled": true,
 "keepRevisions": 100
 },

 "ep_delete_after_delay": {
 "delay": 15552000, // 60 seconds * 60 minutes * 24 hours * 30 days * 6 = 6 months, in seconds
 "loop": true,
 "loopDelay": 3600, // one hour, in seconds
 "deleteAtStart": true,
 "text": "The content of this pad has been deleted since it was older than the configured delay."
 },

 "users": {
 "admin": {
 "password": "changeme",
 "is_admin": true
 }
 },
}
 
 Fichier du service systemd: 
 cat /etc/systemd/system/etherpad.service 
[Unit]
Description=etherpad
After=network.target

[Service]
Type=simple
KillMode=mixed
User=etherpad
Environment=PATH=/opt/etherpad/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin
Environment=NODE_ENV=production
ExecStart=/bin/sh /opt/etherpad/etherpad-lite/bin/run.sh
WorkingDirectory=/opt/etherpad/etherpad-lite
Restart=on-failure

[Install]
WantedBy=multi-user.target