http and https reverse proxy server
Go to file
2024-09-20 14:51:50 +03:00
src close stream after response send 2024-09-20 14:51:50 +03:00
Cargo.toml update gitignore and cargo toml 2024-09-14 15:02:38 +03:00
conf.yml timeout and threadpool settings 2024-09-14 15:09:08 +03:00
explaination.png init commit 2024-06-06 00:28:16 +03:00
README.md update readme 2024-09-14 15:17:05 +03:00

Flowgate

HTTP requests redirection system

Features:

  • Request redirection
  • SSL/TLS support
  • Keep-alive connections
  • Rustls support (not yet)

Config

Default conf.yml:

http_host: localhost:80           # Http server host
https_host: localhost:443         # Https server host

threadpool_size: 10            # Threadpool size (count of threads that accept requests)
connection_timeout: 10         # Read and write timeout of connections in seconds

sites:
  - domain: localhost                                # Site domain
    host: localhost:8080                             # Http server host
    support_keep_alive: false                        # Does server supports keep-alive connections
    # ssl_cert: "/path/to/public/certificate.txt"    # Ssl public certificate file (optional)
    # ssl_key: "/path/to/private/key.txt"            # Ssl private key file (optional)

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