#https #tls #wrapper #reverse #proxy #port #warp-reverse-proxy

app reverse_proxy

TLS wrapper based on warp-reverse-proxy

3 releases (breaking)

0.3.0 Jan 25, 2022
0.2.0 Nov 2, 2021
0.1.0 Nov 1, 2021

#76 in #https

ISC license

13KB
67 lines

Reverse Proxy with TLS

Simply wraps an existing HTTP service to make it HTTPS. By default, assumes your service is on port 8080 and serves it at port 4343.

Generating certificates

$ cd tls
$ ./build-cert.sh

Then (on MacOS) drag tls/ecdsa/ca.cert into your login keychain and set it to trusted.

Operation

Return to this directory and cargo run to start proxying.

Start your HTTP service on port 8080 and see if it appears at: https://localhost:4343/

How to bind the real SSL port

$ sudo setcap CAP_NET_BIND_SERVICE=+eip <binary>
$ PORT=443 <binary>

Dependencies

~18–32MB
~606K SLoC