Hi all,
I’m hard working on getting collabora in NC to run …
Here my setup …
Ubuntu 16.04 (4.4.0-103) / NGINX 1.13.4 / PHP 7.0.26 / MySQL 5.6.28 / NC 12.0.3.
When I try to open an office-doc in NC, the toolbox from office is coming and a grey screen instead the document.
I’ve started docker with …
docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=cloud\\.domain\\.tld' --restart always --cap-add MKNOD collabora/code
I have a gateway.conf with the following part for office.domain.tld
server {
listen 80;
server_name office.domain.tld;
charset utf-8;
root /usr/share/nginx/office;
location ^~ /.well-known/acme-challenge {
proxy_pass http://127.0.0.1:89;
proxy_redirect off;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
server_name office.domain.tld;
charset utf-8;
include /etc/nginx/ssl.conf;
location ^~ / {
client_max_body_size 1024M;
proxy_max_temp_file_size 1024M;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:89;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_redirect off;
proxy_buffering off;
proxy_request_buffering off;
}
}
and the office.domain.tld vhost like this …
server {
listen 127.0.0.1:89;
server_name office.domain.tld;
# 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;
}
# 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;
}
# 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;
}
# download, presentation and image upload
location ^~ /lool {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
}