Documentation · Guide

Configuration reference

One fully-commented YAML file drives the agent — routes, TLS, dashboard auth, rules, reputation, challenge and sensors. No database, no cloud.

← All documentation

Where configuration lives

Every field is documented inline in config.example.yaml; the installed agent reads /etc/obsidianwaf/config.yaml. Edit it and apply with a zero-downtime reload — the agent validates the new config first and keeps the previous one if it fails.

sudo nano /etc/obsidianwaf/config.yaml
sudo systemctl reload obsidianwaf

A URL change for the hub client is the exception — that needs a full restart, not a reload.

What stays local vs. what the hub manages

Box-specific settings always live in the local file and are never overwritten remotely:

Tuning — rules mode / paranoia / rulesets / scoring / exceptions, reputation, challenge, l7dos and sensors — can be set locally or pushed as a signed policy overlay from the hub, which the agent merges onto this base config. See the Fleet management guide.

Enabling the bot challenge

Gate unproven clients behind a JavaScript proof-of-work interstitial. Set a stable secret (or OBSIDIANWAF_CHALLENGE_SECRET) so solved passes survive restarts.

challenge:
  enabled: true
  secret: "a-long-random-string"
  difficulty: 16  # ~65k hashes; raise to 18–20 to cost bots more

Because solving the puzzle needs a JavaScript runtime, verify it in a real browser: you'll see "Checking your browser…" briefly, then the page loads and an obsidianwaf_pass cookie is set; reloads are instant until it expires. curl sees the interstitial (HTTP 503, X-ObsidianWAF: challenge) but can't solve it — which is the point. The verify endpoint is handled internally and never reaches your upstream.

Next: Fleet management · Detection quality

Prefer a guided setup?

We'll help you roll out in detect mode and tune for your traffic before you enforce.