ferrotunnel-server-0.6.0 is not a library.
ferrotunnel-server
CLI server binary for FerroTunnel.
Installation
Usage
Options
| Option | Env Variable | Default | Description |
|---|---|---|---|
--bind |
FERROTUNNEL_BIND |
0.0.0.0:7835 |
Tunnel control plane address |
--http-bind |
FERROTUNNEL_HTTP_BIND |
0.0.0.0:8080 |
HTTP ingress address |
--token |
FERROTUNNEL_TOKEN |
(required) | Authentication token |
--log-level |
RUST_LOG |
info |
Log level |
Ports
- 7835 - Tunnel control plane (clients connect here)
- 8080 - HTTP ingress (public traffic enters here)
Example
# Start the server
# Now clients can connect and HTTP traffic on :8080 is tunneled
Library Usage
For embedding in your application, use the main ferrotunnel crate instead:
use Server;
let mut server = builder
.bind
.http_bind
.token
.build?;
server.start.await?;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.