Avalon

High-Performance Reverse Proxy

Powered by Cloudflare Pingora, Built with Rust

Automatic HTTPS Hot Reload Rhai Scripting

Features

Performance & Reliability

  • Cloudflare Pingora Engine
  • Rust Memory Safety
  • Zero-Downtime Hot Reload
  • Connection Pooling & Reuse

Security

  • Automatic HTTPS - Let's Encrypt, ZeroSSL, Google, Buypass
  • IP Filtering (CIDR)
  • Rate Limiting
  • Authentication - Basic, API Key, JWT

Advanced Features

  • Load Balancing - 5+ Algorithms
  • Response Caching
  • Gzip/Brotli Compression
  • Rhai Script Extension

Comparison

Feature Avalon Caddy Nginx HAProxy
Language Rust Go C C
Auto HTTPS
Hot Reload Partial Partial
Scripting Rhai - Lua -
Config Format TOML Caddyfile Proprietary Proprietary

Performance Benchmark

Static file serving with identical resource limits (1 CPU, 256MB RAM)

nginx
27,335 req/s
Avalon
13,996 req/s
Caddy
11,880 req/s

Tested with wrk (4 threads, 100 connections, 10s). Higher is better.

Quick Start

1

Create configuration file

# avalon.toml - Simplified format
[tls]
email = "[email protected]"

[http]
bind = ":443"

[[routes]]
match = "/*"

[routes.handler]
type = "reverse_proxy"
upstreams = ["127.0.0.1:8080"]
2

Run Avalon

# Download and run
curl -LO https://github.com/neomody77/avalon/releases/latest/download/avalon
chmod +x avalon
./avalon --config avalon.toml