reatelimit
This commit is contained in:
parent
d3c4c7402f
commit
8194e4bd98
2 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ services:
|
||||||
traefik.http.routers.registry.entrypoints: entry_https
|
traefik.http.routers.registry.entrypoints: entry_https
|
||||||
traefik.http.services.registry.loadbalancer.server.port: 5000
|
traefik.http.services.registry.loadbalancer.server.port: 5000
|
||||||
|
|
||||||
traefik.http.routers.registry.middlewares: registry-ipallowlist
|
traefik.http.routers.registry.middlewares: registry-ipallowlist,ratelimit40
|
||||||
|
|
||||||
traefik.http.middlewares.registry-ipallowlist.ipallowlist.sourcerange: 192.168.2.0/24,10.25.25.0/24,192.168.48.0/24,172.18.0.0/16 # .48. ist Docker
|
traefik.http.middlewares.registry-ipallowlist.ipallowlist.sourcerange: 192.168.2.0/24,10.25.25.0/24,192.168.48.0/24,172.18.0.0/16 # .48. ist Docker
|
||||||
traefik.http.middlewares.registry-ipallowlist.ipallowlist.ipstrategy.depth: 0 # https://doc.traefik.io/traefik/middlewares/http/ipallowlist/#ipstrategydepth
|
traefik.http.middlewares.registry-ipallowlist.ipallowlist.ipstrategy.depth: 0 # https://doc.traefik.io/traefik/middlewares/http/ipallowlist/#ipstrategydepth
|
||||||
|
@ -92,7 +92,7 @@ services:
|
||||||
retries: 3
|
retries: 3
|
||||||
labels:
|
labels:
|
||||||
traefik.http.routers.registry-ui.rule: Host(`rui.mgrote.net`)
|
traefik.http.routers.registry-ui.rule: Host(`rui.mgrote.net`)
|
||||||
traefik.http.routers.registry-ui.middlewares: authelia,registry-ui-ipallowlist # also entferne den Prefix danach wieder
|
traefik.http.routers.registry-ui.middlewares: authelia,registry-ui-ipallowlist,ratelimit40
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
traefik.http.routers.registry-ui.tls: true
|
traefik.http.routers.registry-ui.tls: true
|
||||||
traefik.http.routers.registry-ui.tls.certresolver: resolver_letsencrypt
|
traefik.http.routers.registry-ui.tls.certresolver: resolver_letsencrypt
|
||||||
|
|
|
@ -6,7 +6,7 @@ http:
|
||||||
rule: "Host(`git.mgrote.net`)"
|
rule: "Host(`git.mgrote.net`)"
|
||||||
service: "service_forgejo"
|
service: "service_forgejo"
|
||||||
middlewares:
|
middlewares:
|
||||||
- "ratelimit"
|
- "ratelimit40"
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- entry_https
|
- entry_https
|
||||||
tls:
|
tls:
|
||||||
|
@ -19,7 +19,7 @@ http:
|
||||||
- url: "http://forgejo.mgrote.net:3000/"
|
- url: "http://forgejo.mgrote.net:3000/"
|
||||||
###### middlewares #####
|
###### middlewares #####
|
||||||
middlewares:
|
middlewares:
|
||||||
ratelimit:
|
ratelimit40:
|
||||||
rateLimit:
|
rateLimit:
|
||||||
average: 40
|
average: 40
|
||||||
burst: 80
|
burst: 80
|
||||||
|
|
Loading…
Reference in a new issue