Collabora Office no connection possible

Hello there,
I don’t know what I’m doing wrong…
I use NGINX
I installed docker and pulled the collabora docker container as followed.

docker pull collabora/code

setup the reverse proxy (https://icewind.nl/entry/collabora-online)
And installed let’s encrypt certificates.

This is my office.domain.com.conf nginx config

server {

server_name  office.domain.com;

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

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

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/office.domain.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/office.domain.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


add_header Strict-Transport-Security "max-age=31536000" always; # managed by Certbot


ssl_trusted_certificate /etc/letsencrypt/live/office.domain.com/chain.pem; # managed by Certbot
ssl_stapling on; # managed by Certbot
ssl_stapling_verify on; # managed by Certbot

}

On nextcloud I installed the app and set the WOPI client to office.domain.com.
When I want to open a document a new one or an existing one the notification says ’
Failed to load Collabora Online - please try again later’
What am I doing wrong?

Thank you for any help.

Look in your logs what is going wrong. Logs from apache, nextcloud, collabora and the web console of your browser.
Also verify collabora is running (try to visit https://localhost:9980/loleaflet/dist/admin/admin.html).

https://office.domain.com/loleaflet/dist/admin/admin.html is working and I can successfully login.

I get this error in the nextcloud log when trying to load a document.

Error: GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self signed certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Edit:
Docker and Nextcloud are on the same server.
Do I have to edit the loolwsd.xml file?

Okay I solved it after another couple of hours trying to figure out what the problem is.

TLDR: Had to adjust my DNS settings on the server. There were 2 DNS servers on there, one my firewall and the other was a public DNS. The server somehow just pulled from the public one. Deleted the public one and now it’s working just fine.