Original from https://github.com/CollaboraOnline/Docker-CODE Made some changes to be able to us it in with PLESK
- install docker image bluedart/collabora
- set DOMAIN to your nexcloud domain. Collabora is ownly allowed to be used by this domain.
- create a subdomain like "collabora.yourdomain.com"
- Install letscrypt for the domain
- Install Collabora app in Nextcloud which is under Productivity
- Set your Collabora in Nextcloud via Admin -> Additional Settings -> Collabora Host = https://collabora.yourdomain.com
- Add rewrite and Proxy rules for "collabora.yourdomain.com" like shown below. just copy and paste ;)
- If you want to use the admin interface you have to set the variable PASSWORD and USERNAME for the docker image
- Have fun ;)
Additional settings for rerouting http to https:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
Additional settings for apache2 https :
# Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode
# Container uses a unique non-signed certificate
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
# keep the host
ProxyPreserveHost On
# static html, js, images, etc. served from loolwsd
# loleaflet is the client part of LibreOffice Online
ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0
ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet
# WOPI discovery URL
ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery
# Main websocket
ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon
# Admin Console websocket
ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws
# Download as, Fullscreen presentation and Image upload operations
ProxyPass /lool https://127.0.0.1:9980/lool
ProxyPassReverse /lool https://127.0.0.1:9980/lool