I’m running a nextcloud container with swag reverse proxy. Today I upgraded to nextcloud 29.0.0. So far nextcloud works but on the administration overview page it shows me the following error:
Your “trusted_proxies” setting is not correctly set, it should be an array of IP addresses - optionally with range in CIDR notation.
I’ve tried the following (from here) in the config.php file but it has not fixed the issue:
If you’re using a container it’s possible your trusted_proxies are defined in your Docker Compose file. In some images, such as the micro-services one, that could override the setting in your main config.php.
I tried something. In config.php I entered the IP address of the swag container and now the error message is gone. This tells me that the trusted_proxies value is indeed taken from the config.php file. Is setting the trusted_proxies like this fine or does it come with any drawbacks?