-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logging potentially missing modules are detected
If the shared `crowdsec` module is compiled into Caddy, but either the `http` or `layer4` CrowdSec bouncer modules are not available when they most likely should be, emit warning logs on startup.
- Loading branch information
Showing
4 changed files
with
152 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
{ | ||
debug | ||
crowdsec { | ||
api_url http://localhost:8080 | ||
api_key <api_key> | ||
} | ||
log { | ||
level DEBUG | ||
} | ||
crowdsec { | ||
api_url http://localhost:7080 | ||
api_key {env.CROWDSEC_API_KEY} | ||
ticker_interval 3s | ||
} | ||
} | ||
|
||
localhost { | ||
route { | ||
crowdsec | ||
respond "Allowed by CrowdSec!" | ||
} | ||
} | ||
route { | ||
crowdsec | ||
respond "Allowed by CrowdSec!" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.