Hi everyone,
I have a strange issue with the new notify_push app. I have added my IP to the trusted_proxies list, but it just won’t accept it. The output looks like this:
✓ redis is configured
✓ push server is receiving redis messages
✓ push server can load mount info from database
✓ push server can connect to the Nextcloud server
🗴 push server is not a trusted proxy, please add '1.2.3.4' to the list of trusted proxies or configure any existing reverse proxy to forward the 'x-forwarded-for' send by the push server.
See https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/reverse_proxy_configuration.html#defining-trusted-proxies for how to set trusted proxies.
The following trusted proxies are currently configured: 1.2.3.4, 5.6.7.8
The following x-forwarded-for header was received by Nextcloud: 5.6.7.8
from the following remote: 1.2.3.4
If you're having issues getting the trusted proxy setup working, you can try bypassing any existing reverse proxy
in your setup by setting the `NEXTCLOUD_URL` environment variable to point directly to the internal Nextcloud webserver url
(You will still need the ip address of the push server added as trusted proxy)
I don’t understand this behavior as the IP it complains about is identical to the one it lists as a configured trusted proxy.
I have a kind of complicated setup though, maybe the reason lies somewhere in there:
- I have a nginx proxy on 1.2.3.4 which forwards traffic to 5.6.7.8
- 5.6.7.8 is a firewall wich port-forwards the traffic to the actual server (10.0.0.12)
- The server has an apache2 server to drive Nextcloud.
I am kind of stuck at this point. Any help would be appreciated
Regards,
Dorian