Initial rate limit middleware
This commit is contained in:
parent
5992a6dac6
commit
1ed850aea2
1 changed files with 10 additions and 0 deletions
10
src/main/resources/forgejo/middleware-ratelimit.yaml
Normal file
10
src/main/resources/forgejo/middleware-ratelimit.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Here, an average of 100 requests per second is allowed.
|
||||
# In addition, a burst of 50 requests is allowed.
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: ratelimit
|
||||
spec:
|
||||
rateLimit: # ToDo: Config options for rate limiting: https://doc.traefik.io/traefik/middlewares/http/ratelimit/
|
||||
average: 100
|
||||
burst: 50
|
Loading…
Reference in a new issue