[SOLVED] How to add trusted proxies? #3396
-
Hi together, I have set up a Nextcloud AIO using Docker rootless including Nginx Proxy Manager. Basically everything works. However, I have locked myself out by several incorrect password entries of a user. The bruteforce prevention had struck. I removed the block manually in redis and was able to log in again. The blocked IP address pointed to my Nginx proxy manager. Unfortunately I was not able to pass the IP to the trusted_proxies via ENV (the log of the mastercontainer mentioned that this is not supported) or configuration.json (no reaction at all). This manual step was also not successful - "no file or dictionary error" while standing in an empty file... I found this post, but I don't know how to apply this from the mentioned relayd proxy to the Nginx Proxy Manager. Additionally, I can't believe that we can't change the parameter trusted_proxies (and other parameters)?. How can I add the IP to the array of trusted_proxies? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
Hi, usually AIO should take care of this automatically. Can you first follow #2045? |
Beta Was this translation helpful? Give feedback.
-
The Nextcloud AIO is running in a IPv4 only network. Even the ISP is providing me only a public IPv4 address. Additionally the Dyndns provider is running IPv4 only. So, I guess we can exclude the IPv6 approach. |
Beta Was this translation helpful? Give feedback.
-
You can edit the config.php, where trusted proxies are set, by running |
Beta Was this translation helpful? Give feedback.
-
@szaimen . My nextcloud log showing System config value trusted_proxies => 0 set to string 127.0.0.1 checked conf/conf.php > same values. is it the docker bridge? |
Beta Was this translation helpful? Give feedback.
Hi, usually AIO should take care of this automatically. Can you first follow #2045?