Bug config Nextcloud derrière reverse proxy

Bonjour,

J’ai besoin de votre aide : je ne comprends vraiment pas où est le problème…

J’ai installer Nextcould sur Docker derrière un reverse proxy (Traefik)
Voici donc mon config.php :
<?php
$CONFIG = array (
‘trusted_proxies’ => [‘192.168.0.23’],
‘overwritehost’=> “cloud.mondomaine.fr”,
‘overwriteprotocol’=> ‘https’,

Mais j’obtient l’erreur suivante :

<b>Parse error</b>: syntax error, unexpected ''https'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in <b>/var/www/html/config/config.php</b> on line <b>5</b><br />

Je ne vois pas où est le problème, pouvez vous m’aider ?

ça va. what about?

'trusted_proxies' => array('203.0.113.45', '198.51.100.128', '192.168.2.0/24'),
‘overwritehost’=> 'cloud.mondomaine.fr',
[ -> arrray(
" -> '

Il faudrait poster l’ensemble de ton config.php (en anonymisant les valeurs secrètes) pour savoir où se trouve le problème.
À priori il manque une parenthèse fermante quelque part.

Bonjour,
Voici mon config.php :

<?php

$CONFIG = array (

  'overwritehost'     => 'cloud.mondomaine.fr',

  'overwriteprotocol' => 'https',

  'overwritewebroot'  => '/',

  'htaccess.RewriteBase' => '/',

  'memcache.local' => '\\OC\\Memcache\\APCu',

  'apps_paths' => 

  array (

    0 => 

    array (

      'path' => '/var/www/html/apps',

      'url' => '/apps',

      'writable' => false,

    ),

    1 => 

    array (

      'path' => '/var/www/html/custom_apps',

      'url' => '/custom_apps',

      'writable' => true,

    ),

  ),

  'instanceid' => 'id',

  'passwordsalt' => 'pass',

  'secret' => 'secret',

  'trusted_domains' => 

  array (

    0 => 'cloud.mondomaine.fr',
    1 => '192.168.0.23',

  ),

  'datadirectory' => '/var/www/html/data',

  'dbtype' => 'mysql',

  'version' => '18.0.3.0',

  'overwrite.cli.url' => 'https://cloud.mondomaine.fr',

  'dbname' => 'nextcloud',

  'dbhost' => 'db:3306',

  'dbport' => '',

  'dbtableprefix' => 'oc_',

  'mysql.utf8mb4' => true,

  'dbuser' => 'oc_user',

  'dbpassword' => 'pass',

  'installed' => true,

);

Je ne vois rien de spécial, c’est très curieux.

Pense à enlever les informations secret et instanceid par contre.