sni-vhost-proxy

command module
v0.0.0-...-13dc38f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 14 Imported by: 0

README

sni-vhost-proxy

A simple routing proxy in Go. Accepts incoming connections on ports 80 and 443.

  • Connections on port 80 are assumed to be HTTP. A hostname is extracted from each using the HTTP "Host" header.
  • Connections on port 443 are assumed to be TLS. A hostname is extracted from the server name indication in the ClientHello bytes. Currently non-TLS SSL connections and TLS connections without SNIs are dropped messily.

Once a hostname has been extracted from the incoming connection, the proxy looks up a backend from a local redis server at the REDIS_HOST environment variable

MIT licensed

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL