How to configure Nextcloud ix-App

I try to setup Nextcloud on TrueNAS SCALE Electric Eel with a Cloudflare Tunnel but it would simply ignore my environment variables.

I configured the app like this:

Name *
OVERWRITEHOST
Value *
cloud.example.com
Name *
OVERWRITECLIURL
Value *
cloud.example.com
Name *
TRUSTED_PROXIES
Value *
cloud.example.com

Some containers crashed:

Ports: tcp://0.0.0.0:30027 : 80
Containers 5
nextcloud - Running
postgres - Running
redis - Running
postgres_upgrade - Exited
permissions - Exited

I saved and restarted the configuration but config/config.php does not change:

<?php
$CONFIG = array (
  '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,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'redis',
    'password' => '???',
    'port' => 6379,
  ),
  'upgrade.disable-web' => true,
  'passwordsalt' => '???',
  'secret' => '???',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '127.0.0.1',
    2 => 'localhost',
    3 => 'nextcloud',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'pgsql',
  'version' => '30.0.3.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'postgres:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => ???',
  'dbpassword' => '???',
  'installed' => true,
  'instanceid' => '???',
);

Why could that be? Thank you in advance

I ran into something similar, basically if you set some settings in the docker compose, the config file gets regenerated every restart so you have to set all of them in the compose or all of them in environmentals. Hope this helps.

Thank you. I have hardly anything changed from the defaults, only the passwords, and I also cleared the Host field. Which fields do I have to remove?