Inspired by the work done in Proksi, Super takes it further. Written in Rust.
It's fast
High performance and built with Rust for memory safety.
Requests per second
HTTP, 4 threads. Higher is better.
CPU per request
HTTP, 4 threads. Lower is better.
Memory under load
4 threads. Lower is better.
Linux arm64, 8 CPUs, with oha and 50 connections; nginx 1.26.3, Traefik 3.7.16, Caddy 2.11.7, Pingap 0.16.1, Proksi 0.17.4. Each proxy alone in turn, the median of three alternating rounds; nginx and Super in the latest run, the others in an earlier one on the same setup. One machine runs the proxy, the upstream and the load: a comparison, not production throughput. How it's measured.
lets_encrypt {
enabled = true
email = "[email protected]"
}
host "example.com" {
location "/" {
upstream "app:3000" {}
upstream "app:3001" {}
rate_limit {
requests = 100
per = "1m"
}
}
}
Configuration? Easy.
You can change it while Super runs, without losing a connection.
host "example.com"HTTP redirected to HTTPS; HTTP/2 and HTTP/3/span>lets_encryptCertificates renewed before they expireupstreamupstreamRequests spread across both, retried when one failsrate_limit100 requests a minute per visitor, then a 429
A powerful rule engine for advanced request control
Block, redirect, challenge, or override matching requests before they reach your services.
requestrule "scanners"/.env, /.git and the like answered with a 404 while never reaching the apprule "limit writes"On /api, anything but GET and HEAD, 60 a minuteupstream "api:4000"What's left, forwarded
host "shop.example.com" {
# Scanners never reach the app
rule "scanners" {
and {
path { contains = ["/.env", "/.git", "/wp-login"] }
}
then {
respond { status = 404 }
}
}
location "/api" {
upstream "api:4000" {}
# Reads stay free, writes get a limit
rule "limit writes" {
and {
method { not_in = ["GET", "HEAD"] }
}
then {
rate_limit {
requests = 60
per = "1m"
}
}
}
}
}
Rules were made with performance in mind. They are compiled when the configuration loads and you can add as many as you want.
Everything a reverse proxy needs and more
Automatic HTTPS
Let's Encrypt certificates, wildcards through DNS challenges, your own files, or Kubernetes secrets.
HTTP/3 and HTTP/2
QUIC for browsers that speak it, websockets over HTTP/2, and HTTP/2 or TLS to your upstreams.
Docker and Kubernetes
Containers found by their labels, and an ingress controller that sends requests straight to pods.
Plugins
Basic auth, JWT, OAuth2, forward auth, CORS, rate limits, waiting rooms, static files, compression.
Traffic
Canary splits, mirrors, retries, health checks and least-connections balancing across your upstreams.
An admin UI
Traffic as it happens, the latest requests, hosts and their rules to change, and Prometheus metrics.
Spec compliant
HTTP/1.1, HTTP/2, HTTP/3 and WebSockets.
| Specification | Suite | Passing |
|---|---|---|
| HTTP/2, RFC 9113 and 7541 | h2spec | 146/146 |
| Proxies, RFC 9110, 9112, 9113 and 9114 | Super's own table | 23/23 |
| WebSockets, RFC 6455 | Autobahn | 301/301 |
| HTTP/3, RFC 9114, 9204, 9000 and 9001 | h3spec | 64/77 (13 in libraries) |
Quick start now
# Docker
docker run -d -p 80:80 -p 443:443 -v ./config:/etc/superconfig luizfonseca/super
# Or the binary from GitHub's releases, then
super -c ./config.hcl