Remove the ip limits

AI-generated summary

In the discussion “Remove the ip limits,” aksoforever is experiencing issues with IP limits on their internal Discourse forum, which is accessible to over 1,000 personnel with public IP addresses, resulting in “429 too many requests” errors from nginx. aksoforever has already set DISCOURSE_MAX_REQS_PER_IP_MODE: none in their app.yml, but the issue persists.

sam suggests that aksoforever may be mixing in the NGINX rate limiting template in their app.yml. However, aksoforever confirms that this is not the case.

Further investigation reveals that aksoforever has a rate limiting template ("templates/web.ratelimited.template.yml") in place. sam advises removing this template to disable nginx rate limiting.

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.

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

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?

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

should i remove this one?

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