From 2a01c12b14d713158be0209bae95dd090e6eec13 Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Fri, 14 Mar 2025 14:16:25 -0400 Subject: [PATCH] Add a redirect for the console bare domain (#2718) --- jetty/kubernetes/gateway/nomulus-route-console.yaml | 9 +++++++++ jetty/src/main/jetty-base/webapps/root/index.html | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 jetty/src/main/jetty-base/webapps/root/index.html diff --git a/jetty/kubernetes/gateway/nomulus-route-console.yaml b/jetty/kubernetes/gateway/nomulus-route-console.yaml index c30f8e8c2..7c8f3732e 100644 --- a/jetty/kubernetes/gateway/nomulus-route-console.yaml +++ b/jetty/kubernetes/gateway/nomulus-route-console.yaml @@ -11,6 +11,9 @@ spec: - "console.BASE_DOMAIN" rules: - matches: + - path: + type: Exact + value: / - path: type: PathPrefix value: /console-api @@ -23,6 +26,12 @@ spec: name: console port: 80 - matches: + - path: + type: Exact + value: / + headers: + - name: "canary" + value: "true" - path: type: PathPrefix value: /console-api diff --git a/jetty/src/main/jetty-base/webapps/root/index.html b/jetty/src/main/jetty-base/webapps/root/index.html new file mode 100644 index 000000000..e2e88a0f8 --- /dev/null +++ b/jetty/src/main/jetty-base/webapps/root/index.html @@ -0,0 +1,5 @@ + + +Nomulus + +If this page doesn't change automatically, please click here