this is the problem you want to solve first.
Please don’t mix different topics and configs! nginx config for Collabora like mentioned here is for dedicated CODE server this is not intended for collabora-built-in
Missing public hostname in /hosting/discovery, documents don’t load - #4 by wwe has many references maybe you find working config there and once you have access review the XML document reflects correct public URL! then office should start work.