
✨ 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!
48 lines
1 KiB
JSON
48 lines
1 KiB
JSON
{
|
|
"admin": {
|
|
"listen": ":2019"
|
|
},
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"secure_server": {
|
|
"listen": [":8443"],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"matcher": "path",
|
|
"paths": ["/api/*", "/ws"]
|
|
}
|
|
],
|
|
"handle": [
|
|
{
|
|
"handler": "file_sync",
|
|
"root": "./sync-data",
|
|
"enable_upload": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "file_server",
|
|
"root": "./web-ui"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"tls": {
|
|
"certificates": [
|
|
{
|
|
"certificate": "./cert.pem",
|
|
"key": "./key.pem",
|
|
"subjects": ["localhost", "127.0.0.1"]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |