traefik: rate-limit for forgejo (#176)
Reviewed-on: https://git.mgrote.net///mg/homeserver/pulls/176 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
1fd038df2e
commit
97f2667d96
2 changed files with 13 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: 10
|
||||||
|
burst: 5
|
||||||
|
sourceCriterion:
|
||||||
|
ipStrategy:
|
||||||
|
depth: 2
|
||||||
|
|
|
@ -33,6 +33,8 @@ certificatesResolvers:
|
||||||
log:
|
log:
|
||||||
level: INFO
|
level: INFO
|
||||||
|
|
||||||
|
accessLog: {}
|
||||||
|
|
||||||
api:
|
api:
|
||||||
insecure: true
|
insecure: true
|
||||||
dashboard: true # unter Port 8081 erreichbar
|
dashboard: true # unter Port 8081 erreichbar
|
||||||
|
|
Loading…
Reference in a new issue