A reverse proxy with live reload and TLS support.
bash
cargo install yxorp
bash
yxorp
bash
kill -HUP <pid>
Environment variables:
HTTP_PORT
: Port to bind the HTTP server. Defaults to 8080
.HTTPS_PORT
: Port to bind the HTTPS server. Defaults to 8443
.CONFIG_FILE
: Path to the configuration file. Defaults to config.toml
.Configuration file:
```toml certfile = "cert.pem" keyfile = "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" ```