conf and readme update

This commit is contained in:
MeexReay 2025-04-13 01:22:40 +03:00
parent e593decbed
commit 01dda00800
2 changed files with 25 additions and 14 deletions

View File

@ -3,22 +3,32 @@ HTTP requests redirection system
Features: Features:
- Request redirection - Request redirection
- TLS support - TLS support (via Rustls!)
- Keep-alive connections - Keep-alive connections
- Sending IP in header (X-Real-IP) - Sending IP in header (X-Real-IP)
- Multiple ip forwarding methods
- Accepts incoming ip forwarding
TODO: TODO:
- Remove panics
- Creating trees of flowgate
- Filter by headers - Filter by headers
- Modify response headers - Modify response headers
- HTTP/3 full support - HTTP/3 full support (quic/udp)
## How to use ## How to use
Firstly, download it from releases. or build from sources (read BUILD.md) \ Firstly, download it from releases. or build from sources (read BUILD.md) \
Just run it and configure in `conf.yml` file. Just run it and configure in `conf.yml` file.
### Logging
To get all logs (with debug ones), set this env var:
```
RUST_LOG=debug
```
Read more: [env_logger](https://docs.rs/env_logger/latest/env_logger/#enabling-logging)
## Configuration ## Configuration
### IP forwarding methods ### IP forwarding methods

View File

@ -1,15 +1,16 @@
http_host: localhost:80 # Http server host http_host: localhost:80 # Http server host (optional)
https_host: localhost:443 # Https server host https_host: localhost:443 # Https server host (optional)
connection_timeout: 10 # Read and write timeout of connections in seconds (optional, default - 10) connection_timeout: 10 # Read and write timeout of connections in seconds (optional, default - 10)
incoming_ip_forwarding: none # Read IP forwarding on incoming connections (optional, default - none) incoming_ip_forwarding: none # Read IP forwarding on incoming connections (optional, default - none)
threadpool_size: 10 # Size of the global threadpool (optional, default - 10)
sites: sites:
- domain: localhost # Site domain (use wildcard matching) - domain: localhost # Site domain (use wildcard matching)
host: localhost:8080 # Http server host host: localhost:8080 # Http server host
ip_forwarding: simple # IP forwarding method type (optional, default - header) ip_forwarding: simple # IP forwarding method type (optional, default - header)
enable_keep_alive: true # Enable keep-alive connections (optional, default - true) enable_keep_alive: true # Enable keep-alive connections (optional, default - true)
support_keep_alive: true # Does server supports keep-alive connections (optional, default - true) support_keep_alive: true # Does server supports keep-alive connections (optional, default - true)
# ssl_cert: "/path/to/public/certificate.txt" # Ssl public certificate file (optional) # ssl_cert: "/path/to/public/certificate.txt" # Ssl public certificate file (optional)
# ssl_key: "/path/to/private/key.txt" # Ssl private key file (optional) # ssl_key: "/path/to/private/key.txt" # Ssl private key file (optional)
replace_host: "meex.lol" # Replace Host header in requests to server (optional) replace_host: "meex.lol" # Replace Host header in requests to server (optional)