diff --git a/Cargo.lock b/Cargo.lock index 3ca97b5..c66a683 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,6 +186,25 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "dev-proxy" +version = "0.1.0" +dependencies = [ + "anyhow", + "axum", + "bytes", + "http 1.3.1", + "reqwest", + "serde", + "serde_json", + "thiserror", + "tokio", + "tower", + "tower-http", + "tracing", + "tracing-subscriber", +] + [[package]] name = "displaydoc" version = "0.2.5" @@ -617,25 +636,6 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956" -[[package]] -name = "localhost-proxy" -version = "0.1.0" -dependencies = [ - "anyhow", - "axum", - "bytes", - "http 1.3.1", - "reqwest", - "serde", - "serde_json", - "thiserror", - "tokio", - "tower", - "tower-http", - "tracing", - "tracing-subscriber", -] - [[package]] name = "log" version = "0.4.27" diff --git a/Cargo.toml b/Cargo.toml index 235de2c..1fab4c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,3 @@ [workspace] -members = ["packages/localhost-proxy"] +members = ["packages/dev-proxy"] resolver = "3" \ No newline at end of file diff --git a/README.md b/README.md index 5240399..8b47fa6 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ flowchart LR subgraph L[Local Machine] direction TB user[Developer Browser] - proxy[localhost-proxy HTTP] + proxy[dev-proxy HTTP] host[Port Mapping Layer] registry[Local Docker Registry] @@ -87,7 +87,7 @@ configurationsStack --> apps ``` -The localhost-proxy accepts HTTP on port 3000 and forwards HTTPS to the ingress controller inside the Kind cluster. Traffic is routed through ingress to services secured by ZITADEL and PostgreSQL, with Cert-Manager handling TLS. CDKTF provisions the cluster, core components, and app configs. +The dev-proxy accepts HTTP on port 3000 and forwards HTTPS to the ingress controller inside the Kind cluster. Traffic is routed through ingress to services secured by ZITADEL and PostgreSQL, with Cert-Manager handling TLS. CDKTF provisions the cluster, core components, and app configs. ## Developer Notes For platforms other than Darwin, you'll need to trust root certificates manually. diff --git a/packages/localhost-proxy/Cargo.toml b/packages/dev-proxy/Cargo.toml similarity index 93% rename from packages/localhost-proxy/Cargo.toml rename to packages/dev-proxy/Cargo.toml index a25b7b7..ec80a6c 100644 --- a/packages/localhost-proxy/Cargo.toml +++ b/packages/dev-proxy/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "localhost-proxy" +name = "dev-proxy" version = "0.1.0" edition = "2024" authors = ["Geoff Seemueller <28698553+geoffsee@users.noreply.github.com>"] [[bin]] -name = "localhost-proxy" +name = "dev-proxy" path = "src/main.rs" [dependencies] diff --git a/packages/dev-proxy/README.md b/packages/dev-proxy/README.md new file mode 100644 index 0000000..8363ca6 --- /dev/null +++ b/packages/dev-proxy/README.md @@ -0,0 +1 @@ +This server brokers http requests to https to make development easier. \ No newline at end of file diff --git a/packages/localhost-proxy/src/main.rs b/packages/dev-proxy/src/main.rs similarity index 100% rename from packages/localhost-proxy/src/main.rs rename to packages/dev-proxy/src/main.rs diff --git a/packages/localhost-proxy/README.md b/packages/localhost-proxy/README.md deleted file mode 100644 index 07c33fd..0000000 --- a/packages/localhost-proxy/README.md +++ /dev/null @@ -1 +0,0 @@ -This server brokers https requests to http to make development easier. \ No newline at end of file