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

AI-generated summary

Alex_Bourge is experiencing issues with API rate limits on their self-hosted Discourse server, despite configuring various rate limit settings. Users are hitting a limit of around 60 calls per minute, which is not specific to any endpoint. Alex_Bourge wants to disable all API rate limits. Falco suggests checking the nginx rate limit, which can be removed from the app.yml file. However, Alex_Bourge questions whether the nginx rate limit would return an error from a Discourse locale file. Falco notes that the issue may not be supported as Alex_Bourge is using a Bitnami install, which is not packaged or sanctioned by the Discourse team.

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.

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.

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: Artifact Hub

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