Nextcloud office OK on local network but fails to load with public IP and apache proxy

the problem is most lekely related to the fact you are using IP adddress and plain http without TLS. both are not supported. Please review Collabora integration guide