# 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:** 3

<div class="post-metadata">

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

</div>

You need to tell nginx inside the container to trust `172.17.0.1` to set the Client IP headers by using the `set_real_ip_from` directive.

---

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