traefik: rate-limit for forgejo #176
1 changed files with 11 additions and 0 deletions
|
@ -5,6 +5,8 @@ http:
|
||||||
router_gitea:
|
router_gitea:
|
||||||
rule: "Host(`git.mgrote.net`)"
|
rule: "Host(`git.mgrote.net`)"
|
||||||
service: "service_gitea"
|
service: "service_gitea"
|
||||||
|
middlewares:
|
||||||
|
- "ratelimit"
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- entry_https
|
- entry_https
|
||||||
tls:
|
tls:
|
||||||
|
@ -15,3 +17,12 @@ http:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: "http://forgejo.mgrote.net:3000/"
|
- url: "http://forgejo.mgrote.net:3000/"
|
||||||
|
###### middlewares #####
|
||||||
|
middlewares:
|
||||||
|
ratelimit:
|
||||||
|
rateLimit:
|
||||||
|
average: 20
|
||||||
|
burst: 1
|
||||||
|
sourceCriterion:
|
||||||
|
ipStrategy:
|
||||||
|
depth: 2
|
||||||
|
|
Loading…
Reference in a new issue