UUGRN:Services/pad.uugrn.org
Aus UUGRN
__ ____ ____ _____/ / __ ____ ______ __________ ____ _________ _ / __ \/ __ `/ __ / / / / / / / / __ `/ ___/ __ \ / __ \/ ___/ __ `/ / /_/ / /_/ / /_/ /_/ /_/ / /_/ / /_/ / / / / / // /_/ / / / /_/ / / .___/\__,_/\__,_/(_)__,_/\__,_/\__, /_/ /_/ /_(_)____/_/ \__, / /_/ Admin:sh+pad[at]uugrn.org /____/ /____/ OS: Debian Version: 10 (Buster) Architecture: amd64 CPU: 1x Intel Xeon Processor (Skylake, IBRS) SPEED: 2294Mhz Memory: 1983MB Welcome to pad.uugrn.org
ETHERPAD LITE SERVER
Produktivschaltung am 20.06.2020
Das neue Etherpad Lite mit WebRTC Support
- Host: pad.new.uugrn.org
ADMIN: sdk (sh+uugrn@codevoid.de)
INSTALL LOG
OS: Debian Buster (10)
Installierte Software
- etherpad-lite
- nginx (als reverse proxy)
- posgresql
Etherpad Lite läuft unter dem User "etherpad". Das Home directory des users ist /data/etherpad-lite.
Die Datei settings.json im ethernet-lite verzeichnis wurde folgendermaßen verändert:
root@pad:/data/etherpad-lite# diff settings.json.orig settings.json
171c171 > /* 175a176,184 > */ > "dbType" : "postgres", > "dbSettings" : { > "user" : "etherpad", > "host" : "/var/run/postgresql", > "password": "*******", > "database": "etherpad", > "charset" : "utf8mb4" > }, 407d415 < /* 410,412c418 < // 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": "changeme1", --- > "password": "******", 414,419d419 < }, < "user": { < // 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": "changeme1", < "is_admin": false 422d421 < */
Etherpad wird über einen systemd service gestartet
cat /etc/systemd/system/etherpad-lite.service
[Unit] Description=etherpad-lite (real-time collaborative document editing) After=syslog.target network.target [Service] Type=simple User=etherpad Group=etherpad Environment=NODE_ENV=production ExecStart=/bin/sh /data/etherpad-lite/bin/run.sh [Install] WantedBy=multi-user.target
Die Postgresql DB wurde angelegt mit:
$ psql CREATE USER etherpad; ALTER USER etherpad WITH PASSWORD '******'; CREATE DATABASE etherpad OWNER etherpad; ^D