traefik: rate-limit for forgejo #176

Merged
mg merged 2 commits from rl into master 2024-09-12 10:28:50 +02:00
2 changed files with 13 additions and 0 deletions

View file

@ -5,6 +5,8 @@ http:
router_gitea:
rule: "Host(`git.mgrote.net`)"
service: "service_gitea"
middlewares:
- "ratelimit"
entrypoints:
- entry_https
tls:
@ -15,3 +17,12 @@ http:
loadBalancer:
servers:
- url: "http://forgejo.mgrote.net:3000/"
###### middlewares #####
middlewares:
ratelimit:
rateLimit:
average: 10
burst: 5
sourceCriterion:
ipStrategy:
depth: 2

View file

@ -33,6 +33,8 @@ certificatesResolvers:
log:
level: INFO
accessLog: {}
api:
insecure: true
dashboard: true # unter Port 8081 erreichbar