Table of Contents

Nextcloud

Setup

Nextcloud config.php:

Caching with php-apcu and local memcached server:

...
'default_language' => 'de',
'default_locale' => 'de_DE',
'default_phone_region' => 'DE',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Memcached',
'memcached_servers' => 
array (
  0 => 
  array (
    0 => 'localhost',
    1 => 11211,
  ),
),
...

Cronjob:

Don't use AJAX cron, use system cron:

run Cron / OCC manually:

sudo -u <user> php -f /var/www/<domain>/cloud/wwwroot/cron.php

Collabora Setup

Collabora CODE replaces Onlyoffice and works like a Pad.

There are .deb Packages, use them! https://www.collaboraoffice.com/code/linux-packages/


/etc/loolwsd/loolwsd.xml Changes:

<enable type="bool" desc="Controls whether SSL encryption between browser and loolwsd is enabled (do not disable for production deployment). If default is false, must first be compiled with SSL support to enable." default="true">false</enable>
<termination desc="Connection via proxy where loolwsd acts as working via https, but actually uses http." type="bool" default="true">true</termination>

Also setting by commandline works (coolwsd in bullseye):

loolconfig set ssl.enable false
loolconfig set ssl.termination true
loolconfig set storage.wopi.host nextcloud.example.com
loolconfig set-admin-password
systemctl status loolwsd


Links: