
✨ Features: • HTTP/1.1, HTTP/2, and HTTP/3 support with proper architecture • Reverse proxy with advanced load balancing (round-robin, least-conn, etc.) • Static file serving with content-type detection and security • Revolutionary file sync system with WebSocket real-time updates • Enterprise-grade health monitoring (active/passive checks) • TLS/HTTPS with ACME/Let's Encrypt integration • Dead simple JSON configuration + full Caddy v2 compatibility • Comprehensive test suite (72 tests passing) 🏗️ Architecture: • Rust-powered async performance with zero-cost abstractions • HTTP/3 as first-class citizen with shared routing core • Memory-safe design with input validation throughout • Modular structure for easy extension and maintenance 📊 Status: 95% production-ready 🧪 Test Coverage: 72/72 tests passing (100% success rate) 🔒 Security: Memory safety + input validation + secure defaults Built with ❤️ in Rust - Start simple, scale to enterprise!
54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
{
|
|
"admin": {
|
|
"listen": ":2019"
|
|
},
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"proxy_server": {
|
|
"listen": [":8080"],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"matcher": "path",
|
|
"paths": ["/api/*"]
|
|
}
|
|
],
|
|
"handle": [
|
|
{
|
|
"handler": "reverse_proxy",
|
|
"upstreams": [
|
|
{
|
|
"dial": "localhost:3000"
|
|
},
|
|
{
|
|
"dial": "localhost:3001"
|
|
}
|
|
],
|
|
"load_balancing": {
|
|
"selection_policy": {
|
|
"policy": "round_robin"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "static_response",
|
|
"status_code": 200,
|
|
"headers": {
|
|
"Content-Type": ["application/json"]
|
|
},
|
|
"body": "{\"message\": \"Caddy-RS Reverse Proxy is running!\", \"version\": \"0.2.0\", \"features\": [\"TLS\", \"HTTP2\", \"Load Balancing\", \"File Sync\"]}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |