reverse proxy
without the overhead

HTTPS, load balancing, cluster mode, plugins, HTTP/3,
an admin UI and more.

docker run -p 80:80 -p 443:443 -v ./config:/etc/superconfig luizfonseca/super
294krequests/s on 4 threads
12.4µsCPU per request(that's 0.0124 milliseconds)
6MBmemory when idle
21GB/sthroughput on file transfers

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.

config.hcl
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 expire
    • upstream upstreamRequests spread across both, retried when one fails
    • rate_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.

  • request
    • rule "scanners"/.env, /.git and the like answered with a 404 while never reaching the app
    • rule "limit writes"On /api, anything but GET and HEAD, 60 a minute
    • upstream "api:4000"What's left, forwarded
config.hcl
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.

~170 nsfor 100 rules(that's 0.00017 milliseconds)
~1.2 µsfor 1,000 rules(that's 0.0012 milliseconds)
~14 µsfor a whole request, for scale(that's 0.014 milliseconds)

Everything a reverse proxy needs and more

Spec compliant

HTTP/1.1, HTTP/2, HTTP/3 and WebSockets.

SpecificationSuitePassing
HTTP/2, RFC 9113 and 7541h2spec146/146
Proxies, RFC 9110, 9112, 9113 and 9114Super's own table23/23
WebSockets, RFC 6455Autobahn301/301
HTTP/3, RFC 9114, 9204, 9000 and 9001h3spec64/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