Ceci est une ancienne révision du document !
Collabora online
Tester dans DEBIAN BUSTER !
Installation
On installe directement CODE, version compiler de Libre Office Online.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D sudo echo 'deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian10 ./' >> /etc/apt/sources.list sudo apt update sudo apt install loolwsd code-brand
On mets la langues française:
sudo apt install hunspell locales-all hunspell-fr
Configuration
On édit le fichier .XML:
sudo nano /etc/loolwsd/loolwsd.xml
On change quelques paramètres.
Dans : <storage desc=“Backend storage”>
desc="Regex pattern of hostname to allow or deny." allow="true">nextcloud\.example\.com</host>
On mets des liens au Certificats car il faut qu'il soit accessible à l'user “lool”:
cp /etc/letsencrypt/live/office.example.com/cert.pem /etc/loolwsd/cert.pem cp /etc/letsencrypt/live/office.example.com/privkey.pem /etc/loolwsd/key.pem cp /etc/letsencrypt/live/office.example.com/chain.pem /etc/loolwsd/ca-chain.cert.pem chown lool /etc/loolwsd/cert.pem chown lool /etc/loolwsd/key.pem chown lool /etc/loolwsd/ca-chain.cert.pem systemctl restart loolwsd.service
Votre installation est accessible à https://office.example.com:9980
nginx
Si on veut qu'il soit accessible depuis le port 443:
server { listen 443 ssl; server_name office.example.com; ssl_certificate /path/to/ssl_certificate; ssl_certificate_key /path/to/ssl_certificate_key; # static files location ^~ /loleaflet { proxy_pass https://localhost:9980; proxy_set_header Host $http_host; } # WOPI discovery URL location ^~ /hosting/discovery { proxy_pass https://localhost:9980; proxy_set_header Host $http_host; } # Capabilities location ^~ /hosting/capabilities { proxy_pass https://localhost:9980; proxy_set_header Host $http_host; } # main websocket location ~ ^/lool/(.*)/ws$ { proxy_pass https://localhost:9980; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $http_host; proxy_read_timeout 36000s; } # download, presentation and image upload location ~ ^/lool { proxy_pass https://localhost:9980; proxy_set_header Host $http_host; } # Admin Console websocket location ^~ /lool/adminws { proxy_pass https://localhost:9980; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $http_host; proxy_read_timeout 36000s; } }