reverse_proxy

Crates.ioreverse_proxy
lib.rsreverse_proxy
version0.3.0
sourcesrc
created_at2021-11-01 04:27:42.866935
updated_at2022-01-25 04:52:01.578998
descriptionTLS wrapper based on warp-reverse-proxy
homepage
repositoryhttps://github.com/pshc/reverse_proxy
max_upload_size
id475011
size41,836
Publish (github:image-rs:publish)

documentation

README

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>
Commit count: 6

cargo fmt