Add support for injecting request header value into ban HTML template (#296)

* Add parameter to specify Request header value to inject in HTML template

* Add documentation for specifying request header value

* Fix example in docs for CustomHeader

* Update parameter name to traceCustomHeader

* Ensure naming is consitent with project
This commit is contained in:
omer
2025-12-10 07:54:07 +01:00
committed by GitHub
parent 50beb4294f
commit e20ccc5d0c
4 changed files with 25 additions and 1 deletions
+5
View File
@@ -497,6 +497,10 @@ make run
- string
- default: ""
- Path where the ban html file is stored (default empty ""=disabled)
- TraceHeadersCustomName
- string
- default: ""
- Request Header name whose value to inject in ban HTML response (default empty ""=disabled)
### Configuration
@@ -603,6 +607,7 @@ http:
captchaGracePeriodSeconds: 1800
captchaHTMLFilePath: /captcha.html
banHTMLFilePath: /ban.html
traceHeadersCustomName: X-Request-ID
metricsUpdateIntervalSeconds: 600
```