mirror of
https://github.com/fabriziosalmi/caddy-mib.git
synced 2025-12-23 22:17:43 -05:00
26 lines
551 B
Caddyfile
26 lines
551 B
Caddyfile
{
|
|
admin off
|
|
log {
|
|
level debug
|
|
output stdout
|
|
format json
|
|
}
|
|
}
|
|
|
|
:8080 {
|
|
route {
|
|
caddy_mib {
|
|
error_codes 404
|
|
max_error_count 100
|
|
ban_duration 1m
|
|
ban_duration_multiplier 2
|
|
whitelist 192.168.1.10 10.0.0.0/24 2001:db8::1
|
|
}
|
|
file_server {
|
|
root /var/www/html
|
|
}
|
|
}
|
|
# This log block is for the file_server, you can adjust it as needed.
|
|
# The caddy_mib logs will be integrated with the global log settings.
|
|
}
|