diff --git a/Cargo.lock b/Cargo.lock index 843cfe4..f1a406a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1610,7 +1610,7 @@ dependencies = [ [[package]] name = "ptth" -version = "0.1.0" +version = "1.1.0" dependencies = [ "base64 0.13.0", "blake3", @@ -1625,7 +1625,7 @@ dependencies = [ [[package]] name = "ptth_core" -version = "0.1.0" +version = "1.1.0" dependencies = [ "ctrlc", "futures", @@ -1639,7 +1639,7 @@ dependencies = [ [[package]] name = "ptth_file_server" -version = "0.1.0" +version = "1.1.0" dependencies = [ "anyhow", "arc-swap", @@ -1704,7 +1704,7 @@ dependencies = [ [[package]] name = "ptth_relay" -version = "0.1.0" +version = "1.1.0" dependencies = [ "base64 0.12.3", "blake3", @@ -1731,7 +1731,7 @@ dependencies = [ [[package]] name = "ptth_server" -version = "0.1.0" +version = "1.1.0" dependencies = [ "aho-corasick", "always_equal", diff --git a/Cargo.toml b/Cargo.toml index 69bc604..4fcc41c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ptth" -version = "0.1.0" +version = "1.1.0" authors = ["Trish"] edition = "2018" license = "AGPL-3.0" diff --git a/README.md b/README.md index b4c252b..1b4919d 100644 --- a/README.md +++ b/README.md @@ -2,22 +2,22 @@ # PTTH -An HTTP server that can run behind a firewall by connecting out to a relay. +An extroverted HTTP server that makes outgoing connections through +firewalls. ``` -Outside the tunnel -+--------+ +------------+ +-------------+ -| Client | >>> | PTTH relay | <<< | PTTH server | -+--------+ +------------+ +-------------+ +HTTP: -Inside the tunnel -+--------+ -------------- +-------------+ -| Client | >>> >>> >>> | Server | -+--------+ -------------- +-------------+ +Client --> Firewall --> Server + +PTTH: + +Client --> Firewall --> Relay <-- Firewall <-- Server ``` The server can run behind a firewall, because it is actually a special HTTP -client. +client. The relay acts as a facade, so the client is still a normal +HTTP client like Firefox, curl, or wget. ## Configuration diff --git a/crates/ptth_core/Cargo.toml b/crates/ptth_core/Cargo.toml index 937bee2..79d0a72 100644 --- a/crates/ptth_core/Cargo.toml +++ b/crates/ptth_core/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ptth_core" -version = "0.1.0" +version = "1.1.0" authors = ["Trish"] edition = "2018" license = "AGPL-3.0" diff --git a/crates/ptth_file_server_bin/Cargo.toml b/crates/ptth_file_server_bin/Cargo.toml index 8d91c39..3565543 100644 --- a/crates/ptth_file_server_bin/Cargo.toml +++ b/crates/ptth_file_server_bin/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ptth_file_server" -version = "0.1.0" +version = "1.1.0" authors = ["Trish"] edition = "2018" license = "AGPL-3.0" diff --git a/crates/ptth_relay/Cargo.toml b/crates/ptth_relay/Cargo.toml index fe3fb13..6619475 100644 --- a/crates/ptth_relay/Cargo.toml +++ b/crates/ptth_relay/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ptth_relay" -version = "0.1.0" +version = "1.1.0" authors = ["Trish"] edition = "2018" license = "AGPL-3.0" diff --git a/crates/ptth_server/Cargo.toml b/crates/ptth_server/Cargo.toml index d03c9c4..0824c84 100644 --- a/crates/ptth_server/Cargo.toml +++ b/crates/ptth_server/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ptth_server" -version = "0.1.0" +version = "1.1.0" authors = ["Trish"] edition = "2018" license = "AGPL-3.0"