http and https reverse proxy server
src | ||
.gitignore | ||
Cargo.toml | ||
conf.yml | ||
README.md |
Flowgate
HTTP requests redirection system
Features:
- Request redirection
- SSL/TLS support
- Keep-alive connections
- Sending IP in header (X-Real-IP)
TODO:
- Remove panics
- Creating trees of flowgate
- Filter by headers
- Modify response headers
IP forwarding types
- None (
none
):
Do nothing - Modern (
modern
):
Appends encoded to bytes ip to the beginning of the request - Simple (
simple
):
Appendsip:port\n
to the beginning of the request - Header (
header[:HEADER_NAME]
):
Adds headerHEADER_NAME: ip:port
to the request
How to run
You need Rust installed with cargo!
cargo run # --------------------------------- # Run
cargo run --release # ----------------------- # Run release
cargo build && sudo ./target/release/flowgate # Run with root
cargo build # ------------------------------------------------ # Build
cargo build --release # -------------------------------------- # Build release
cargo build --release --no-default-features --features FEATURE # Build with feature