Skip to content

Commit

Permalink
Add a redirect for the console bare domain
Browse files Browse the repository at this point in the history
  • Loading branch information
jianglai committed Jan 9, 2025
1 parent 1cbbc66 commit b90037a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jetty/kubernetes/gateway/nomulus-route-console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ spec:
- "console.BASE_DOMAIN"
rules:
- matches:
- path:
type: Exact
value: /
- path:
type: PathPrefix
value: /console-api
Expand All @@ -22,6 +25,12 @@ spec:
name: console
port: 80
- matches:
- path:
type: Exact
value: /
headers:
- name: "canary"
value: "true"
- path:
type: PathPrefix
value: /console-api
Expand Down
5 changes: 5 additions & 0 deletions jetty/src/main/jetty-base/webapps/root/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!doctype html>
<meta http-equiv="refresh" content="0;URL=/console">
<title>Nomulus</title>
<body lang="en-US">
If this page doesn't change automatically, please click <a href="/console">here</a>

0 comments on commit b90037a

Please sign in to comment.