Skip to content

Commit

Permalink
Fix #22 #19
Browse files Browse the repository at this point in the history
  • Loading branch information
alangrainger committed Nov 15, 2024
1 parent f914193 commit 6ace375
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "immich-public-proxy",
"version": "1.4.4",
"version": "1.4.5",
"scripts": {
"dev": "ts-node src/index.ts",
"build": "npx tsc",
Expand Down
81 changes: 81 additions & 0 deletions app/public/images/ipp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,19 @@ app.get('/healthcheck', async (_req, res) => {
}
})

/*
* [ROUTE] Home page
*
* It was requested here to have *something* on the home page:
* https://github.com/alangrainger/immich-public-proxy/discussions/19
*
* If you don't want to see this, you can redirect to a URL of your choice by changing your
* reverse proxy config, or even redirect to 404 if you like.
*/
app.get('/', (_req, res) => {
res.render('home')
})

/*
* Send a 404 for all other routes
*/
Expand Down
29 changes: 29 additions & 0 deletions app/views/home.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title></title>
<style>
html, body {
margin: 0;
height: 100vh;
background: #262626;
}
body {
display: flex;
justify-content: center;
align-items: center;
}
img {
max-width: 280px;
height: 280px;
opacity: 0.3;
}
</style>
</head>
<body>
<div class="container">
<a href="https://github.com/alangrainger/immich-public-proxy"><img src="/images/ipp.svg" alt=""></a>
</div>
</body>
</html>

0 comments on commit 6ace375

Please sign in to comment.