Skip to content

Commit

Permalink
CLDR-14145 add redirect and icon
Browse files Browse the repository at this point in the history
- add a ROOT directory which will go in the server root
- add the favicon.ico from unicode.org/favicon.ico

Fixes: #19
Fixes: #18
  • Loading branch information
srl295 committed Sep 8, 2020
1 parent a10ba47 commit 4c6367e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UnicodeJsps/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# parent ignores *.d files.

!/jetty.d
1 change: 1 addition & 0 deletions UnicodeJsps/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN ant -DCATALINA_HOME=${CATALINA_HOME} war
FROM jetty:9-jre11-slim AS run
# FROM tomcat:9-jdk14-openjdk-slim-buster AS run
ADD port-entrypoint.sh /port-entrypoint.sh
ADD ./jetty.d/ROOT /var/lib/jetty/webapps/ROOT/
ENTRYPOINT [ "/port-entrypoint.sh" ]
COPY --from=build /home/UnicodeJsps.war /var/lib/jetty/webapps/
# This is the default PORT. Override by setting PORT.
Expand Down
Binary file added UnicodeJsps/jetty.d/ROOT/favicon.ico
Binary file not shown.
14 changes: 14 additions & 0 deletions UnicodeJsps/jetty.d/ROOT/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<html>

<head>
<title>Unicode Utilities | Redirect</title>
<meta http-equiv="refresh" content="0;URL='/UnicodeJsps'" />
</head>

<body>
<h1><a href="https://www.unicode.org"><img alt="icon" src="/favicon.ico" />Unicode Utilities</a></h1>
<h2>Redirecting...</h2>
You should have been redirected here: <a href="/UnicodeJsps">/UnicodeJsps</a>
</body>

</html>

0 comments on commit 4c6367e

Please sign in to comment.