Modularize dynamic config

This commit is contained in:
2025-11-13 01:24:48 +08:00
parent 3ebf91c260
commit b245ab0efa
4 changed files with 21 additions and 20 deletions

26
dynamic.d/middlewares.yml Normal file
View File

@@ -0,0 +1,26 @@
http:
middlewares:
crowdsec:
plugin:
bouncer:
enabled: true
crowdsecMode: stream
crowdsecLapiHost: "localhost:8080"
crowdsecLapiKey: gFJjSzdbB0GCe/1Y9HcxMPP1vQmoa4psZOFyleJZJVQ
compress-middleware:
compress:
encodings:
- zstd
- br
- gzip
minResponseBodyBytes: 1024
includedContentTypes:
- text/html
- text/css
- application/javascript
- application/json
- text/plain
retry-fast:
retry:
attempts: 2
initialInterval: 50ms