Projet

Général

Profil

Actions

Collabora

collabora.aquilenet.fr (CNAME palamede.aquilenet.fr)

Édition de documents dans Nextcloud

Installation

https://www.collaboraoffice.com/code/linux-packages/

cd /usr/share/keyrings
sudo wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
  • /etc/apt/sources.list.d/collaboraonline.sources
Types: deb
URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb
Suites: ./
Signed-By: /usr/share/keyrings/collaboraonline-release-keyring.gpg
apt update && apt install coolwsd code-brand

Configuration Nginx

  • /etc/nginx/sites-enabled/collabora.aquilenet.fr
server {
 listen       443 ssl;
 server_name  collabora.aquilenet.fr;

 ssl_certificate /etc/letsencrypt/live/collabora.aquilenet.fr/fullchain.pem;
 ssl_certificate_key /etc/letsencrypt/live/collabora.aquilenet.fr/privkey.pem;

 # static files
 location ^~ /browser {
   proxy_pass http://127.0.0.1:9980;
   proxy_set_header Host $http_host;
 }
 # WOPI discovery URL
 location ^~ /hosting/discovery {
   proxy_pass http://127.0.0.1:9980;
   proxy_set_header Host $http_host;
 }
 # Capabilities
 location ^~ /hosting/capabilities {
   proxy_pass http://127.0.0.1:9980;
   proxy_set_header Host $http_host;
 }
 # main websocket
 location ~ ^/cool/(.*)/ws$ {
   proxy_pass http://127.0.0.1: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://127.0.0.1:9980;
   proxy_set_header Host $http_host;
 }
 # Admin Console websocket
 location ^~ /cool/adminws {
   proxy_pass http://127.0.0.1:9980;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "Upgrade";
   proxy_set_header Host $http_host;
   proxy_read_timeout 36000s;
 }
}

## Conf Collabora

  • ssl derrière proxy
coolconfig set ssl.enable false
coolconfig set ssl.termination true
coolconfig set-admin-password
systemctl restart coolwsd
  • authorisation de plusieurs Nextclouds
                        <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">
            <!-- More "group"s possible here -->
                                <group><host allow="true">https://cloud.aquilenet.fr</host></group>
                                <group><host allow="true">https://cloud.pl4tform.org</host></group>

                        </alias_groups>

Config Nextcloud

Ajouter le module "Office Online integration" et le configurer avec l'adresse "https://collabora.aquilenet.fr"

Admin

mdp admin dans le coffre

https://collabora.aquilenet.fr/browser/dist/admin/admin.html

Mis à jour par sacha il y a 7 mois · 1 révisions