Config file contains errors

Hello,
I think my config file contains errors, could you please confirm this?

I have hidden the sensitive information

<?php
$CONFIG = array (
  'passwordsalt' => '*/P*******************',
  'secret' => 'M********/*******/*********/***',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.1.***',
    2 => '***.**.***.***',
    3 => '*****',
    4 => '****.*********.com',
    5 => 'nextcloudpi.local',
    6 => 'nextcloudpi',
    7 => 'nextcloudpi.lan',
    11 => '****:****:**:****:****:****:****:****',
    '' => 'raspberrypi',
    14 => '****',
  ),
  'datadirectory' => '/media/myCloudDrive/ncdata',
  'dbtype' => 'mysql',
  'version' => '21.0.4.1',
  'overwrite.cli.url' => 'An unhandled exception has been thrown:
RedisException: NOAUTH Authentication required. in /var/www/nextcloud/lib/private/Memcache/Redis.php:55
Stack trace:
#0 /var/www/nextcloud/lib/private/Memcache/Redis.php(55): Redis->get(\'3ac9369066a095f...\')
#1 /var/www/nextcloud/lib/autoloader.php(153): OC\\Memcache\\Redis->get(\'OCA\\\\ServerInfo\\\\...\')
#2 [internal function]: OC\\Autoloader->load(\'OCA\\\\ServerInfo\\\\...\')
#3 [internal function]: spl_autoload_call(\'OCA\\\\ServerInfo\\\\...\')
#4 /var/www/nextcloud/lib/private/ServerContainer.php(107): class_exists(\'OCA\\\\ServerInfo\\\\...\')
#5 /var/www/nextcloud/lib/private/ServerContainer.php(177): OC\\ServerContainer->getAppContainer(\'serverinfo\', \'ServerInfo\')
#6 /var/www/nextcloud/lib/private/ServerContainer.php(144): OC\\ServerContainer->getAppContainerForService(\'OCA\\\\ServerInfo\\\\...\')
#7 /var/www/nextcloud/lib/private/Console/Application.php(221): OC\\ServerContainer->query(\'OCA\\\\ServerInfo\\\\...\')
#8 /var/www/nextcloud/lib/private/Console/Application.php(136): OC\\Console\\Application->loadCommandsFromInfoXml(Array)
#9 /var/www/nextcloud/console.php(99): OC\\Console\\Application->loadCommands(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\$
#10 /var/www/nextcloud/occ(11): require_once(\'/var/www/nextcl...\')
#11 {main}://*****/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => '****************************=',
  'installed' => true,
  'instanceid' => '*********',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => '*******************************=',
  ),
  'tempdirectory' => '/media/myCloudDrive/ncdata/tmp',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => '*****',
  'mail_domain' => '***********.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'maintenance' => false,
   'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log',
  'loglevel' => 0,
  'log_type' => 'file',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtphost' => '***********.com',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '***@**********.com',
  'mail_smtppassword' => '***********',
  'app_install_overwrite' =>
  array (
    0 => 'joplin',
    1 => 'bookmarks_fulltextsearch',
    2 => 'passman',
  ),
  'theme' => '',
  'data-fingerprint' => '*********************',  
  'trusted_proxies' =>
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => '*****',
    14 => '',
  ),
);

Well looking at it I would not know what this ‘’ => ‘raspberrypi’, is doing in trusted domains. should it not start with a number like 12 => ‘raspberrypi’,

then at ‘overwrite.cli.url’ => everything till ‘dbname’ => ‘nextcloud’, should not be there like that.

and in trusted proxies 14 => ‘’, is empty.

Thank you very much for your help
Do you think I can delete it?

I cleaned it up. everything seems to work fine

the ‘trusted_proxies’ => what does it do?
I guess I should delete everything

in case you run your nc instance behind a proxy or in a virtual machine you need to add trusted proxies.

otherwise its not necessary.

always save a copy of the file you change incase your change has negative effects.

Thank you for your reply.
As this is system specific, I will leave it