Completely remove rate limit for local testing
# support
t
Hello, We have an API that acts as a intermediate server between the frontend and Medplum. In this api we've created quite a lot of tests that runs against a Medplum hosted on docker that we launch before running the tests. When I run the test one by one every test runs correctly, but when running everything at once, I quickly get a rate limit issue. As this medplum hosted on docker is only used for testing, we would like to remove all the rate limits, but I have not found how to do this. I'm not completely sure to understand how I'm supposed to do that. I've seen that when lauching a docker image I can add a medplum.config.json I've tried adding it like that : { "defaultRateLimit": "10000000/minute", "defaultAuthRateLimit": "10000000/minute", "defaultFhirQuota": 100000000000 } But I still get at some point Expected: "NO_PROJECT_MEMBERSHIP_FOUND" Received: "Too Many Requests ({\"_remainingPoints\":0,\"_msBeforeNext\":21651,\"_consumedPoints\":54472,\"_isFirstInDuration\":false,\"limit\":50000})" Although when I add this { "defaultRateLimit": "1/minute", "defaultAuthRateLimit": "1/minute", "defaultFhirQuota": 1 } If you have any idea how I can do that that would be great. Thanks https://cdn.discordapp.com/attachments/1489893057443922063/1489893057653641266/image.png?ex=69d21289&is=69d0c109&hm=59b0f3b9a7051454ec3c491e480bc7bdbf797f94ebce05d7ec423ff9d1ae1dad&
n
defaultRateLimit
can be [set to -1](https://github.com/medplum/medplum/blob/2436edcd9a303306e6b80c5e1eb2e0bcba6d4baf/packages/server/src/ratelimit.ts#L29) which I believe disables auth rate limit with it.
defaultFhirQuota
can be disabled by [explicitly setting it to false](https://github.com/medplum/medplum/blob/2436edcd9a303306e6b80c5e1eb2e0bcba6d4baf/packages/server/src/fhir/fhirquota.ts#L58) in the project
systemSetting
25 Views