2 unstable releases
0.2.0 | Jun 25, 2024 |
---|---|
0.1.0 | Jul 5, 2023 |
#470 in Web programming
24 downloads per month
26KB
456 lines
yxorp
A reverse proxy with live reload and TLS support.
Installation
cargo install yxorp
Usage
yxorp
Live reload
kill -HUP <pid>
Configuration
Environment variables:
HTTP_PORT
: Port to bind the HTTP server. Defaults to8080
.HTTPS_PORT
: Port to bind the HTTPS server. Defaults to8443
.CONFIG_FILE
: Path to the configuration file. Defaults toconfig.toml
.
Configuration file:
cert_file = "cert.pem"
key_file = "key.pem"
[[routes]]
host = "example.com"
address = "192.168.0.1:80"
[[routes]]
host = "example.net"
address = "192.168.0.2:80"
[[routes]]
host = "*.example.com"
address = "192.168.0.3:80"
[[routes]]
host = "*"
address = "192.168.0.4:80"
Dependencies
~13–22MB
~411K SLoC