Aktuelle Version |
Dein Text |
Zeile 1: |
Zeile 1: |
| {{Navigationsleiste Services}}
| |
| <pre> | | <pre> |
| __ ____ ______ __________ ____ _________ _
| | __ |
| ASCII / / / / / / / __ `/ ___/ __ \ / __ \/ ___/ __ `/
| | ____ ____ _____/ / __ ____ ______ __________ ____ _________ _ |
| DRAW _/ /_/ / /_/ / /_/ / / / / / // /_/ / / / /_/ /
| | / __ \/ __ `/ __ / / / / / / / / __ `/ ___/ __ \ / __ \/ ___/ __ `/ |
| PAD (_)__,_/\__,_/\__, /_/ /_/ /_(_)____/_/ \__, /
| | / /_/ / /_/ / /_/ /_/ /_/ / /_/ / /_/ / / / / / // /_/ / / / /_/ / |
| ADMIN: /____/ sh+admin[at]uugrn.org /____/
| | / .___/\__,_/\__,_/(_)__,_/\__,_/\__, /_/ /_/ /_(_)____/_/ \__, / |
| | /_/ Admin:sh+pad[at]uugrn.org /____/ /____/ |
|
| |
|
| OS: Debian Version: 10 (Buster) Architecture: amd64 | | OS: Debian Version: 10 (Buster) Architecture: amd64 |
Zeile 11: |
Zeile 11: |
| SPEED: 2294Mhz Memory: 1983MB | | SPEED: 2294Mhz Memory: 1983MB |
|
| |
|
| Welcome to {ascii,draw,pad}.uugrn.org | | Welcome to pad.uugrn.org |
| </pre> | | </pre> |
|
| |
|
Zeile 22: |
Zeile 22: |
| * Host: '''[https://pad.new.uugrn.org pad.new.uugrn.org]''' | | * Host: '''[https://pad.new.uugrn.org pad.new.uugrn.org]''' |
|
| |
|
| '''ADMIN:''' sdk (sh+uugrn@uugrn.org) | | '''ADMIN:''' sdk (sh+uugrn@codevoid.de) |
| | |
| == Update 2020-05-26 ==
| |
| | |
| Die folgenden Etherpad Plugins wurden installiert:
| |
| | |
| * adminpads2 (zeigt Pads im Admin Frontend an)
| |
| * code_formatting (erlaubtes Text als Source Code zu formatieren - aka Monospace)
| |
| * image_upload (erlaubt es Fotos in ein pad einzubinden)
| |
| * webrtc (erlaubt Audio/Video Konferenz)
| |
| * draw (integration mit draw.uugrn.org)
| |
|
| |
|
| == INSTALL LOG == | | == INSTALL LOG == |
Zeile 46: |
Zeile 36: |
| Das Home directory des users ist /data/etherpad-lite. | | Das Home directory des users ist /data/etherpad-lite. |
|
| |
|
| === User anlegen ===
| | Die Datei settings.json im ethernet-lite verzeichnis wurde folgendermaßen verändert: |
| | |
| <pre>
| |
| $ mkdir /data
| |
| $ adduser etherpad --system --group --home /data/etherpad-lite
| |
| $ chown -R etherpad:etherpad /data
| |
| </pre>
| |
| | |
| === Datenbank anlegen ===
| |
|
| |
|
| | root@pad:/data/etherpad-lite# diff settings.json.orig settings.json |
| <pre> | | <pre> |
| $ apt-get install postgresql
| |
| $ pg_ctlcluster 11 main start
| |
| $ sudo -su postgresql
| |
| $ psql
| |
| CREATE USER etherpad;
| |
| ALTER USER etherpad WITH PASSWORD '******';
| |
| CREATE DATABASE etherpad OWNER etherpad;
| |
| ^D
| |
| </pre>
| |
|
| |
| === Etherpad installieren ===
| |
|
| |
| <pre>
| |
| $ cd /data
| |
| $ git clone --branch master git://github.com/ether/etherpad-lite.git
| |
| $ chown -R etherpad:etherpad etherpad-liste
| |
| </pre>
| |
|
| |
| Die Datei settings.json im ethernet-lite verzeichnis wurde folgendermaßen verändert:
| |
| <pre>
| |
| $ diff settings.json.orig settings.json
| |
| 171c171 | | 171c171 |
| <
| |
| ---
| |
| > /* | | > /* |
| 175a176,184 | | 175a176,184 |
Zeile 92: |
Zeile 52: |
| > "charset" : "utf8mb4" | | > "charset" : "utf8mb4" |
| > }, | | > }, |
| 295c304
| |
| < "abiword": null,
| |
| ---
| |
| > "abiword": "/usr/bin/abiword",
| |
| 303c312
| |
| < "soffice": null,
| |
| ---
| |
| > "soffice": "/usr/bin/libreoffice",
| |
| 353c362
| |
| < "automaticReconnectionTimeout": 0,
| |
| ---
| |
| > "automaticReconnectionTimeout": 15,
| |
| 407d415 | | 407d415 |
| < /* | | < /* |
Zeile 111: |
Zeile 59: |
| < "password": "changeme1", | | < "password": "changeme1", |
| --- | | --- |
| > "password": "*******", | | > "password": "******", |
| 414,419d419 | | 414,419d419 |
| < }, | | < }, |
Zeile 123: |
Zeile 71: |
| </pre> | | </pre> |
|
| |
|
| === SystemD Service installieren ===
| | Etherpad wird über einen systemd service gestartet |
|
| |
|
| | cat /etc/systemd/system/etherpad-lite.service |
| <pre> | | <pre> |
| $ cat /etc/systemd/system/etherpad-lite.service
| |
| [Unit] | | [Unit] |
| Description=etherpad-lite (real-time collaborative document editing) | | Description=etherpad-lite (real-time collaborative document editing) |
Zeile 140: |
Zeile 88: |
| [Install] | | [Install] |
| WantedBy=multi-user.target | | WantedBy=multi-user.target |
|
| |
| $ systemctl enable etherpad-lite
| |
| $ service etherpad-lite start
| |
| </pre>
| |
|
| |
| === NGINX Reverse Proxy installieren ===
| |
|
| |
| <pre>
| |
| $ apt-get install nginx ===
| |
| $ rm /etc/nginx/sites-enabled/default
| |
| $ cat /etc/nginx/sites-enabled/etherpad
| |
| server {
| |
|
| |
| listen 443 ssl;
| |
| server_name pad.uugrn.org;
| |
|
| |
| access_log /var/log/nginx/pad.uugrn.org.access.log;
| |
| error_log /var/log/nginx/pad.uugrn.org.error.log;
| |
|
| |
| ssl_certificate /etc/letsencrypt/live/pad.uugrn.org/fullchain.pem;
| |
| ssl_certificate_key /etc/letsencrypt/live/pad.uugrn.org/privkey.pem;
| |
|
| |
| include /etc/letsencrypt/options-ssl-nginx.conf;
| |
| ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
| |
|
| |
| location / {
| |
| proxy_pass http://localhost:9001/;
| |
| proxy_set_header Host $host;
| |
| proxy_pass_header Server;
| |
| proxy_buffering off;
| |
| proxy_set_header X-Real-IP $remote_addr;
| |
| proxy_set_header X-Forwarded-For $remote_addr;
| |
| proxy_set_header X-Forwarded-Proto $scheme;
| |
| proxy_set_header Host $host;
| |
| proxy_http_version 1.1;
| |
| proxy_set_header Upgrade $http_upgrade;
| |
| proxy_set_header Connection $connection_upgrade;
| |
| }
| |
| }
| |
|
| |
| # we're in the http context here
| |
| map $http_upgrade $connection_upgrade {
| |
| default upgrade;
| |
| '' close;
| |
| }
| |
|
| |
| server {
| |
| listen 80;
| |
| server_name pad.uugrn.org;
| |
| rewrite ^(.*) https://$server_name$1 permanent;
| |
| }
| |
| </pre>
| |
|
| |
| === Letsencrypt einrichten ===
| |
|
| |
| <pre>
| |
| $ apt-get install certbot python3-certbot-nginx
| |
| $ certbot -d pad.uugrn.org
| |
| <run through wizard>
| |
|
| |
| $ cat /etc/cron.weekly/certbot.sh
| |
| #!/bin/sh
| |
| PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
| |
| certbot renew
| |
| service nginx reload
| |
| </pre> | | </pre> |