Remove redundant block-ip middleware

This commit is contained in:
2025-11-12 15:06:39 +08:00
parent c9039feeab
commit 1f572927a1

View File

@@ -1,9 +1,5 @@
http: http:
middlewares: middlewares:
block-ip-access:
headers:
customRequestHeaders:
Host: "" # This will catch requests with no Host header or invalid ones
crowdsec: crowdsec:
plugin: plugin:
bouncer: bouncer:
@@ -25,15 +21,6 @@ http:
- application/json - application/json
- text/plain - text/plain
routers: routers:
block-direct-access:
rule: "HostRegexp(`{host:.+}`)" # Matches any host
service: noop@internal
priority: -1 # Low priority to catch unmatched requests
entryPoints:
- web
- websecure
middlewares:
- block-ip-access
qbit: qbit:
rule: Host(`qbit.gbanyan.net`) rule: Host(`qbit.gbanyan.net`)
service: qbit service: qbit