From f47333563a26ee24fc49cf44d2a1fc1bbd34c3b0 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 13 Mar 2022 01:57:15 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'services/pad.libre?= =?UTF-8?q?-service.eu.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/pad.libre-service.eu.md | 69 ++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 4 deletions(-) diff --git a/services/pad.libre-service.eu.md b/services/pad.libre-service.eu.md index 24a9e83..9439012 100644 --- a/services/pad.libre-service.eu.md +++ b/services/pad.libre-service.eu.md @@ -122,7 +122,7 @@ chown -R etherpad:etherpad /var/www/pad.libre-service.eu Premier lancement : ``` -su etherpad -c "cd /var/www/pad.libre-service.eu/ && ./bin/installDeps.sh" +su etherpad -c "cd /var/www/pad.libre-service.eu/ && ./bin/installDeps.sh && ./src/bin/run.sh" ``` @@ -161,7 +161,6 @@ su etherpad -c "cd /var/www/pad.libre-service.eu/ && ./bin/installDeps.sh" ``` - ## Configuration Systemd Créer le fichier `/etc/systemd/system/etherpad.service` : @@ -177,7 +176,8 @@ Group=etherpad WorkingDirectory=/var/www/pad.libre-service.eu/ Environment=NODE_ENV=production -ExecStart=/usr/bin/node /var/www/pad.libre-service.eu/src/node/server.js +ExecStart=/usr/bin/node /var/www/pad.libre-service.eu/bin/run.sh +# src???/node/server.js Restart=always @@ -202,6 +202,50 @@ Activer le démarrage automatique : systemctl enable etherpad ``` +## Configuration Apache + +Documentation officielle : https://github.com/ether/etherpad-lite/wiki/How-to-put-Etherpad-Lite-behind-a-reverse-Proxy#apache + +Activer les modules pour le proxy : +``` +a2enmod proxy +a2enmod proxy_http +a2enmod rewrite +apachectl configtest +systemctl restart apache2 +``` + +Configurer le site web : +``` + ProxyVia On + ProxyRequests Off + ProxyPreserveHost On + + + ProxyPass http://localhost:9001/ retry=0 timeout=30 + ProxyPassReverse http://localhost:9001/ + + + # This is needed to handle the websocket transport through the proxy, since + # etherpad does not use a specific sub-folder, such as /ws/ to handle this kind of traffic. + # Taken from https://github.com/ether/etherpad-lite/issues/2318#issuecomment-63548542 + # Thanks to beaugunderson for the semantics + RewriteEngine On + RewriteCond %{QUERY_STRING} transport=websocket [NC] + RewriteRule /(.*) ws://localhost:9001/socket.io/$1 [P,L] + ProxyPass http://localhost:9001/socket.io retry=0 timeout=30 + ProxyPassReverse http://localhost:9001/socket.io + + + + Options FollowSymLinks MultiViews + AllowOverride All + Order allow,deny + allow from all + +``` + + ## Personnalisation ### Installation de modules @@ -210,9 +254,26 @@ Installer des modules élémentaires : ``` su - etherpad cd /var/www/pad.libre-service.eu/ -npm install --no-save --legacy-peer-deps ep_headings2 ep_markdown ep_comments_page ep_align ep_font_color ep_webrtc ep_embedded_hyperlinks2 +npm install --no-save --legacy-peer-deps ep_adminpads2 ep_align ep_author_hover ep_delete_empty_pads ep_font_color ep_font_size ep_headings2 ep_spellcheck ep_table_of_contents ``` +Sous réserve de mise àjour : ep_delete_after_delay + +### Ajout export ODF + +La FAQ officielle indique comment faire : https://github.com/ether/etherpad-lite/wiki/How-to-enable-importing-and-exporting-different-file-formats-with-AbiWord + +Installer LibreOffice de façon non grahique : +``` +apt install libreoffice-nogui +``` + +Configurer dans /var/www/pad.libre-service.eu/settings.json : +``` +"soffice" : "/usr/bin/soffice" +``` + + # Mise à jour Documentation: ```