# 排查 429（速率限制）问题

**URL:** https://meta.discourse.org/t/troubleshooting-a-429-rate-limit/81060
**Category:** Self-hosting
**Created:** [2018年二月20日 18:20 UTC](https://meta.discourse.org/t/troubleshooting-a-429-rate-limit/81060 "2018-02-20T18:20:41Z")
**Posts on this page:** 1
**Showing post:** 7

<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: [2018年二月21日 01:08 UTC](https://meta.discourse.org/t/troubleshooting-a-429-rate-limit/81060/7 "2018-02-21T01:08:46Z")

</div>

Thanks Sam.

So do I basically need to do what’s in [this](https://meta.discourse.org/t/config-nginx-to-receive-real-ip-when-using-cloudflare-for-noobs/22645/15) post? Or is there a simpler way?

If following that post, I guess for me that file would read something like the following?

```plaintext
run:
  - replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /^add_header Strict-Transport-Security 'max-age=31536000';$/
     to: |
       add_header Strict-Transport-Security 'max-age=31536000';

       # Cloudflare
       set_real_ip_from my.server.ip;
       real_ip_header CF-Connecting-IP;

```

(It’s a dedicated server running a single IP address.)

---

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