mirror of
https://github.com/NotAShelf/watchdog.git
synced 2026-04-15 06:44:20 +00:00
chore: update sample config for metrics ratelimiting
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I8cfa5900eac8c1f5c4364707356bb0ce6a6a6964
This commit is contained in:
parent
9c8f91ef27
commit
2cad815cd8
1 changed files with 4 additions and 0 deletions
|
|
@ -63,6 +63,8 @@ limits:
|
|||
max_custom_events: 100
|
||||
# Maximum events per minute (rate limiting, 0 = unlimited)
|
||||
max_events_per_minute: 10000
|
||||
# Maximum metrics endpoint requests per minute (rate limiting, 0 = unlimited, default: 30)
|
||||
max_metrics_per_minute: 60
|
||||
|
||||
# Device classification breakpoints (screen width in pixels)
|
||||
device_breakpoints:
|
||||
|
|
@ -85,6 +87,8 @@ security:
|
|||
- "*" # Or specific domains: ["https://example.com", "https://www.example.com"]
|
||||
|
||||
# Basic authentication for /metrics endpoint
|
||||
# Password can also be set via environment variable:
|
||||
# - `$ export WATCHDOG_SECURITY_METRICS_AUTH_PASSWORD=your-secret-password`
|
||||
metrics_auth:
|
||||
enabled: false
|
||||
username: "admin"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue