429 too many requests using internally nginx

ERROR - 429 too many requests. is coming…
DIscourse version - 2.4.1 stable, using docker only app container is working, PG and Redis is used from AWS. Nginx is running in docker container not in host so only 80 port exposes… This server is directly connected to LoadBalancer…can U tell why 429 error is coming…sometimes…

All requests are being presented as if coming from ELB (loadbalancer) IP. That’s why too many requests error.

You can set the load balancer to forward the correct IP address with requests and that’ll sort the issue generally it is the X-FORWARDED-FOR Header that’s required here.

More details here:
https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/x-forwarded-headers.html

4 Likes