Closed june012006 closed 2 months ago
Set TRUSTED_PROXIES=traefik #container name
This does not work as only IP addresses work (there is a dirty work around using gethostbyname
inside the config.php but only applicable if you really trust your DNS).
unset TRUSTED_PROXIES and set IP address of traefik container via php occ command
Could you please provide the config report for this and also the full error message from the logs?
Thank you for taking the time to report a problem :+1:
As this seems to be a setup issue, I would like to ask you to raise your question at https://help.nextcloud.com or https://github.com/nextcloud/docker
⚠️ This issue respects the following points: ⚠️
Bug description
Fresh install of nextcloud 29.0.4-fpm w/ nginx webserver, using traefik as reverse proxy. Regardless of whether I use environment variable TRUSTED_PROXIES, or the occ command to set, and regardless of whether I'm using the container name, which should be supported by the reverse-proxy.config.php file, the specific docker IP of the traefik container, or the entire range of the docker network, I continue to receive the error 'Your "trusted_proxies" setting is not correctly set, it should be an array of IP addresses' error, regardless of settings. I also use the occ config commands to confirm that it is set, whichever method I use
Steps to reproduce
Expected behavior
At least one of the methods should result in no error
Installation method
Community Docker image
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response