Nextcloud office could not establish the connection

The Basics

  • Nextcloud Server version
    [Nextcloud Hub 9] (30.0.1

  • Reverse proxy and version

    • caddy
  • When did this problem seem to first start?

    • since installation
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)

    • AIO
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)

    • Cloudflare

Summary of the issue you are facing:

After a clean install of AIO Nextcloud with Office package im getting this message in Settings/Office

Failed to connect to the remote server: Client error: GET https://<Mydomain ltd>/custom_apps/richdocumentscode/proxy.php?req=/hosting/discovery resulted in a 403 Forbidden response: Just a moment…<meta http-equiv=“Content-Type” content="text/htm (truncated…)

I have tried to use the CODE - collab online developer edition and the same issue.

Tried to modify WOPI allow list to 0.0.0.0 and the same issue even I have added my router address.
docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:app:set richdocuments wopi_allowlist --value=“::/0”

*** Additional info
/status.php
{“installed”:true,“maintenance”:false,“needsDbUpgrade”:false,“version”:“30.0.1.2”,“versionstring”:“30.0.1”,“edition”:“”,“productname”:“Nextcloud”,“extendedSupport”:false}

https:///hosting/discovery

Hi, can you follow How to debug problems with Collabora and/or Talk · nextcloud/all-in-one · Discussion #1358 · GitHub?

Hi, Yes, I have followed and the same issue…

Nextcloud is behind the Cloudflare DNS but its not using the Cloudflare tunnel… Just simple DNS registrar and DNS protection.

As I have mentioend I have tried to set wopi to 0.0.0.0/0 and the same. also tried to add the whole cloudflare IP range and the same .