No documents are shown after upgrading to loolwsd 4.0

I have managed to get the whole thing working.

I was accessing nextcloud through a non-standard port (set on my router), after switching to a standard 443 port, everything works again.

I found out by accident when I was renewing my certificates. It is weird though, as everything used to work just fine on the non-standard port before.