Crates.io | proxyboi |
lib.rs | proxyboi |
version | 0.5.0 |
source | src |
created_at | 2019-08-19 01:27:01.835956 |
updated_at | 2021-05-30 08:45:55.850341 |
description | A super simple reverse proxy with TLS support |
homepage | |
repository | https://github.com/svenstaro/proxyboi |
max_upload_size | |
id | 157952 |
size | 566,124 |
A super simple reverse proxy with TLS support
In order to listen for proxy requests on all local interfaces on port 8080 and proxy them to a service running at example.com, do:
proxyboi -l 0.0.0.0:8080 http://example.com
You can also feed your TLS certificates into it:
proxyboi -l 0.0.0.0:8080 --cert mycert.pem --key mykey.key http://example.com
You can see a detailed (and pretty!) verbose log using -v
:
proxyboi -l 0.0.0.0:8080 http://example.com -v
proxyboi 0.5.0
Sven-Hendrik Haase <svenstaro@gmail.com>
A super simple reverse proxy with TLS support
USAGE:
proxyboi [FLAGS] [OPTIONS] <upstream>
ARGS:
<upstream> Upstream server to proxy to (eg. http://localhost:8080)
FLAGS:
-h, --help Prints help information
-k, --insecure Allow connections against upstream proxies with invalid TLS certificates
-q, --quiet Be quiet (log nothing)
-v, --verbose Be verbose (log data of incoming and outgoing requests)
-V, --version Prints version information
OPTIONS:
-l, --listen <listen> Socket to listen on [default: 0.0.0.0:8080]
--response-header <response-headers>...
Additional response headers to send to requesting client
--timeout <timeout>
Connection timeout against upstream in seconds (including DNS name resolution)
[default: 5]
--cert <tls-cert> TLS cert to use
--key <tls-key> TLS key to use
--upstream-header <upstream-headers>... Additional headers to send to upstream server
This is mostly a note for me on how to release this thing:
CHANGELOG.md
is up to date.cargo release --dry-run <version>
cargo release <version>