mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-22 16:16:41 +00:00
d5ccf9c670
* feat(config): add metrics bind config to policy file with flag hack Signed-off-by: Xe Iaso <me@xeiaso.net> * feat(internal): move SetupListener from main Signed-off-by: Xe Iaso <me@xeiaso.net> * fix(main): use internal.SetupListener Signed-off-by: Xe Iaso <me@xeiaso.net> * fix(config): add metrics socket mode Signed-off-by: Xe Iaso <me@xeiaso.net> * feat: move metrics server to a dedicated package Signed-off-by: Xe Iaso <me@xeiaso.net> * doc: add metrics server configuration docs Signed-off-by: Xe Iaso <me@xeiaso.net> * doc(default-config): add vague references to metrics server Signed-off-by: Xe Iaso <me@xeiaso.net> * chore: spelling Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
20 lines
492 B
YAML
20 lines
492 B
YAML
bots:
|
|
- name: simple
|
|
action: CHALLENGE
|
|
user_agent_regex: Mozilla
|
|
|
|
logs:
|
|
sink: "file"
|
|
parameters:
|
|
file: "/var/log/botstopper/default.log"
|
|
maxBackups: 3 # keep at least 3 old copies
|
|
maxBytes: 67108864 # each file can have up to 64 MB of logs
|
|
maxAge: 7 # rotate files out every n days
|
|
oldFileTimeFormat: 2006-01-02T15-04-05 # RFC 3339-ish
|
|
compress: true
|
|
useLocalTime: false # timezone for rotated files is UTC
|
|
|
|
metrics:
|
|
bind: ":9090"
|
|
network: "tcp"
|