I am facing the “Your “trusted_proxies” setting is not correctly set, it should be an array of IP addresses - optionally with range in CIDR notation.” since version 29.
It worked with nextcloud 28.x and I already checked a lot of other resources on this topic. I have an array and I have only an IP adress, no hostname or gethostbyname calls or anything. Still I cannot pass the newly introduced test.
Also checked the source code of the check and can confirm that this IP should pass the test. filter_var(‘172.18.0.3’, FILTER_VALIDATE_IP) is true.
Thanks. That gave me a helpful hint. The output was double quoted and escaped.
"trusted_proxies": [
"[\"172.18.0.3\/32\"]"
],
Wondered where that came from and found an error in my docker compose config, which lead to the proxy config from docker not being applied. Fixed that and now the config is overwritten with the docker compose config and is just the quoted IP address as expected.