Page misformed, when accessing using https and reverse proxy nginx

Hi,

Has anyone an idea what can cause this?
using http is working fine when setting up reverse proxy to nextcloud the page looks like this.