fix: fix caddy_logs accessibility to monitoring tools

This commit is contained in:
2025-07-09 19:29:40 -03:00
parent 8649d964df
commit 5a489a7584
4 changed files with 16 additions and 6 deletions

View File

@@ -5,12 +5,18 @@
# Enable metrics for Prometheus
metrics
# Logging
# Console logging for Docker logs
log {
level INFO
format console
}
# Access logs for CrowdSec and Promtail
log {
output file /var/log/caddy/access.log
format json
}
# Allow CrowdSec globally
crowdsec {
api_url http://crowdsec:8080