safespring-community / nextcloud

installation project for Sunet nextcloud project
0 stars 2 forks source link

Trusted domain configuration via environment variables is unstable #12

Open jakubkrzywda opened 4 years ago

jakubkrzywda commented 4 years ago

Even though TRUSTED_DOMAIN environment variable is set properly (NEXTCLOUD_TRUSTED_DOMAINS='[FQDN] [IPv4] [IPv6]'), and logs say that the trusted domains have been set

setting trusted domains…
System config value trusted_domains => 1 set to string [FQDN]
System config value trusted_domains => 2 set to string [IPv4]
System config value trusted_domains => 3 set to string [IPv6]

after the deployment, config/config.php file contains only localhost value

  'trusted_domains' => 
  array (
    0 => 'localhost',
  ),

and the local login page displays an error Access through untrusted domain.

This usually occurs, when setting the values of trusted domains interleaves with other Nextcloud configurations (for example smtp settings).