# Frequent nginx rate limiting with nginx also on the host

**URL:** <https://meta.discourse.org/t/frequent-nginx-rate-limiting-with-nginx-also-on-the-host/115885>\
**Category:** Self-hosting\
**Created:** [24.Апрель.2019 18:02:01 UTC](https://meta.discourse.org/t/frequent-nginx-rate-limiting-with-nginx-also-on-the-host/115885 "2019-04-24T18:02:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Post date:** [24.Апрель.2019 18:02:01 UTC](https://meta.discourse.org/t/frequent-nginx-rate-limiting-with-nginx-also-on-the-host/115885/1 "2019-04-24T18:02:01Z")

</div>

Continuing the discussion from [Best free option to protect discourse from many requests](https://meta.discourse.org/t/best-free-option-to-protect-discourse-from-many-requests/113350):

Looks like these “too many request” errors are still coming thick and fast on my forum (and I don’t think I’m under DDOS attack):

 ![48](https://global.discourse-cdn.com/meta/original/3X/b/8/b860a76b0f98d1d2107c70d4b0616183e24d5bbe.png)

I think the stock nginx config (the Discourse nginx instance) is overly conservative with its rate limits.

There are a lot of errors like the below in `/var/discourse/shared/standalone/log/var-log/nginx/error.log` on my host:

```plaintext
2019/04/24 13:08:55 [error] 66#66: *2237264 limiting requests, excess: 12.592 by zone "flood", client: 172.17.0.1, server: _, request: "GET /user-badges/Cheekybecki.json?_=1556111332933 HTTP/1.0", host: "se23.life", referrer: "https://se23.life/t/cleaner-recommendations/1147?page=2"

```

I note the client IP is reported as `172.17.0.1` - this is Docker’s host IP (not the real client IP). Could this be the problem?

---

_[View the full topic](https://meta.discourse.org/t/frequent-nginx-rate-limiting-with-nginx-also-on-the-host/115885)._
