Caddy Rate Limit Customization #857
Replies: 6 comments
-
Hi, thanks for taking the time to report this issue. Could you share more details about the volume of requests you are sending, as well as an example response with the full headers? |
Beta Was this translation helpful? Give feedback.
-
Sure! Here is an example: Response:
|
Beta Was this translation helpful? Give feedback.
-
What do you think would be a good limit for API calls, i.e. how many calls were you trying to make? |
Beta Was this translation helpful? Give feedback.
-
I don't know if there is a one-size-fits-all answer! Some people are running LinkAce on a PI while others may be on using actual servers which means that both would handle the request volume differently. For this reason, I would think using environment variables would make more sense. Ex:
Caddyfile:
(In my specific case, a bulk API that lets me download links from multiple lists at once would be helpful but that's another discussion entirely!) |
Beta Was this translation helpful? Give feedback.
-
Sure there's no answer for everybody, but a more sensible default would be helpful. Also, this has nothing to do with Caddy. It's in the core application. There will be a API_RATE_LIMIT variable for this with the final release. |
Beta Was this translation helpful? Give feedback.
-
Honestly, I think the current 60/m rate is a great default API limit. Worst case, jumping up to 100/m as the default wouldn't be bad either but I don't see a compelling reason to go any higher than that as the default. |
Beta Was this translation helpful? Give feedback.
-
I'm using v2.0 beta that runs on Caddy within a docker image. I'm running into an issue where the API is getting rate-limited VERY quickly whenever I do batch operations against it! Can you add the ability to change the default Rate Limiting? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions