Table des matières

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 http://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian11 ./' >> /etc/apt/sources.list
sudo apt update
sudo apt install coolwsd 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/coolwsd/coolwsd.xml

On change quelques paramètres.

On utlise un proxy pour les Certificats :

Dans coolwsd.xml, il faut changer: ssl.enable=false et ssl.termination=true

Dans : <storage desc=“Backend storage”>

<storage desc="Backend storage">
                <filesystem allow="true"/>
                <wopi allow="true" desc="Allow/deny wopi storage.">
                        <max_file_size desc="Maximum document size in bytes to load. 0 for unlimited." type="uint">0</max_file_size>
                        <locking desc="Locking settings">
                                <refresh default="900" desc="How frequently we should re-acquire a lock with the storage server, in seconds (default 15 mins) or 0 for no refresh" type="int">900</refresh>
                        </locking>
                        <alias_groups desc="default mode is 'first' it allows only the first host when groups are not defined. set mode to 'groups' and define group to allow multiple host and its aliases" mode="groups">
                                <!-- If you need to use multiple wopi hosts, please change the mode to "groups" and
                    add the hosts below.  If one host is accessible under multiple ip addresses
                    or names, add them as aliases. -->
                                <group>
                                        <host allow="true" desc="hostname to allow or deny.">https://soute.numenaute.org</host>
                                        <alias desc="regex pattern of aliasname">https://cloud.numenaute.org/</alias>
                                        <alias desc="regex pattern of aliasname"/>
                                </group>
                                <!-- More "group"s possible here -->
                        </alias_groups>
                        <host>kloud.khaganat.net</host>
                </wopi>
systemctl restart coolwsd.service

nginx

On utilise un conteneur proxy Nginx:

server {
 listen       10.0.0.10:80;
 server_name  office.numenaute.org;
 
 return      301 https://office.numenaute.org$request_uri;
 
}
 
server {
 listen       10.0.0.10:443 ssl;
 server_name  office.numenaute.org;
 
 ssl_certificate "/etc/letsencrypt/live/office.numenaute.org/fullchain.pem";
 ssl_certificate_key "/etc/letsencrypt/live/office.numenaute.org/privkey.pem";
 
 
 # static files
 location ^~ /browser {
   proxy_pass http://10.0.0.28:9980;
   proxy_set_header Host $http_host;
 }
 
 # WOPI discovery URL
 location ^~ /hosting/discovery {
   proxy_pass http://10.0.0.28:9980;
   proxy_set_header Host $http_host;
 }
 
 # Capabilities
 location ^~ /hosting/capabilities {
   proxy_pass http://10.0.0.28:9980;
   proxy_set_header Host $http_host;
 }
 
 # main websocket
 location ~ ^/cool/(.*)/ws$ {
   proxy_pass http://10.0.0.28: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 ~ ^/(c|l)ool {
   proxy_pass http://10.0.0.28:9980;
   proxy_set_header Host $http_host;
 }
 
 # Admin Console websocket
 location ^~ /cool/adminws {
   proxy_pass http://1O.O.O.28:9980;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "Upgrade";
   proxy_set_header Host $http_host;
   proxy_read_timeout 36000s;
 }
 
}