Important changes regarding Collabora COOL/CODE 26.04

Pease be aware of changes coming with latest COOL/CODE 26.04. version.

The websocket used by the system changes to more compact format which might require reverse proxy configuration changes - see details COOL/CODE reverse proxy settings

old url new URL
/cool/(.*)/ws /cool/ws/

basically the part between /cool/and /wsdisappears

Apache config
 # Main websocket (legacy URL, with the document path encoded into it)
 ProxyPassMatch      "/cool/(.*)/ws$"      wss://127.0.0.1:9980/cool/$1/ws nocanon

 # Main websocket (compact URL, used since 26.04, with the document passed via the WOPISrc query parameter)
 ProxyPass           /cool/ws wss://127.0.0.1:9980/cool/ws nocanon
NGINX config
 # main websocket, download, presentation (legacy svg) and image upload
 location ^~ /cool/ {
   proxy_pass http://127.0.0.1:9980;
   proxy_http_version 1.1;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "Upgrade";
   proxy_set_header Host $host;
   proxy_read_timeout 36000s;
 }
}

In case new compact websocket fails the system is expected to fail bacK to legacy variant and show a warning - but at some point the failback might be removed.

4 Likes