Remove the ip limits

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,

I made the settings in app.yml DISCOURSE_MAX_REQS_PER_IP_MODE: none, but not works.

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.

1 Like

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

3 Likes

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

In fact i make like this: something wrong?

don’t know what’s wrong, if I set DISCOURSE_MAX_REQS_PER_IP_MODE: none, then the others don’t need to set?

1 Like
- "templates/web.ratelimited.template.yml"

should i remove this one?

1 Like

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

5 Likes

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