Nextcloud and Onlyoffice
NextCloud runs as a docker container. It mounts the data as an NFS docker volume.
Document editing is provided by OnlyOffice Document Server. OODS is a separate docker image, which can potentially be used for multiple customers.
Proxy Issues
Originally I had big problems making it work - the editor could be accessed directly or via NPM, but not from within Nextcloud. The root cause was the Nginx Proxy Manager, because URLs did not match, so caused a Content-Security-Policy errors. The solution was indicated by the Nextcloud settings -> Administrator -> Overview, which pointed to https://docs.nextcloud.com/server/25/admin_manual/configuration_server/reverse_proxy_configuration.html
To fix it I added the following to config/config.php in the volume mounted as /var/www/html.
'trusted_proxies' =>
array (
0 => '192.168.182.0/24'
),
'overwritehost' => 'nc1.brusch.co.uk',HSTS
Nginx Proxy Manager should be configured to set HSTS. Edit Proxy Hosts -> SSL, turn on HSTS Enabled and HSTS Subdomains.
Other Issues
See https://nc1.brusch.co.uk/settings/admin/overview
All these issues should be fixed. List as of June 2023 is:
- Your web server is not properly set up to resolve “/.well-known/caldav”. Further information can be found in the documentation ↗.
- Your web server is not properly set up to resolve “/.well-known/carddav”. Further information can be found in the documentation ↗.
- You have not set or verified your email server configuration, yet. Please head over to the Basic settings in order to set them. Afterwards, use the “Send email” button below the form to verify your settings.
- Your installation has no default phone region set. This is required to validate phone numbers in the profile settings without a country code. To allow numbers without a country code, please add “default_phone_region” with the respective ISO 3166-1 code ↗ of the region to your config file.
- The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running “occ db:add-missing-indices” those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.
- Missing index “fs_parent” in table “oc_filecache”.