Collabora / NC / NGINX / Ubuntu - grey screen while opening docs

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;
}

}

Is this server specification correct?
In the “Collabora Online” item in the management of Nextcloud, even if you don’t change anything, can you connect by pressing the Apply button again? *The server designation here is “office.domain.tld”.

Hi, now configured to office.domain.tld (docker restarted). In NC in the app there’s cloud.domain.tld. Same problem :frowning:

You are under a proxy?

Hi …
private system at home. But NGINX uses proxy 'cause other systems are in my network …
There’s a gateway.conf defined.

Have you checked the log?

Hello,

#Edit host traffic local.
#Add host nextclouddomain or collaboradomain
nano /etc/hosts

127.0.0.1 XXX XXX XXX domainenextcloud.com collaboradomain.com

and

semanage port --add --type http_port_t --proto tcp 9980

Link : Install Nginx + Nextcloud 12 + Php-Fpm + MariaDB 10 + Collabora Online on Centos 7

Hello!

127.0.0.1 XXX XXX XXX domainenextcloud.com collaboradomain.com

I’m running collabora and NC without domain and without SSL (only HTTP).

NC: http://192.168.52.146/nextcloud
Collabora: http://192.168.52.146:9980 (returning OK)

But same exception as reported @kangaroo72