mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 11:42:24 -05:00
[chore] add IPPrefixes type so we don't need separate rate limit parsed field (#3982)
* add IPPrefixes type so we don't need separate rate limit parsed field * sshhhh please linter, mommy's working
This commit is contained in:
parent
19cfa8d126
commit
b1a4d54c14
10 changed files with 82 additions and 71 deletions
|
|
@ -136,7 +136,7 @@ var Defaults = Configuration{
|
|||
|
||||
AdvancedCookiesSamesite: "lax",
|
||||
AdvancedRateLimitRequests: 300, // 1 per second per 5 minutes
|
||||
AdvancedRateLimitExceptions: []string{},
|
||||
AdvancedRateLimitExceptions: IPPrefixes{},
|
||||
AdvancedThrottlingMultiplier: 8, // 8 open requests per CPU
|
||||
AdvancedThrottlingRetryAfter: time.Second * 30,
|
||||
AdvancedSenderMultiplier: 2, // 2 senders per CPU
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue