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 '220.127.116.11' 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: 18.104.22.168, 22.214.171.124 The following x-forwarded-for header was received by Nextcloud: 126.96.36.199 from the following remote: 188.8.131.52 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 184.108.40.206 which forwards traffic to 220.127.116.11
- 18.104.22.168 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