http and https reverse proxy server
Go to file
2024-12-08 15:51:43 +03:00
src fix chunked data 2024-12-08 15:51:43 +03:00
.gitignore configi shamanstvo 2024-10-04 00:46:10 +03:00
Cargo.toml websocket 2024-11-22 16:08:06 +03:00
conf.yml chunked 2024-11-24 01:23:16 +03:00
README.md replace_host 2024-11-23 15:05:48 +03:00

Flowgate

HTTP requests redirection system

Features:

  • Request redirection
  • SSL/TLS support
  • Keep-alive connections
  • Sending IP in header (X-Real-IP)

TODO:

  • Rustls support
  • Remove panics
  • Creating trees of flowgate

IP forwarding types

  • None (none):
    Do nothing
  • Modern (modern):
    Appends encoded to bytes ip to the beginning of the request
  • Simple (simple):
    Appends ip:port\n to the beginning of the request
  • Header (header[:HEADER_NAME]):
    Adds header HEADER_NAME: ip:port to the request

How to run

You need Rust installed with cargo!

Rust features:

  • use-openssl
  • use-rustls (rustls - openssl alternative)
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