Collabora does not work behind reverse proxy

Hello dear community,
I currently have a small problem with Collabora or I can’t find my error.

I have a newly set up Nextcloud instance (everything worked here without any errors).
This has now been refined a little using a custom theme and connected to the Internet via Nginx reverse proxy manager. I also had some initial complications here, but I was able to resolve them relatively quickly. (I followed these instructions: https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/reverse_proxy_configuration.html → I had to set overwrite.cli.url and overwriteprotocol here).

Since then the cloud has been running quite well. It also passed the test run.

But now that other friends/acquaintances also want to use the cloud (and Office here too), Nextcloud Office was the obvious choice. (In this case with the Build-In CODE Server)

My Probelem:
The server is accessible purely via https, but the CODE server always wants to use http://[SERVER_URL]. This of course leads to a security warning in the client browser (which is good) and if the client “clicks away” this warning, my reverse proxy rejects the http request.
Unfortunately, after a long search I couldn’t find anything that exactly applies to my problem, so I opened a new topic here. I have not found anything about whether it is possible to change the settings so that it uses https://? etc.

Thank you very much for your help

About my setup:
Proxmox Server contains 2 VM´s → one is the reverse proxy and one is the cloud-server
All VM´s are on a seperate 192.168.200.0/24 Network.

On the Reverse Proxy is Nginx Proxy Manager (NPM) installed.
IP of the Proxy: 192.168.200.6
(Sadly the forum dont let me post more than 2 pic´s in my first thread so i have to text out my npm config)

Under “Details”:
Domain-Names: [domain_to_my_nextcloud.de]
Scheme: http
Forward Hostname/IP: 192.168.200.108
Forward Port: 80
Cache Assets: No
Block Common Exploits: Yes
Websockets Support: Yes
Publicly Accessible

Under “Custom Locations”:
Location “/”: http - 192.168.200.108 - 80
Location “/.well-known/caldav”: http - 192.168.200.108/remote.php/dav - 80
Location “/.well-known/carddav”: http - 192.168.200.108/remote.php/dav - 80

For all Locations i have following additional headers configured:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;

Under “SSL”:
SSL-Certificate → [domain-name] (it´s a Let´s Encrypt Cert Autogenerated)
Force-SSL: yes
HTTP/2 Support: yes
HSTS Enabled: yes
HSTS Subdomains: no (because i have no subdomains)

Under “Advanced” there are some timeout parameters like “proxy_connect_timeout” etc. but they are not intressting.

Setup of the Cloud-Server:
Ubuntu 22.04 Container
IP: 192.168.200.108
Apache2 Webserver
Nextcloud install located in /var/www/html/nextcloud

The Apache2 Webserver Root is the same directory. Also the Apache2 Server only listens on Port 80 because the Reverse-Proxy handles all the SSL-Stuff

My Config-File:

$CONFIG = array (
  'instanceid' => '[ID]',
  'passwordsalt' => '[XY]',
  'secret' => '[XYZ]',
  'trusted_domains' =>
  array (
    0 => '192.168.200.108',
    1 => 'domain_to_my_nextcloud.de',
  ),
  'trusted_proxies' =>
  array (
    0 => '192.168.200.6',
  ),
  'datadirectory' => '/nextcloud_mount/data',
  'dbtype' => 'mysql',
  'version' => '28.0.3.2',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://domain_to_my_nextcloud.de',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '[USERNAME]',
  'dbpassword' => '[PASSWORD]',
  'installed' => true,
  'defaultapp' => 'dashboard',
  'theme' => '[CUSTOM_THEME_NAME]',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '[some_name]',
  'mail_smtpauth' => 1,
  'mail_domain' => '[some_email_domain]',
  'mail_smtpname' => '[Some_email]',
  'mail_smtppassword' => '[Some_email_password]',
  'mail_smtphost' => '[some_email_hostserver]',
  'mail_smtpport' => '[port]',
  'maintenance' => false,
  'maintenance_window_start' => 1,
  'loglevel' => 2,
  'simpleSignUpLink.shown' => false,
  'default_language' => 'de',
  'default_locale' => 'de',
  'default_timezone' => 'Europe/Berlin',
  'templatedirectory' => '',
  'default_phone_region' => 'DE',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
    'dbindex' => 0,
    'timeout' => 1.5,
    'read_timeout' => 1.5,
    ),
  'updater.secret' => '[xy]',
);


1 Like

If Nextcloud Office was configured prior to using your reverse proxy where your HTTPS terminates it may have auto-configured itself based on those (pre-HTTPS) parameters at the time.

To trigger reconfiguration, try going to Nextcloud Office (under Admin settings) and choosing something other than your Built-in CODE. Then switch it back to the built-in CODE.

If it still appears broken:

  • Show browser console Network output to find the first HTTP transaction
  • Insert the output of ./occ config:list richdocuments (or equivalent adapted for your runtime environment).

Hello, I still have this issue…

I have NC 31 on Armbian 25.2.2 noble (Ubuntu 24.04)

Installed collabora following instructions from nextcloud website.

Readed this and also this other thread:
https://github.com/nextcloud/all-in-one/discussions/1358

But nothing helped

./occ config:list richdocuments returns

{
    "apps": {
        "richdocuments": {
            "doc_format": "ooxml",
            "wopi_allowlist": "127.0.0.1, 45.151.88.100",
            "types": "prevent_group_restriction",
            "enabled": "yes",
            "canonical_webroot": "",
            "installed_version": "8.6.2",
            "external_apps": "",
            "wopi_url": "https:\/\/vegani.me",
            "disable_certificate_verification": "",
            "public_wopi_url": "https:\/\/vegani.me"
        }
    }
}

curl -vvv https://vegani.me:443/hosting/discovery returns

* Host vegani.me:443 was resolved.
* IPv6: (none)
* IPv4: 45.151.88.100
*   Trying 45.151.88.100:443...
* Connected to vegani.me (45.151.88.100) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: CN=files.vegani.me
*  start date: Feb 27 18:51:06 2025 GMT
*  expire date: May 28 18:51:05 2025 GMT
*  subjectAltName: host "vegani.me" matched cert's "vegani.me"
*  issuer: C=US; O=Let's Encrypt; CN=R11
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
* using HTTP/1.x
> GET /hosting/discovery HTTP/1.1
> Host: vegani.me
> User-Agent: curl/8.5.0
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/1.1 200 OK
< Server: nginx
< Date: Sun, 09 Mar 2025 14:08:02 GMT
< Content-Type: text/xml
< Content-Length: 31725
< Connection: keep-alive
< Last-Modified: Sun, 09 Mar 2025 14:08:02
< X-Content-Type-Options: nosniff
< Strict-Transport-Security: max-age=15768000; includeSubDomains
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< X-Robots-Tag: noindex, nofollow
< X-Download-Options: noopen
< X-Permitted-Cross-Domain-Policies: none
< Referrer-Policy: no-referrer
< 
<wopi-discovery>
    <net-zone name="external-http">

        <!-- Writer documents -->
        <app favIconUrl="https://vegani.me/browser/3dc280be53/images/x-office-document.svg" name="writer">
            <action default="true" ext="sxw" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="odt" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="fodt" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- Text template documents -->
            <action default="true" ext="stw" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="ott" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- MS Word -->
            <action default="true" ext="doc" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="dot" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- OOXML wordprocessing -->
            <action default="true" ext="docx" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="docm" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="dotx" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="dotm" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- Others -->
            <action default="true" ext="wpd" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="pdb" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="hwp" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="wps" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="wri" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="lrf" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="mw" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="rtf" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="txt" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="fb2" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="cwk" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="pages" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="abw" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="602" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <app name="writer-global">
            <!-- Text master documents -->
            <action default="true" ext="sxg" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="odm" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- Writer master document templates -->
            <action default="true" ext="otm" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <app name="writer-web">
            <action default="true" ext="oth" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Calc documents -->
        <app favIconUrl="https://vegani.me/browser/3dc280be53/images/x-office-spreadsheet.svg" name="calc">
            <action default="true" ext="sxc" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="ods" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="fods" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- Spreadsheet template documents -->
            <action default="true" ext="stc" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="ots" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- MS Excel -->
            <action default="true" ext="xls" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="xla" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- OOXML spreadsheet -->
            <action default="true" ext="xltx" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="xltm" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="xlsx" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="xlsb" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="xlsm" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- Others -->
            <action default="true" ext="dif" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="slk" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="csv" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="tsv" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="dbf" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="wk1" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="wks" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="xlr" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="123" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="qpw" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="wb1" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="wq1" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="wq2" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="gnumeric" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="numbers" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Impress documents -->
        <app favIconUrl="https://vegani.me/browser/3dc280be53/images/x-office-presentation.svg" name="impress">
            <action default="true" ext="sxi" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="odp" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="fodp" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- Presentation template documents -->
            <action default="true" ext="sti" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="otp" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- MS PowerPoint -->
            <action default="true" ext="ppt" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="pot" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- OOXML presentation -->
            <action default="true" ext="pptx" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="pptm" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="potx" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="potm" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="ppsx" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- Others -->
            <action default="true" ext="cgm" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="key" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Draw documents -->
        <app name="draw">
            <action default="true" ext="sxd" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="odg" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="fodg" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- Drawing template documents -->
            <action default="true" ext="std" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="otg" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <!-- Others -->
            <action ext="svg" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="dxf" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="emf" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="wmf" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="cdr" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="vsd" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="vsdx" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="vss" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="pub" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="p65" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="wpg" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action default="true" ext="fh" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action ext="bmp" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action ext="png" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action ext="gif" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action ext="tiff" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action ext="jpg" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action ext="jpeg" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
            <action ext="pdf" name="view_comment" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Math documents -->
        <!-- In fact Math documents are not supported at all.
             See: https://bugs.documentfoundation.org/show_bug.cgi?id=97006
        <app name="math">
            <action name="view" default="true" ext="sxm"/>
            <action name="edit" default="true" ext="odf"/>
        </app>
        -->

        <!-- Legacy MIME-type actions (compatibility) -->

        <app name="image/svg+xml">
            <action ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-powerpoint">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-excel">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Writer documents -->
        <app name="application/vnd.sun.xml.writer">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text-flat-xml">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Calc documents -->
        <app name="application/vnd.sun.xml.calc">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.spreadsheet">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.spreadsheet-flat-xml">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Impress documents -->
        <app name="application/vnd.sun.xml.impress">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.presentation">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.presentation-flat-xml">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Draw documents -->
        <app name="application/vnd.sun.xml.draw">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.graphics">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.graphics-flat-xml">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Chart documents -->
        <app name="application/vnd.oasis.opendocument.chart">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Text master documents -->
        <app name="application/vnd.sun.xml.writer.global">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text-master">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Math documents -->
        <!-- In fact Math documents are not supported at all.
             See: https://bugs.documentfoundation.org/show_bug.cgi?id=97006
        <app name="application/vnd.sun.xml.math">
            <action name="view" default="true" ext=""/>
        </app>
        <app name="application/vnd.oasis.opendocument.formula">
            <action name="edit" default="true" ext=""/>
        </app>
        -->
        <!-- Text template documents -->
        <app name="application/vnd.sun.xml.writer.template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text-template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Writer master document templates -->
        <app name="application/vnd.oasis.opendocument.text-master-template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Spreadsheet template documents -->
        <app name="application/vnd.sun.xml.calc.template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.spreadsheet-template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Presentation template documents -->
        <app name="application/vnd.sun.xml.impress.template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.presentation-template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Drawing template documents -->
        <app name="application/vnd.sun.xml.draw.template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.graphics-template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- MS Word -->
        <app name="application/msword">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/msword">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- MS Excel -->
        <app name="application/vnd.ms-excel">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- MS PowerPoint -->
        <app name="application/vnd.ms-powerpoint">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- OOXML wordprocessing -->
        <app name="application/vnd.openxmlformats-officedocument.wordprocessingml.document">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-word.document.macroEnabled.12">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.openxmlformats-officedocument.wordprocessingml.template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-word.template.macroEnabled.12">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- OOXML spreadsheet -->
        <app name="application/vnd.openxmlformats-officedocument.spreadsheetml.template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-excel.template.macroEnabled.12">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-excel.sheet.binary.macroEnabled.12">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-excel.sheet.macroEnabled.12">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- OOXML presentation -->
        <app name="application/vnd.openxmlformats-officedocument.presentationml.presentation">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-powerpoint.presentation.macroEnabled.12">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.openxmlformats-officedocument.presentationml.template">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-powerpoint.template.macroEnabled.12">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- Others -->
        <app name="application/vnd.wordperfect">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-aportisdoc">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-hwp">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-works">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-office">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-mswrite">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-dif-document">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="text/spreadsheet">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="text/csv">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-dbase">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.lotus-1-2-3">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/cgm">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/vnd.dxf">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/x-emf">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/x-wmf">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/coreldraw">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.visio2013">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.visio">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.ms-visio.drawing">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-mspublisher">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-sony-bbeb">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-gnumeric">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/macwriteii">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-iwork-numbers-sffnumbers">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text-web">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-pagemaker">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="text/rtf">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="text/plain">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-fictionbook+xml">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/clarisworks">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/x-wpg">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-iwork-pages-sffpages">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.openxmlformats-officedocument.presentationml.slideshow">
            <action default="true" ext="" name="edit" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-iwork-keynote-sffkey">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-abiword">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/x-freehand">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/vnd.sun.xml.chart">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/x-t602">
            <action default="true" ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/bmp">
            <action ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/png">
            <action ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/gif">
            <action ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/tiff">
            <action ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/jpg">
            <action ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="image/jpeg">
            <action ext="" name="view" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>
        <app name="application/pdf">
            <action ext="" name="view_comment" urlsrc="https://vegani.me/browser/3dc280be53/cool.html?"/>
        </app>

        <!-- End of legacy MIME-type actions -->

        <app name="Settings">
            <action ext="" name="iframe" urlsrc="https://vegani.me/browser/3dc280be53/admin/adminIntegratorSettings.html"/>
        </app>
        <app name="Capabilities">
            <action ext="" name="getinfo" urlsrc="https://vegani.me/hosting/capabilities"/>
        </app>
    </net-zone>
<proof-key exponent="AQAB" modulus="0wF+2u4yOwDbIis9jOuFsxdgZ0yMYxrfUZZ62EGQ4rxixxbT9XjrQwFzOz72VHcanW7lb+rcCsUAqGoIAFURk6ZtyThebckOmxLyLfLXe/zPryjXVTsCtwvJd/M67CpQsQ5ELwTH87wBOLVjhCDJXiQKE1DrdHhNRsGo+oMjqX76KuoXeZoZGUa6JH7HEqwUmuVf5bOcsod+d0Vz2ocxx37zfCDFiFVDQY/+4u9qPsU6oTdSyCI5lDeyosF70cSgHhCUNUhBQlKYh0K9dnKCMnTfYd4daaRfUMHU5xLbfqOGG38g52yX1Idaru9hp9ifCrunBPZdpls2rPkYbcXINw==" oldexponent="AQAB" oldmodulus="0wF+2u4yOwDbIis9jOuFsxdgZ0yMYxrfUZZ62EGQ4rxixxbT9XjrQwFzOz72VHcanW7lb+rcCsUAqGoIAFURk6ZtyThebckOmxLyLfLXe/zPryjXVTsCtwvJd/M67CpQsQ5ELwTH87wBOLVjhCDJXiQKE1DrdHhNRsGo+oMjqX76KuoXeZoZGUa6JH7HEqwUmuVf5bOcsod+d0Vz2ocxx37zfCDFiFVDQY/+4u9qPsU6oTdSyCI5lDeyosF70cSgHhCUNUhBQlKYh0K9dnKCMnTfYd4daaRfUMHU5xLbfqOGG38g52yX1Idaru9hp9ifCrunBPZdpls2rPkYbcXINw==" oldvalue="BgIAAACkAABSU0ExAAgAAAEAAQA3yMVtGPmsNlumXfYEp7sKn9inYe+uWofUl2znIH8bhqN+2xLn1MFQX6RpHd5h33QygnJ2vUKHmFJCQUg1lBAeoMTRe8GisjeUOSLIUjehOsU+au/i/o9BQ1WIxSB8837HMYfac0V3foeynLPlX+WaFKwSx34kukYZGZp5F+oq+n6pI4P6qMFGTXh061ATCiReySCEY7U4AbzzxwQvRA6xUCrsOvN3yQu3AjtV1yivz/x71/It8hKbDsltXjjJbaaTEVUACGqoAMUK3Opv5W6dGndU9j47cwFD63j10xbHYrzikEHYepZR3xpjjExnYBezheuMPSsi2wA7Mu7afgHT" value="BgIAAACkAABSU0ExAAgAAAEAAQA3yMVtGPmsNlumXfYEp7sKn9inYe+uWofUl2znIH8bhqN+2xLn1MFQX6RpHd5h33QygnJ2vUKHmFJCQUg1lBAeoMTRe8GisjeUOSLIUjehOsU+au/i/o9BQ1WIxSB8837HMYfac0V3foeynLPlX+WaFKwSx34kukYZGZp5F+* Connection #0 to host vegani.me left intact
oq+n6pI4P6qMFGTXh061ATCiReySCEY7U4AbzzxwQvRA6xUCrsOvN3yQu3AjtV1yivz/x71/It8hKbDsltXjjJbaaTEVUACGqoAMUK3Opv5W6dGndU9j47cwFD63j10xbHYrzikEHYepZR3xpjjExnYBezheuMPSsi2wA7Mu7afgHT"/></wopi-discovery>

looking at the inspector in the browser,
I see that websocket connection :

wss://vegani.me/cool/.....&compat=/ws

is failing with 404.

I don’t know what’s wrong :frowning:
I also tried setting

wopi-allowlist to 0.0.0.0 but no luck either.

Thanks
Danilo

Any clue on that? thanks

sudo -u www-data php8.3 ./occ config:list richdocuments
{
    "apps": {
        "richdocuments": {
            "doc_format": "ooxml",
            "wopi_allowlist": "127.0.0.1, 45.151.88.100",
            "types": "prevent_group_restriction",
            "enabled": "yes",
            "canonical_webroot": "",
            "external_apps": "",
            "installed_version": "8.6.5",
            "wopi_url": "https:\/\/vegani.me",
            "disable_certificate_verification": "",
            "public_wopi_url": "https:\/\/vegani.me"
        }
    }
}

remove the space after the comma see [BUG]: Invalid WOPI Allow list isn't communicated to the user · Issue #2685 · nextcloud/richdocuments · GitHub


    Fail: 127.0.0.1 45.151.88.100
    Fail: 127.0.0.1, 45.151.88.100
    Work: 127.0.0.1,45.151.88.100

you may want to consider using aliasgroups instead of WOPI: Install & configure Collabora CODE on Nextcloud with Docker

Thank you very much, unfortunately the issue remains.
My new configuration is

sudo -u www-data php ./occ config:list richdocuments
{
    "apps": {
        "richdocuments": {
            "doc_format": "ooxml",
            "types": "prevent_group_restriction",
            "enabled": "yes",
            "canonical_webroot": "",
            "external_apps": "",
            "installed_version": "8.6.5",
            "wopi_url": "https:\/\/vegani.me",
            "disable_certificate_verification": "",
            "public_wopi_url": "https:\/\/vegani.me",
            "wopi_allowlist": "127.0.0.1,45.151.88.100"
        }
    }
}

it should be something related to the websocket because the firefox inspector gives me 404 on websocket connection.

I’ve set this configuration in coolwsd.conf, I don’t know if it’s correct:

        <net desc="Network settings">
                <!-- On systems where localhost resolves to IPv6 [::1] address first, when net.proto is all and net.listen is loopback, coolwsd unexpectedly listens on [::1] only.
           You need to change net.proto to IPv4, if you want to use 127.0.0.1. -->
                <proto default="all" desc="Protocol to use IPv4, IPv6 or all for both" type="string">all</proto>
                <listen default="any" desc="Listen address that coolwsd binds to. Can be 'any' or 'loopback'." type="string">any</listen>
                <!-- this allows you to shift all of our URLs into a sub-path from
           https://my.com/browser/a123... to https://my.com/my/sub/path/browser/a123... -->
                <service_root default="" desc="Prefix all the pages, websockets, etc. with this path." type="path"/>
                <post_allow allow="true" desc="Allow/deny client IP address for POST(REST).">
                        <host desc="The IPv4 private 192.168 block as plain IPv4 dotted decimal addresses.">**192.168.1.210**</host>
                        <host desc="Ditto, but as IPv4-mapped IPv6 addresses">::ffff:192\.168\.[0-9]{1,3}\.[0-9]{1,3}</host>
                        <host desc="The IPv4 loopback (localhost) address.">127\.0\.0\.1</host>
                        <host desc="Ditto, but as IPv4-mapped IPv6 address">::ffff:127\.0\.0\.1</host>
                        <host desc="The IPv6 loopback (localhost) address.">::1</host>
                        <host desc="The IPv4 private 172.16.0.0/12 subnet part 1.">172\.1[6789]\.[0-9]{1,3}\.[0-9]{1,3}</host>
                        <host desc="Ditto, but as IPv4-mapped IPv6 addresses">::ffff:172\.1[6789]\.[0-9]{1,3}\.[0-9]{1,3}</host>
                        <host desc="The IPv4 private 172.16.0.0/12 subnet part 2.">172\.2[0-9]\.[0-9]{1,3}\.[0-9]{1,3}</host>
                        <host desc="Ditto, but as IPv4-mapped IPv6 addresses">::ffff:172\.2[0-9]\.[0-9]{1,3}\.[0-9]{1,3}</host>
                        <host desc="The IPv4 private 172.16.0.0/12 subnet part 3.">172\.3[01]\.[0-9]{1,3}\.[0-9]{1,3}</host>
                        <host desc="Ditto, but as IPv4-mapped IPv6 addresses">::ffff:172\.3[01]\.[0-9]{1,3}\.[0-9]{1,3}</host>
                        <host desc="The IPv4 private 10.0.0.0/8 subnet (Podman).">10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}</host>
                        <host desc="Ditto, but as IPv4-mapped IPv6 addresses">::ffff:10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}</host>
                </post_allow>

Thank you for your help

I kept advantage of the upgrade to replace my coolwsd.xml configuration and re-configure everything from scratch following the guide:

Now the error changed, It just waits for a while and then say “try again later”

and the config is

sudo -u www-data php8.3 ./occ config:list richdocuments
{
    "apps": {
        "richdocuments": {
            "doc_format": "ooxml",
            "enabled": "yes",
            "canonical_webroot": "",
            "installed_version": "8.7.0",
            "external_apps": "",
            "wopi_url": "https:\/\/vegani.me",
            "disable_certificate_verification": "",
            "public_wopi_url": "https:\/\/vegani.me",
            "types": "filesystem,prevent_group_restriction",
            "wopi_allowlist": "127.0.0.1,45.151.88.100"
        }
    }
}

thank you for your help!