# Troubleshooting a 429 (rate limit)

**URL:** <https://meta.discourse.org/t/troubleshooting-a-429-rate-limit/81060>\
**Category:** Self-hosting\
**Created:** [February 20, 2018, 6:20pm UTC](https://meta.discourse.org/t/troubleshooting-a-429-rate-limit/81060 "2018-02-20T18:20:41Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Post date:** [October 9, 2018, 11:21pm UTC](https://meta.discourse.org/t/troubleshooting-a-429-rate-limit/81060/19 "2018-10-09T23:21:54Z")

</div>

> [@pfaffman](#):
>
> shared/standalone/log/var-log/nginx/access.log

All of the IPs are 172.17.0.1 😲

So I’d guess I would just need the following?

```plaintext
- replace:
    filename: /etc/nginx/conf.d/discourse.conf
    from: "types {"
    to: |
      set_real_ip_from 172.17.0.0/24;
      real_ip_header X-Forwarded-For;
      real_ip_recursive on;
      types {

```

Tho not sure about these two:

```plaintext
      real_ip_header X-Forwarded-For;
      real_ip_recursive on;

```

> [@pfaffman](#):
>
> you might go into the container and do it by hand to see if it works

Do you mean editing the `/etc/nginx/conf.d/discourse.conf` file directly inside the container then restarting Nginx?

---

_[View the full topic](https://meta.discourse.org/t/troubleshooting-a-429-rate-limit/81060)._
