I changed all the rate limits I could find, but still hit a limit somewhere

These are the limits I’ve set. I’m hosting on my own server with a LOT of users (teachers and admins in many schools) interacting with it through API calls (custom frontend integrated with some other propriety software)

    - name: DISCOURSE_ENABLE_HTTPS
      value: "yes"
    - name: DISCOURSE_PRECOMPILE_ASSETS
      value: "yes"
    - name: DISCOURSE_MAX_REQS_PER_IP_MODE
      value: "none"
    - name: DISCOURSE_MAX_USER_API_REQS_PER_MINUTE
      value: "20000"
    - name: DISCOURSE_MAX_USER_API_REQS_PER_DAY
      value: "30000"
    - name: DISCOURSE_MAX_ADMIN_API_REQS_PER_MINUTE
      value: "20000"
    - name: "DISCOURSE_MAX_REQS_PER_IP_PER_MINUTE"
      value: "20000"
    - name: "DISCOURSE_MAX_REQS_PER_IP_PER_10_SECONDS"
      value: "2000"
    - name: "DISCOURSE_MAX_ASSET_REQS_PER_IP_PER_10_SECONDS"
      value: "2000"
    - name: "DISCOURSE_SKIP_PER_IP_RATE_LIMIT_TRUST_LEVEL"
      value: "0"
    - name: "DISCOURSE_MAX_ADMIN_API_REQS_PER_KEY_PER_MINUTE"
      value: "20000"
    - name: "DISCOURSE_MESSAGE_BUS_MAX_BACKLOG_SIZE"
      value: "1000"

Even with these values there’s some limit that users are hitting at around 60 calls in a minute. It is not pertaining to any specific endpoint, so it seems to be some global rate limit for the whole api in general.

1 Like

I basically want to disable all API rate limits

Maybe you are hitting the nginx rate limit? You can remove the template for it on one of the first lines of the app.yml file.

1 Like

Would the nginx rate limit return an error from a Discourse locale file? I’m seeing the “You’ve performed this action too many times…” language.

Also this is the image I’m using: discourse 5.2.6 · bitnami/bitnami

We do not support bitnami installs here as it’s not packaged nor sanctioned by us in any way, sorry.

1 Like