NextCloud Config Optimizer
Tune your NextCloud instance for maximum performance on TrueNAS. Generates optimized PHP and config.php settings based on your hardware.
Server Specs
Network & Proxy
Adds trusted_proxies and overwriteprotocol
Optimized config.php
Add these lines to your config/config.php
<?php
$CONFIG = array (
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'cloud.example.com',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '27.0.0.0',
'trusted_proxies' => ['173.245.48.0/20','103.21.244.0/22','103.22.200.0/22','103.31.4.0/22','141.101.64.0/18','108.162.192.0/18','190.93.240.0/20','188.114.96.0/20','197.234.240.0/22','198.41.128.0/17','162.158.0.0/15','104.16.0.0/13','104.24.0.0/14','172.64.0.0/13','131.0.72.0/22'],
'overwriteprotocol' => 'https',
'maintenance_window_start' => 1,
'default_phone_region' => 'ID',
'memcache.local' => '\OC\Memcache\APCu',
);
Performance Tip
For TrueNAS, ensure you also set up a Redis container and link it for file locking and local caching. This tool assumes you have APCu enabled for local cache.