Collabora Server for Secure View


Basically I am trying to install Collabora on my Nextcloud Hub (25.0.4)
I went to the apps section and installed “Collabora Online - Built-in CODE Server” which then tells me I should install Nextcloud Office.
When I Download and install it causes the server to crash and throw Gateway Timeouts.
Nextcloud Logs:

Error richdocuments GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 45001 milliseconds with 0 out of 0 bytes received (see for

What am I missing I tried already a few things like changing the timeouts in:

nano /var/www/html/nextcloud/lib/private/Http/Client/Client.php
nano /var/www/html/nextcloud/lib/private/Installer.php
nano /var/www/html/nextcloud/apps/files_sharing/lib/External/Storage.php

I am using Red Hat Enterprise Linux 8.7 on a postgres 14 the base installation works fine even ldap and other apps.

I followed this setup and added https to it Example installation on CentOS 8 — Nextcloud latest Administration Manual latest documentation

"productName":"Collabora Online Development Edition",

hello @denis_ferreira welcome to the forum :handshake:

likely the problem is not a timeout but some other (networking) issue which prevents the system from accessing the CODE instance… depending on your instillation this could be DNS issue, reverse proxy or webserver config.

Further reading:

Nextcloud Collabora integration

Please use the search regarding built-in CODE server, lot of issues has been discussed already.

We could not exactly identify why the redhat server was not able to download the packages.
We experienced similar issues while trying to manually install the coolwsd package on the server.

Since then we managed to install collabora.

Issues since then are:

I cannot open documents and secure view is not working
Admin pannel is not accessible under and in the browser one can see WebSocket connection to ‘wss://’ failed:

CODE proxy:

<VirtualHost *:80>
Redirect permanent /

<VirtualHost *:443>
SSLEngine on

    SSLCertificateFile cer
    SSLCertificateKeyFile key
    SSLCertificateChainFile crt

– Reverse proxy for Collabora Online
AllowEncodedSlashes NoDecode
ProxyPreserveHost On

– static html, js, images, etc. served from coolwsd
–browser is the client part of Collabora Online

ProxyPass / http://localhost:9980/
ProxyPassReverse / http://localhost:9980/

ProxyPass /browser retry=0
ProxyPassReverse /browser

– WOPI discovery URL
ProxyPass /hosting/discovery retry=0
ProxyPassReverse /hosting/discovery

– Capabilities
ProxyPass /hosting/capabilities retry=0
ProxyPassReverse /hosting/capabilities

– Main websocket
ProxyPassMatch “/cool/(.*)/ws$” ws://$1/ws nocanon

– Admin Console websocket
ProxyPass /cool/adminws ws://

– Download as, Fullscreen presentation and Image upload operations
ProxyPass /cool
ProxyPassReverse /cool
– Compatibility with integrations that use the /lool/convert-to endpoint
ProxyPass /lool
ProxyPassReverse /lool

Nextcloud proxy:

<VirtualHost *:80>
Redirect permanent /

<VirtualHost *:443>

– SSL configuration
SSLEngine on
SSLCertificateFile cer
SSLCertificateKeyFile key
SSLCertificateChainFile crt

– Nextcloud configuration
DocumentRoot “/var/www/html/nextcloud”
<Directory “/var/www/html/nextcloud”>
AllowOverride All
Options FollowSymLinks MultiViews
Require all granted

– PHP-FPM configuration
<FilesMatch .php$>
SetHandler “proxy:unix:/run/php-fpm/www.sock|fcgi://localhost”

Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
Nextcloud config:

$CONFIG = array (
‘directory’ => ‘/var/www/html/nextcloud/data’,
// ‘overwrite.cli.url’ => ‘’,
‘trusted_domains’ =>
array (
0 => ‘’,
‘allow_local_remote_servers’ => true,
‘datadirectory’ => ‘/var/www/html/nextcloud/data’,
‘dbtype’ => ‘’,
‘dbname’ => ‘’,
‘dbhost’ => ‘’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘’,
‘dbpassword’ => ‘’,
// ‘proxy’ => ‘’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘filelocking.enabled’ => true,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘instanceid’ => ‘’,
‘passwordsalt’ => ‘’,
‘secret’ => ‘’,
‘version’ => ‘’,
‘installed’ => true,
‘ldapProviderFactory’ => ‘OCA\User_LDAP\LDAPProviderFactory’,

In coolwsd.xml I added:

  • storage.wopi
  • Did not change default storage.ssl config
  • Added in net.post_allow
  • ssl.enable = false and ssl.termination = true

When removing these line from collabora.conf (proxy)
ProxyPass / http://localhost:9980/
ProxyPassReverse / http://localhost:9980/

I regain acces to the admin pannel under:

Once I add those I lose access to that panel

please follow the guide I provided.

I don’t know what are tring to achieve the configs are related to Collabora please ask in the right forum