feat(v2): add bterminal-relay WebSocket server binary
Standalone Rust binary for remote machine management. WebSocket server with token auth (--port, --token, --insecure CLI flags via clap). Routes RelayCommand to PtyManager/SidecarManager from bterminal-core, forwards RelayEvent over WebSocket. Rate limiting on auth failures (10 attempts, 5min lockout). Per-connection isolated managers.
This commit is contained in:
parent
f894c2862c
commit
cf37b572cf
2 changed files with 340 additions and 0 deletions
22
v2/bterminal-relay/Cargo.toml
Normal file
22
v2/bterminal-relay/Cargo.toml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[package]
|
||||
name = "bterminal-relay"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "Remote relay server for BTerminal multi-machine support"
|
||||
license = "MIT"
|
||||
|
||||
[[bin]]
|
||||
name = "bterminal-relay"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
bterminal-core = { path = "../bterminal-core" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
log = "0.4"
|
||||
env_logger = "0.11"
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tokio-tungstenite = { version = "0.21", features = ["native-tls"] }
|
||||
futures-util = "0.3"
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
uuid = { version = "1", features = ["v4"] }
|
||||
Loading…
Add table
Add a link
Reference in a new issue