From f4f471f462b47d8810b77a22926fb43b58ed3457 Mon Sep 17 00:00:00 2001 From: Loek Duys Date: Tue, 23 Jul 2024 08:54:46 +0200 Subject: [PATCH 1/2] Update app.bicep --- 03-Gateway/app.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03-Gateway/app.bicep b/03-Gateway/app.bicep index 19418d5..6e96117 100644 --- a/03-Gateway/app.bicep +++ b/03-Gateway/app.bicep @@ -62,7 +62,7 @@ resource blue 'Applications.Core/containers@2023-10-01-preview' = { resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { - name: 'buggy-gateway' + name: 'gateway01' properties: { application: app.id environment: env.id From 71fada7d3661290a31cf05a26c735a0469951388 Mon Sep 17 00:00:00 2001 From: Loek Duys Date: Tue, 23 Jul 2024 08:58:00 +0200 Subject: [PATCH 2/2] Update readme.md --- 03-Gateway/readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/03-Gateway/readme.md b/03-Gateway/readme.md index 6c8d8da..403a24d 100644 --- a/03-Gateway/readme.md +++ b/03-Gateway/readme.md @@ -34,15 +34,15 @@ Please note that currently the **Gateway doesn't work when running with K3d**. S - Open a terminal - Call the Blue API: - - `curl http://localhost/blue/api/color/` + - `curl -HHost:test.loekd.com http://localhost/blue/api/color/` - Path rewriting will strip the matched word from the path and forward the request to the downstream (blue) API. - Call the Green API: - - `curl http://localhost/api/color/` + - `curl -HHost:test.loekd.com http://localhost/api/color/` - No path rewriting configured, so the path will be forwarded to the downstream (green) API. - Call the main site: - - `curl http://localhost` + - `curl -HHost:test.loekd.com http://localhost` - No path rewriting configured, so the path will be forwarded to the downstream Nginx. @@ -53,4 +53,4 @@ Please note that currently the **Gateway doesn't work when running with K3d**. S - `kubectl delete ns test-demo03` - `rad env delete test -y` -- `rad group delete test -y` \ No newline at end of file +- `rad group delete test -y`