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).
Even though
TRUSTED_DOMAIN
environment variable is set properly (NEXTCLOUD_TRUSTED_DOMAINS='[FQDN] [IPv4] [IPv6]'
), and logs say that the trusted domains have been setafter the deployment,
config/config.php
file contains only localhost valueand 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).