Need help with config.php

I am running Nextcloud using LSIOs docker container, with an Mariadb and Redis behind a Traefik3 reverse proxy.

Nextcloud version (eg, 29.0.5): 30.0.0
Operating system and version (eg, Ubuntu 24.04): Ubuntu server 24.04 LTS

The issue you are facing:
Can’t install apps, get that classic “unstable error”.

Is this the first time you’ve seen this error? (Y/N): Y, on all apps.I try to add.

<?php
$CONFIG = array (
  'datadirectory' => '/data',
  'instanceid' => 'ocywf07389ru',
  'passwordsalt' => 'xxx',
  'secret' => 'vvvv',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.mydomain.tld',
  ),
  'trusted_proxies' =>
  array (
    0 => '10.1.1.10',
  ),
  'dbtype' => 'mysql',
  'version' => '30.0.0.14',
  'overwrite.cli.url' => 'https://nextcloud.mydomain.tld',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'mariadb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'dbuser',
  'dbpassword' => 'ffff',
  'installed' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

2024/10/16 08:57:16 [error] 338#338: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected token "=", expecting ")" in /config/www/nextcloud/config/config.php on line 13" while reading upstream, client: 111.111.111.111, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mydomain.tld"
2024/10/16 08:57:17 [error] 338#338: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected token "=", expecting ")" in /config/www/nextcloud/config/config.php on line 13" while reading upstream, client: 111.111.111.111, server: _, request: "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mydomain.tld"
2024/10/16 08:58:15 [error] 338#338: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected token "=", expecting ")" in /config/www/nextcloud/config/config.php on line 13" while reading upstream, client: 111.111.111.111, server: _, request: "GET /index.php/204 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mydomain.tld"
2024/10/16 08:58:15 [error] 338#338: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected token "=", expecting ")" in /config/www/nextcloud/config/config.php on line 13" while reading response header from upstream, client: 111.111.111.111, server: _, request: "GET /status.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mydomain.tld"
2024/10/16 09:30:04 [error] 460#460: *261 FastCGI sent in stderr: "PHP message: PHP Warning:  http_response_code(): Cannot set response code - headers already sent (output started at /config/www/nextcloud/apps/richdocumentscode/proxy.php:260) in /config/www/nextcloud/apps/richdocumentscode/proxy.php on line 296" while reading upstream, client: 111.111.111.111, server: _, request: "GET /apps/richdocumentscode/proxy.php?status HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mydomain.tld"
2024/10/16 09:30:05 [error] 460#460: *261 FastCGI sent in stderr: "PHP message: PHP Warning:  http_response_code(): Cannot set response code - headers already sent (output started at /config/www/nextcloud/apps/richdocumentscode/proxy.php:237) in /config/www/nextcloud/apps/richdocumentscode/proxy.php on line 245" while reading upstream, client: 111.111.111.111, server: _, request: "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mydomain.tld"
2024/10/16 09:30:05 [error] 460#460: *261 FastCGI sent in stderr: "PHP message: PHP Warning:  http_response_code(): Cannot set response code - headers already sent (output started at /config/www/nextcloud/apps/richdocumentscode/proxy.php:260) in /config/www/nextcloud/apps/richdocumentscode/proxy.php on line 296" while reading upstream, client: 111.111.111.111, server: _, request: "GET /apps/richdocumentscode/proxy.php?status HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mydomain.tld"
2024/10/16 09:30:05 [error] 460#460: *261 FastCGI sent in stderr: "PHP message: richdocumentscode (proxy.php) error exit, PID: 466, Message: no_glibc; PHP message: PHP Warning:  http_response_code(): Cannot set response code - headers already sent (output started at /config/www/nextcloud/apps/richdocumentscode/proxy.php:30) in /config/www/nextcloud/apps/richdocumentscode/proxy.php on line 34" while reading upstream, client: 111.111.111.111, server: _, request: "GET /apps/richdocumentscode/proxy.php?req=/hosting/discovery HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mydomain.tld"

Please edit your post to fix the preformatted text formatting.

P.S. You can use occ config:list system to get the parsed / merged config.