YAML Configuration¶
Complete reference for YAML configuration options.
Full Example¶
# oxideshield.yaml
# Guard configuration
guards:
pattern:
enabled: true
severity_threshold: medium
custom_patterns:
- pattern: "internal only"
category: proprietary
severity: high
length:
enabled: true
max_chars: 10000
max_tokens: 4000
encoding:
enabled: true
max_unicode_ratio: 0.3
pii:
enabled: true
redaction: mask
block_on_detect: false
categories:
- email
- phone
- credit_card
toxicity:
enabled: true
threshold: 0.7
perplexity:
enabled: false
threshold: 100.0
# Pipeline configuration
pipeline:
strategy: fail_fast # fail_fast, unanimous, majority, weighted
timeout_ms: 100
# Proxy configuration
proxy:
listen: "0.0.0.0:8080"
upstreams:
anthropic:
url: "https://api.anthropic.com"
timeout_ms: 30000
openai:
url: "https://api.openai.com"
timeout_ms: 30000
# Dashboard configuration
dashboard:
listen: "0.0.0.0:9090"
cors: true
# Logging
logging:
level: info
format: json