# Remove the ip limits

**URL:** https://meta.discourse.org/t/remove-the-ip-limits/185829
**Category:** Support
**Created:** [April 7, 2021, 3:23am UTC](https://meta.discourse.org/t/remove-the-ip-limits/185829 "2021-04-07T03:23:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![aksoforever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aksoforever/32/502615_2.png) [@aksoforever](https://meta.discourse.org/u/aksoforever)
#### Post date: [April 7, 2021, 3:23am UTC](https://meta.discourse.org/t/remove-the-ip-limits/185829/1 "2021-04-07T03:23:23Z")

</div>

hello teams,  
My discourse is only accessible by internal personnel. We have more than 1,000 people who have a public IP address.  
so always have 429 too many requests from nginx

According to sam’s this topic guide,

> [@Available settings for global rate limits and throttling](https://meta.discourse.org/t/global-rate-limits-and-throttling-in-discourse/78612):
>
> Discourse ships with 3 different global rate limits that can be configured by site admins. Global per-ip rate limits These limits apply to every unique IP address that hits the Discourse application. (files that are served directly from the filesystem or the CDN are excluded) By default this rate limit is enabled, you may disable it or set it to a reporting mode. DISCOURSE\_MAX\_REQS\_PER\_IP\_MODE : default block, this rate limit applies out of the box. (other options are warn, warn+block, and n…

I made the settings in app.yml DISCOURSE\_MAX\_REQS\_PER\_IP\_MODE: none, but not works.

```plaintext
env:
  LANG: en_US.UTF-8
  #DONT_PRECOMPILE_CSS: 1
  # DISCOURSE_DEFAULT_LOCALE: en

  #Global rate limits
  #DISCOURSE_MAX_REQS_PER_IP_MODE: none
  ##Global per-ip rate limits
  DISCOURSE_MAX_REQS_PER_IP_MODE: none
  #DISCOURSE_MAX_REQS_PER_IP_PER_MINUTE: none
  #DISCOURSE_MAX_REQS_PER_IP_PER_10_SECONDS: none
  #DISCOURSE_MAX_ASSET_REQS_PER_IP_PER_10_SECONDS: none
  #DISCOURSE_MAX_REQS_RATE_LIMIT_ON_PRIVATE: false
  ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override
  UNICORN_WORKERS: 4

```

Can someone tell me how to cancel the discourse access limit, I’m very confused by this access limit.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 7, 2021, 5:54am UTC](https://meta.discourse.org/t/remove-the-ip-limits/185829/2 "2021-04-07T05:54:34Z")

</div>

> [@aksoforever](#):
>
> so always have 429 too many requests from nginx

are you mixing in the NGINX rate limiting template in your app.yml?

---

<div class="post-metadata">

### Author: ![aksoforever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aksoforever/32/502615_2.png) [@aksoforever](https://meta.discourse.org/u/aksoforever)
#### Post date: [April 7, 2021, 6:33am UTC](https://meta.discourse.org/t/remove-the-ip-limits/185829/3 "2021-04-07T06:33:57Z")

</div>

Hello sam  
i don’t add a nginx template in my app.yml

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/0/8023ea60f0a16380c7bf4a0ea11a6b85c09ec7a9.png)

In fact i make like this: something wrong?

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/2/72b1200a9b2641ba3956b990721f25f6b3d5ef14.png)

don’t know what’s wrong, if I set DISCOURSE\_MAX\_REQS\_PER\_IP\_MODE: none, then the others don’t need to set?

---

<div class="post-metadata">

### Author: ![aksoforever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aksoforever/32/502615_2.png) [@aksoforever](https://meta.discourse.org/u/aksoforever)
#### Post date: [April 7, 2021, 6:36am UTC](https://meta.discourse.org/t/remove-the-ip-limits/185829/4 "2021-04-07T06:36:07Z")

</div>

```
- "templates/web.ratelimited.template.yml"

```

should i remove this one？

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 7, 2021, 7:05am UTC](https://meta.discourse.org/t/remove-the-ip-limits/185829/5 "2021-04-07T07:05:12Z")

</div>

Yes, if you don’t want nginx rate limiting, remove that template 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 7, 2021, 7:05am UTC](https://meta.discourse.org/t/remove-the-ip-limits/185829/6 "2021-05-07T07:05:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
