I am using the Apache Docker compose setup. Things work except that when I upgrade or docker-compose down, the internal IP of the containers change, (naturally?) I also use the host server’s Apache as the reverse proxy. The issue is that the container’s IP change breaks connections and NC refuses connections to the users as far as I can tell because it looks like they are connecting from IPs that are not trusted.
Is there a permanent way to add those container IPs in the trusted domains in this type of reverse proxy setup so that I dont need to manually add all these IP changes to config.php
You should be. Your reverse proxy’s IP address should be listed in it. That’s how you tell Nextcloud to get the correct client IP address. Otherwise the reverse proxy’s IP address is what will be logged and considered the client IP address.
I cant still solve this issue The user denied access. 172.24.0.1 is the Docker IP.
IP address throttled because it reached the attempts limit in the last 30 minutes
{"reqId":"SjFVsC2nYeUtr6UAeHMy","level":1,"time":"2025-02-08T22:59:05+00:00","remoteAddr":"172.24.0.1","user":"--","app":"no app in context","method":"POST","url":"/nc/index.php","message":"IP address throttled because it reached the attempts limit in the last 30 minutes [action: login, delay: 200, ip: 172.24.0.1]","userAgent":"Mozilla/5.0 (iPhone; CPU iPhone OS 18_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/135.0 Mobile/15E148 Safari/605.1.15","version":"27.1.11.3","data":[]}
192.168.100.1 is the internal IP of the Host/Reverse proxy