tobi
4d66fb9603
[feature] Make rate limit requests amount configurable ( #966 )
...
* update rate limit documentation
* regenerate landingpage config helpers
* make rate limit rate configurable
2022-11-06 09:47:48 +00:00
Mia Heidenstedt
c0a2d702a3
[docs] Update swagger.md ( #933 )
...
See https://github.com/superseriousbusiness/gotosocial/blob/main/internal/api/security/security.go
```go
s.AttachMiddleware(m.RateLimit(RateLimitOptions{
// accept a maximum of 1000 requests in 5 minutes window
Period: 5 * time.Minute,
Limit: 1000,
}))
```
2022-10-31 13:20:39 +01:00
nya1
bee8458a2d
[feature] add rate limit middleware ( #741 )
...
* feat: add rate limit middleware
* chore: update vendor dir
* chore: update readme with new dependency
* chore: add rate limit infos to swagger.md file
* refactor: add ipv6 mask limiter option
Add IPv6 CIDR /64 mask
* refactor: increase rate limit to 1000
Address https://github.com/superseriousbusiness/gotosocial/pull/741#discussion_r945584800
Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
2022-08-31 12:06:14 +02:00
Tobi Smethurst
58dddd86e0
Swagger ( #124 )
...
* start experimenting with swagger documentation
* further adventures in swagger
* do a few more api paths
* account paths documented
* go fmt
* fix up some models
* bit o lintin'
2021-07-31 17:49:59 +02:00