ok, awesome! Seemed like the glue was in the https and IP, but I wasn’t sure. I launched the collabora docker, however, I seem to be having issues integrating.
At this point, I have the following site setup in the reverse proxy for the nextcloud site (https://cloud.example.com/nextcloud):
server {
listen 80;
server_name cloud.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
include snippets/ssl-example.com.conf;
include snippets/ssl-params.conf;
root /var/www/html;
server_name cloud.example.com;
location / {
proxy_pass http://<lxd_nextcloud_server_ip>:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
and the following for the collabora docker:
server {
listen 443 ssl;
server_name office.example.com;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/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;
}
# 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;
}
}
I launched the docker with the following command:
sudo docker run -t -d -p 127.0.0.1:9980:9980 -e “domain=cloud\.example\.com” --restart always --cap-add MKNOD collabora/code
I am able to get the nginx default page at the url for the collabora docker and the xml at the hosting/discovery. I added the url that is forward to the collabora docker (like https://cloud.example.com) to the ‘Collabora Online’ app in Nextcloud. However, when I open a document I just get a blank page in Nextcloud.
I don’t get any error message in the Nextcloud interface and the docker logs are clear, so it seems like I’m missing a piece to connect the two containers. I’m not sure what I’m missing though. Do you notice anything wrong with the proxy config? Are there other logs that I can post here that might be helpful? Thank you!