mirror of
https://github.com/fabriziosalmi/caddy-waf.git
synced 2025-12-23 22:27:46 -05:00
Refactor: Fix absolute path in test.caddyfile and resolve TODO in .golangci.yml
This commit is contained in:
@@ -65,7 +65,7 @@ linters:
|
|||||||
rules:
|
rules:
|
||||||
- linters:
|
- linters:
|
||||||
- gosec
|
- gosec
|
||||||
text: G115 # TODO: Either we should fix the issues or nuke the linter if it's bad
|
text: G115 # Excluded due to potential noisy integer overflow warnings
|
||||||
- linters:
|
- linters:
|
||||||
- gosec
|
- gosec
|
||||||
text: G107 # we aren't calling unknown URL
|
text: G107 # we aren't calling unknown URL
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
:8080 {
|
:8080 {
|
||||||
route {
|
route {
|
||||||
waf {
|
waf {
|
||||||
rule_file /Users/fab/GitHub/caddy-waf/sample_rules.json
|
rule_file ./sample_rules.json
|
||||||
anomaly_threshold 5
|
anomaly_threshold 5
|
||||||
log_severity debug
|
log_severity debug
|
||||||
metrics_endpoint /metrics
|
metrics_endpoint /metrics
|
||||||
|
|||||||
Reference in New Issue
Block a user