Reference
Configuration schema, environment variables, and per-module guard reference for Defend.
Use this section when you need exact shapes: what belongs in defend.config.yaml, which environment variables the process reads, and how each guard module is configured in YAML. The HTTP API field lists live under API; here the focus is files, env, and module keys that map to behavior in code.
Invalid configuration fails fast at startup with a validation message, so treating this reference as the source of truth while editing YAML saves debugging time.
Configuration and environment
One YAML file in the working directory plus optional .env or process env for secrets and overrides.
Configuration
defend.config.yaml structure validated by DefendConfig.
Environment variables
.env and process env keys from Settings.
Guard modules
Each module has a dedicated page: YAML key, direction (input or output), module-specific options, and a short example block.