-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trusted_proxies setting fails because of reverse-proxy.config.php #2209
Comments
While this is not the exact same issue, I've noticed that the TRUSTED_PROXIES environment variable doesn't work the same way as config.php does. When setting the trusted_proxies in config.php as shown in nextcloud/server#44495 (comment) and the TRUSTED_PROXIES environment variable containing the same ( If I don't use the TRUSTED_PROXIES environment variable but only modify the config.php as shown in nextcloud/server#44495 (comment), executing While it's possible to manually edit config.php after setup, I'd much prefer to be able to configure this in my docker-compose.yml correctly so the process of setting up a new instance can be fully automated. I.m.o. this could be considered a bug as the Nextcloud Docker TRUSTED_PROXIES environment variable should be able to have the same capabilities as the setting in config.php; especially since the gethostbyname is useful for docker-compose instances where you generally don't want to assign your proxy a static ip. |
I'm having the same problem. Some quick playing around in the REPL shows that |
@FelixBuehler You didn't share the precise error you're getting from the setup checks in Nextcloud so it's hard to say for sure. I will say that if you're specifying proxies via the environment variables (i.e. what |
@Andreas02-dev & @xeluior Valid points, but since the reporter in this issue didn't mention |
@joshtrichards Exact error in nextcloud setup checks: Content of
Response from
I don't know, where the domain is coming from in this list. |
The |
Thanks, that's it. Was only searching in the config.php file, but never did a look again in the docker-compose.yaml. Fixed i guess? |
Hello together,
since the update to Nextcloud Hub 8/v29.0.0 my Security Warnings show me an incorrect trusted_proxy settings. I found out, that it has to do with the
reverse-proxy.config.php
file and in there the last part, where the entries from the normal config.php get exploded:My normal config.php just looks like this:
I don't understand PHP that good, but i think it has something to do with the functions not giving back a clean list. Since 29, there is an additional check, see here:
nextcloud/server@14addf3
Also this: https://help.nextcloud.com/t/after-upgrade-to-29-getting-trusted-proxies-error/189016
Can anyone help me, how to fix the
reverse-proxy.config.php
?The text was updated successfully, but these errors were encountered: