ansible/roles/traefik/files/conf.d/git.yaml

36 lines
735 B
YAML
Raw Normal View History

2024-11-25 01:34:37 +00:00
http:
routers:
git-public:
rule: "Host(`git.phoenixinquis.net`)"
entryPoints:
- websecure
tls:
certresolver: dyndns
service: git
middlewares:
# - git-ratelimit
- git-block-uas
services:
git:
loadBalancer:
servers:
- url: "http://reason.sailmaker.fenix.lgbt:80"
passHostHeader: true
middlewares:
git-ratelimit:
rateLimit:
average: 10
burst: 30
period: 1m
git-block-uas:
plugin:
traefik-plugin-blockuseragent:
Regex :
- "facebookexternalhit"
- "meta-externalagent"
- "Amazonbot"
- "SemrushBot"
- "DotBot"