From 6e95427ecea21a47b8a888e1d137d36557086e77 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Tue, 23 Aug 2022 14:47:47 +0200 Subject: [PATCH] ajout VHost pour Apache --- HowtoCollaboraCode.md | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/HowtoCollaboraCode.md b/HowtoCollaboraCode.md index a5191437..80047cc0 100644 --- a/HowtoCollaboraCode.md +++ b/HowtoCollaboraCode.md @@ -42,8 +42,6 @@ Une fois installé, vous devrez d'abord configurer les "SSL settings" soit en g ├─ 4150 /usr/bin/coolforkit --losubpath=lo --systemplate=/opt/cool/systemplate --lotemplate=/opt/collaboraoffice --childroot=/opt/cool/child-roots/ --clientport=9980 --masterport=coolwsd-9PINiUpT --rlimits=limit_virt_mem_mb:0;li ├─13273 /usr/bin/coolforkit --losubpath=lo --systemplate=/opt/cool/systemplate --lotemplate=/opt/collaboraoffice --childroot=/opt/cool/child-roots/ --clientport=9980 --masterport=coolwsd-9PINiUpT --rlimits=limit_virt_mem_mb:0;li └─18537 /usr/bin/coolforkit --losubpath=lo --systemplate=/opt/cool/systemplate --lotemplate=/opt/collaboraoffice --childroot=/opt/cool/child-roots/ --clientport=9980 --masterport=coolwsd-9PINiUpT --rlimits=limit_virt_mem_mb:0;li - - ~~~ Pour les versions de Debian antérieures à Debian 10, tout est expliqué sur [leur site](https://www.collaboraoffice.com/code/linux-packages/) @@ -141,6 +139,46 @@ server { } ~~~ +Avec [Apache](HowtoApache) voici un exemple de VirtualHost : + +~~~ + + ServerName collabora.example.com:443 + ServerAlias collabora.example.com + #ServerAlias office.france-palestine.org + + # SSL + IncludeOptional /etc/apache2/ssl/collabora.con[f] + + # Encoded slashes need to be allowed + AllowEncodedSlashes NoDecode + + ProxyPreserveHost On + + # static html, js, images, etc. served from loolwsd + # loleaflet is the client part of LibreOffice Online + ProxyPass /loleaflet http://127.0.0.1:9980/loleaflet retry=0 + ProxyPassReverse /loleaflet http://127.0.0.1:9980/loleaflet + + # WOPI discovery URL + ProxyPass /hosting/discovery http://127.0.0.1:9980/hosting/discovery retry=0 + ProxyPassReverse /hosting/discovery http://127.0.0.1:9980/hosting/discovery + + # Main websocket + ProxyPassMatch "/lool/(.*)/ws$" ws://127.0.0.1:9980/lool/$1/ws nocanon + + # Admin Console websocket + ProxyPass /lool/adminws ws://127.0.0.1:9980/lool/adminws + + # Download as, Fullscreen presentation and Image upload operations + ProxyPass /lool http://127.0.0.1:9980/lool + ProxyPassReverse /lool http://127.0.0.1:9980/lool + + # Endpoint with information about availability of various features + ProxyPass /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities retry=0 + ProxyPassReverse /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities + +~~~ ## Utilisation