Office online server with nextcloud

I need to be able to run my office online serer with http from nexcloud which is with https.
I have my nexcloud server with https publicly, my MSOffi server. on the LAN network. If I use nexcloud with http://nexcloud… office online works fine, but if I use it with https:// I have the following error.
ixed Content: The page at ‘https://172.17.87.249/index.php/apps/files/files/2363159?dir=/&openfile=true’ was loaded over HTTPS, but requested an insecure form action ‘http://172.17.87.172/x/_layouts/xlviewerinternal.aspx?edit=1&ui=es-ES&WOPISrc=https%3A%2F%2F172.17.87.249%2Findex.php%2Fapps%2Fofficeonline%2Fwopi%2Ffiles%2F2363159_ocfydgh24gg3&title=Nueva%20Hoja%20de%20cálculo%20(1).xlsx&lang=es&closebutton=1&revisionhistory=1’. This request has been blocked; the content must be served over HTTPS.

If by Office Online server you mean your own instance of Collabora CODE Office, what stops you from putting an nginx reverse proxy in front of the CODE http server, terminate TLS at the NGINX and configure it with self-signed certificates (or skip the nginx part and add the certificates directly to the Collabora CODE service itself?)

I would not go for plain http in 2024, maybe it was OK in our wild days in the 90s or 00s, but nowadays?

The office server is Microsoft Office Online Server and it is located on a LAN IP, this is only with http since it is a LAN IP and not a WAN IP for https. My nexcloud service is on a public IP therefore it has a domain and https is implemented. What I need is how can I communicate my WAN IP with my MS office server WOPI service that is on the LAN

The integration of all Office products works in a same way, you may consult Collabora integration guide (and follow references provided there) but basics remain the same - you must use same protocol for NC and office - https:// is recommended

I need to be able to run my office online server with http from nexcloud which is with https.
I have my nexcloud server with https publicly, my MSOffic server. https://serveroffic…/hosting/discovery. If I use nexcloud with office online works fine , but MSword don’t paste picture

Failed to load resource: the server responded with a status of 412 (Precondition failed)
index.js:314 OC.requestToken changed CeN45S0tr1LdGliAN42MYcu+Z4c9cnv90pjaTd5E+B4=:Wqs+lFV33QC3Xx6vD8zuM4DuCL8PATKVvPqDe7sXlmg=
a and power point
image

says error id: with sesion :…MicrosoftAjax.js?bn=424302413:5
POST https://serverofficeuchile.cl/p/ppt/view.svc/jsonAnonymous/GetFullSizePreview 404 (Not Found)

likely this will not work at all… and you definitely don’t want to expose your office server to the internet using http://

I recommend to consult M$ support to resolve office online server errors.

Have you test in config.php:
'overwriteprotocol' => 'https',

Maybe it forces Nextcloud to use HTTPS instead of HTTP.

If you absolutely have to use HTTP: Ask yourself whether this will still be standard for Microsoft products in 2024. Tell us what is stopping you from using HTTPS.