ansible/roles/traefik/files/conf.d/git.yaml
2024-11-24 20:38:05 -05:00

35 lines
735 B
YAML

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"