|
|
# Installation de LibreOffice Online sur Ubuntu
|
|
|
|
|
|
Pour pouvoir activer l'édition collaborative dans Owncloud,
|
|
|
il faut un serveur LibreOffice Online.
|
|
|
|
|
|
Comme LibreOffice Online n'est pas disponible dans les dépôts d'Ubuntu,
|
|
|
on va utiliser ceux de Collabora.
|
|
|
On les ajoute donc à la fin du fichier `/etc/apt/sources.list` :
|
|
|
|
|
|
```apt
|
|
|
deb https://collaboraoffice.com/repos/CollaboraOnline/CODE ./ #LibreOffice Online
|
|
|
```
|
|
|
|
|
|
On installe ensuite le démon de LibreOffice Online :
|
|
|
|
|
|
```bash
|
|
|
sudo apt update
|
|
|
sudo apt install loolwsd
|
|
|
```
|
|
|
|
|
|
**Attention** : Ce paquet ne fonctionne pas sous Ubuntu 14.04.
|
|
|
|
|
|
On désactive SSL dans la configuration de loolwsd
|
|
|
parce qu'on va utiliser un reverse proxy Apache pour ça.
|
|
|
|
|
|
```xml
|
|
|
<ssl desc="SSL settings">
|
|
|
<enable type="bool" default="true">false</enable>
|
|
|
<termination type="bool" default="true">true</termination>
|
|
|
...
|
|
|
</ssl>
|
|
|
```
|
|
|
|
|
|
Pour mettre en place le reverse proxy
|
|
|
on crée le fichier `/etc/apache2/sites-available/office.conf` :
|
|
|
|
|
|
```apache
|
|
|
<VirtualHost *:80>
|
|
|
ServerName office.example.com
|
|
|
|
|
|
AllowEncodedSlashes NoDecode
|
|
|
|
|
|
ProxyPreserveHost On
|
|
|
|
|
|
ProxyPass /loleaflet http://localhost:9980/loleaflet
|
|
|
ProxyPassReverse /loleaflet http://localhost:9980/loleaflet
|
|
|
|
|
|
ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery
|
|
|
ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery
|
|
|
|
|
|
ProxyPassMatch "/lool/(.*)/ws$" ws://127.0.0.1:9980/lool/$1/ws nocanon
|
|
|
|
|
|
ProxyPass /lool/adminws ws://127.0.0.1:9980/lool/adminws
|
|
|
|
|
|
ProxyPass /lool http://127.0.0.1:9980/lool
|
|
|
ProxyPassReverse /lool http://127.0.0.1:9980/lool
|
|
|
</VirtualHost>
|
|
|
```
|
|
|
|
|
|
On active ensuite le nouvel hôte :
|
|
|
|
|
|
```bash
|
|
|
sudo a2ensite office
|
|
|
sudo service apache2 reload
|
|
|
```
|
|
|
|
|
|
Il ne reste plus qu'à redémarrer loolwsd :
|
|
|
|
|
|
```bash
|
|
|
sudo service loolwsd restart
|
|
|
``` |