Error in admin overview:
Your "trusted_proxies" setting is not correctly set, it should be an array of IP addresses - optionally with range in CIDR notation.
Other information
The entrypoint.sh script of the nextcloud container automatically creates a trusted_proxies entry:
IPv4_ADDRESS="$(dig nextcloud-aio-nextcloud A +short +search | head -1)"
IPv4_ADDRESS="$(echo "$IPv4_ADDRESS" | sed 's|[0-9]\+$|0/16|')"
php /var/www/html/occ config:system:set trusted_proxies 10 --value="$IPv4_ADDRESS"
The problem is the result of the dig command is empty and the entry for trusted_proxies become an empty string.
The IP for nextcloud-aio-nextcloud is resolved by the entry in /etc/hosts that is created by docker and does not result in a dns lookup that dig can report on.
The error disappears from the admin overview after running this command:
php occ config:system:delete trusted_proxies 10
I am using podman but the behavior should be the same for docker.
Steps to reproduce
Create manual-install instance of nextcloud-aio.
Expected behavior
No errors in admin overview.
Actual behavior
Error in admin overview: Your "trusted_proxies" setting is not correctly set, it should be an array of IP addresses - optionally with range in CIDR notation.
Other information
The entrypoint.sh script of the nextcloud container automatically creates a trusted_proxies entry:
The problem is the result of the dig command is empty and the entry for trusted_proxies become an empty string. The IP for nextcloud-aio-nextcloud is resolved by the entry in /etc/hosts that is created by docker and does not result in a dns lookup that dig can report on.
The error disappears from the admin overview after running this command:
php occ config:system:delete trusted_proxies 10
I am using podman but the behavior should be the same for docker.