Crates.io | reverse_proxy |
lib.rs | reverse_proxy |
version | 0.3.0 |
source | src |
created_at | 2021-11-01 04:27:42.866935 |
updated_at | 2022-01-25 04:52:01.578998 |
description | TLS wrapper based on warp-reverse-proxy |
homepage | |
repository | https://github.com/pshc/reverse_proxy |
max_upload_size | |
id | 475011 |
size | 41,836 |
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.
$ cd tls
$ ./build-cert.sh
Then (on MacOS) drag tls/ecdsa/ca.cert
into your login keychain and set it to trusted.
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/
$ sudo setcap CAP_NET_BIND_SERVICE=+eip <binary>
$ PORT=443 <binary>