Open feroxib opened 3 weeks ago
The variable is TRUSTED_PROXIES
not NEXTCLOUD_TRUSTED_PROXIES
.
And multiple entries are space delimited.
See Using the image behind a reverse proxy and auto configure server host and protocol.
I'm not sure how you're checking your config, but make sure to use occ config:list system
to see the fully merged config. See Viewing the Nextcloud configuration.
Will update
Hi, please close if duplicate.
While setting up a nextcloud:apache via docker-compose.yml i had NEXTCLOUD_TRUSTED_DOMAINS and NEXTCLOUD_TRUSTED_PROXIES set as env variables.
Using this as my docker-compose.yml:
.env
With this approach my goal was to easily deploy a stack without needing to modify the config.php file.
Odd behaviour occured since in config.php the trusted_domains array got correctly updated but the trusted_proxies was missing completely.
checking the logs in nextcloud i noticed
System config value trusted_domains => 1 set to string my.cloud.com
Where the 1 results from 0 being localhost as default. Does NEXTCLOUD_TRUSTED_PROXIES fail because it is not declared as an array? YESworked out perfectly.
BUG? i think so. Probably some parsing error if values are not an array.
referencing:
2224 since it mentions TRUSTED_PROXIES as "edit always allowed"
2209 since trusted_proxies.conf seems to take part in parsing that variable.
Edit: formatting