yxorp

Crates.ioyxorp
lib.rsyxorp
version0.2.0
sourcesrc
created_at2023-07-05 16:40:40.097893
updated_at2024-06-25 12:04:26.591203
descriptionA reverse proxy with live reload and TLS support.
homepage
repositoryhttps://github.com/pufmat/yxorp
max_upload_size
id909223
size82,275
Pufferfish (pufmat)

documentation

README

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 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:

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

cargo fmt