File config.package-specific-settings.php of Package nextcloud
<?php
$CONFIG = array (
#
# Merge this with your normal config.php after initial installation.
#
# if your nextcloud gets stuck in maintenance mode, check if $version was updated
'version' => '30.0.5.1',
# this flag is used by the nextcloud-prepare-upgrade script
'maintenance' => false,
# without this flag the nextcloud code tries on each request if it write stupid file
'config_is_read_only' => true,
# the channel used by the package
'updater.release.channel' => 'stable',
# we are not using appstore but packaged apps. see nextcloud-apps-* packages
'appstoreenabled' => false,
'apps_paths' =>
array (
0 =>
array (
'path' => '/srv/www/vhosts/nextcloud/public/apps',
'url' => '/apps',
'writable' => false,
),
),
# which domains provided by the client we assume are correct
'trusted_domains' =>
array (
0 => 'nextcloud.example.org',
),
'overwrite.cli.url' => 'https://nextcloud.example.org',
# we are using out of tree data storage
'datadirectory' => '/srv/www/vhosts/nextcloud/data',
# logging to a file
'loglevel' => 1,
'log_type' => 'file',
'logfile' => '/var/log/nextcloud/nextcloud.log',
# to speed up your file locking
# 'filelocking.enabled' => true,
# 'memcache.local' => '\\OC\\Memcache\\Redis',
# 'memcache.locking' => '\\OC\\Memcache\\Redis',
# 'redis' =>
# array (
# 'host' => '127.0.0.1',
# 'port' => 6381,
# 'timeout' => 0.0,
# 'password' => 'supersecret',
# ),
# it is always a good idea to have 2FA especially for admins:
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
0 => 'admin',
),
# https://nordisch.org/posts/enabling-heif-support-in-nextcloud/
# 'enabledPreviewProviders' =>
# array (
# 0 => 'OC\\Preview\\WebP',
# 1 => 'OC\\Preview\\PNG',
# 2 => 'OC\\Preview\\JPEG',
# 3 => 'OC\\Preview\\GIF',
# 4 => 'OC\\Preview\\AVIF',
# 5 => 'OC\\Preview\\HEIC',
# 6 => 'OC\\Preview\\Image',
# 7 => 'OC\\Preview\\Krita',
# 8 => 'OC\\Preview\\BMP',
# 9 => 'OC\\Preview\\XBitmap',
# 10 => 'OC\\Preview\\MP3',
# 11 => 'OC\\Preview\\SVG',
# 12 => 'OC\\Preview\\TIFF',
# 13 => 'OC\\Preview\\TXT',
# 14 => 'OC\\Preview\\MarkDown',
# ),
);