Add rate limit to stashbox connection (#5764)

* Add max requests per minute stashbox option
* Implement rate limiting
* Add requests per minute to stashbox config
* Add UI setting
This commit is contained in:
WithoutPants
2025-03-27 11:54:00 +11:00
committed by GitHub
parent 18381664aa
commit c8d74f0bcf
12 changed files with 118 additions and 20 deletions

View File

@@ -7,7 +7,8 @@ type StashBoxFingerprint struct {
}
type StashBox struct {
Endpoint string `json:"endpoint"`
APIKey string `json:"api_key"`
Name string `json:"name"`
Endpoint string `json:"endpoint"`
APIKey string `json:"api_key"`
Name string `json:"name"`
MaxRequestsPerMinute int `json:"max_requests_per_minute" koanf:"max_requests_per_minute"`
}