Mise à jour de 'services/pad.libre-service.eu.md'
This commit is contained in:
parent
c99dd1a0dc
commit
f47333563a
1 changed files with 65 additions and 4 deletions
|
@ -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
|
||||
|
||||
<Location />
|
||||
ProxyPass http://localhost:9001/ retry=0 timeout=30
|
||||
ProxyPassReverse http://localhost:9001/
|
||||
</Location>
|
||||
<Location /socket.io>
|
||||
# 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
|
||||
</Location>
|
||||
|
||||
<Proxy *>
|
||||
Options FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Order allow,deny
|
||||
allow from all
|
||||
</Proxy>
|
||||
```
|
||||
|
||||
|
||||
## 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:
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue