mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 13:16:17 +00:00
fix: fix caddy_logs accessibility to monitoring tools
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user