Include a flag for docker when using a Reverse Proxy
Rate limiting is too strong, which causes legitimate requests (even from IP addresses that are almost requesting nothing) to be rejected.
Example: I made a request to my reseed server with the IP address 2a0e:8f02:21e0::2
. The whole /44 prefix belongs to me and makes maybe five requests per month. Somehow the request is still blocked.
Edit: Could it be because I am using a reverse proxy and the trustProxy option is not set? Workaround for me was:
docker exec -it reseed sed -i -e 's|/var/lib/i2p/go/src/i2pgit.org/idk/reseed-tools/reseed-tools reseed --yes=true --netdb=/var/lib/i2p/i2p-config/netDb $@|/var/lib/i2p/go/src/i2pgit.org/idk/reseed-tools/reseed-tools reseed --yes=true --netdb=/var/lib/i2p/i2p-config/netDb --numSu3=0 --trustProxy=true $@|g' /var/lib/i2p/go/src/i2pgit.org/idk/reseed-tools/entrypoint.sh
Edited by Marek Küthe