Hallo zusammen,
ich hab das Problem jetzt so gelöst, dass ich Collabora-CODE als eigenständigen Container aufgesetzt habe.
Das ist meine docker-compose.yml
:
version: '2.2'
services:
collabora:
image: collabora/code
ports:
- 127.0.0.1:9980:9980
cap_add:
- MKNOD
environment:
- domain=nextcloud.staufer-gymnasium.de
- VIRTUAL_HOST=office.staufer-gymnasium.de
- VIRTUAL_NETWORK=proxy-ssl
- VIRTUAL_PORT=9980
- VIRTUAL_PROTO=https
Und das ist `office.staufer-gymnasium.de` für den Proxy nginx:
server {
listen 80;
listen [::]:80;
server_name office.staufer-gymnasium.de;
location ^~ /.well-known/acme-challenge {
alias /var/www/dehydrated;
}
}
server {
listen 443 ssl;
server_name office.staufer-gymnasium.de;
add_header X-XSS-Protection "1; mode=block"; #Wenn es nicht geht, notfalls deaktivieren
ssl_certificate /var/lib/dehydrated/certs/office.staufer-gymnasium.de/fullchain.pem;
ssl_certificate_key /var/lib/dehydrated/certs/office.staufer-gymnasium.de/privkey.pem;
# static files
location ^~ /loleaflet {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# Capabilities
location ^~ /hosting/capabilities {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# main websocket
location ~ ^/lool/(.*)/ws$ {
proxy_pass https://localhost: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 ~ ^/lool {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# Admin Console websocket
location ^~ /lool/adminws {
proxy_pass https://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
}
Ich frag mich nur, warum ich das nicht früher gemacht habe. Im eigenen Container ist das Collabore gefühlt doppelt so schnell, wie die interne Nextcloud-Version, als sie noch funktioniert hat. Und das, obwohl sie auf der gleichen Maschiene läuft.
Vielleicht, liegt’s aber auch daran, dass die neue Version einfach schneller ist.
Gruß,
Mathias