====== Installation Collabora Online Development Edition ======
Nous récupérons la clé publique du dépôt
cd /usr/share/keyrings
sudo wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
Nous ajoutons le dépôt
echo 'deb [signed-by=/usr/share/keyrings/collaboraonline-release-keyring.gpg] https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian11 ./' | sudo tee /etc/apt/sources.list.d/code.list > /dev/null
Nous installons Collabora et le dictionnaire français
sudo aptitude update && sudo aptitude install apt install coolwsd code-brand hunspell-fr
===== Nginx =====
Nous installons Nginx
sudo apt install nginx
Nous configurons le vHost
sudo vi /etc/nginx/sites-available/collabora.grohub.org
server {
listen 80;
server_name collabora.grohub.org;
# enforce https
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name collabora.grohub.org;
# Logs
access_log /var/log/nginx/collabora.collabora.grohub.org.access.log;
error_log /var/log/nginx/collabora.collabora.grohub.org.error.log;
# Use Mozilla's guidelines for SSL/TLS settings
# https://mozilla.github.io/server-side-tls/ssl-config-generator/
# NOTE: some settings below might be redundant
ssl_certificate /etc/ssl/certs/cloud.collabora.grohub.org.pem;
ssl_certificate_key /etc/ssl/private/cloud.collabora.grohub.org.key;
ssl_protocols TLSv1.2;
# 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;
}
}
FIXME À suivre.
===== Liens =====
* [[https://www.collaboraoffice.com/code/linux-packages/|Setting up and configuring native CODE packages on Linux]]