Examples
Complete, production-ready configuration examples for common Sentinel use cases. Each example includes the full configuration file, setup instructions, and testing commands.
Quick Reference
| Example | Use Case | Key Features |
|---|---|---|
| Simple Proxy | Basic reverse proxy | Single upstream, health checks |
| API Gateway | API management | Versioning, auth, rate limiting |
| Load Balancer | Traffic distribution | Multiple backends, algorithms |
| Static Site | File serving | Caching, compression, SPA |
| Microservices | Service mesh | Multi-service routing |
| Security | WAF + Auth | Agents, protection layers |
| Observability | Monitoring stack | Prometheus, Grafana, tracing |
| WebSocket | Real-time apps | WS proxying, inspection |
| AI Gateway | LLM API proxy | Prompt security, PII filtering |
Getting Started
Each example follows this structure:
- Overview - What the example demonstrates
- Configuration - Complete
sentinel.kdlfile - Setup - How to run the example
- Testing - Commands to verify it works
- Customization - Common modifications
Running Examples
All examples assume Sentinel is installed:
# Install Sentinel
# Run with a configuration
For examples using agents, install the required agents first:
# Example: Install WAF and auth agents
Example Files
All configuration files in these examples are available in the sentinel-examples repository: