Skip to content

Comments

Add rate limit to stashbox connection#5764

Merged
WithoutPants merged 4 commits intostashapp:developfrom
WithoutPants:rate-limit-stashbox
Mar 27, 2025
Merged

Add rate limit to stashbox connection#5764
WithoutPants merged 4 commits intostashapp:developfrom
WithoutPants:rate-limit-stashbox

Conversation

@WithoutPants
Copy link
Collaborator

Part of #2914.

Adds a default rate limit of 240 requests per minute (4 requests per second) for stash-box requests.

Adds a new Max requests per minute field to stash-box configuration:
image

When making a request to the stash-box instance, stash will wait until the rate limiter allows the requests to proceed.

@WithoutPants WithoutPants added the improvement Something needed tweaking. label Mar 24, 2025
@WithoutPants WithoutPants added this to the Version 0.29.0 milestone Mar 24, 2025
@WithoutPants WithoutPants merged commit c8d74f0 into stashapp:develop Mar 27, 2025
2 checks passed
XGFan pushed a commit to XGFan/stash that referenced this pull request Mar 27, 2025
* Add max requests per minute stashbox option
* Implement rate limiting
* Add requests per minute to stashbox config
* Add UI setting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Something needed tweaking.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant