mirror of
https://github.com/alangrainger/immich-public-proxy.git
synced 2024-12-28 03:41:58 +00:00
parent
f914193be8
commit
6ace375a5d
4 changed files with 124 additions and 1 deletions
|
@ -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",
|
||||
|
|
81
app/public/images/ipp.svg
Normal file
81
app/public/images/ipp.svg
Normal file
|
@ -0,0 +1,81 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="512"
|
||||
height="512"
|
||||
viewBox="0 0 135.46667 135.46667"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
|
||||
sodipodi:docname="ipp.svg"
|
||||
inkscape:export-filename="export shield logo.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:document-units="px"
|
||||
inkscape:zoom="0.50466821"
|
||||
inkscape:cx="183.28874"
|
||||
inkscape:cy="385.40173"
|
||||
inkscape:window-width="1404"
|
||||
inkscape:window-height="872"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" /><defs
|
||||
id="defs1" /><g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-26.587081,-55.001309)"><path
|
||||
style="display:inline;fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:6.28612;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 94.035675,58.648794 c 0,0 -23.010497,14.072533 -53.627764,16.544734 C 40.027572,129.77214 51.627903,161.91076 94.035675,186.82295 135.49259,162.48127 148.61428,129.01147 148.23393,75.193528 119.51836,73.101665 94.035675,58.648794 94.035675,58.648794 Z"
|
||||
id="path9"
|
||||
sodipodi:nodetypes="ccccc"
|
||||
inkscape:label="Outline white" /><path
|
||||
style="display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:4.32738;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 94.035675,58.648794 c 0,0 -23.010497,14.072533 -53.627764,16.544734 C 40.027572,129.77214 51.627903,161.91076 94.035675,186.82295 135.49259,162.48127 148.61428,129.01147 148.23393,75.193528 119.51836,73.101665 94.035675,58.648794 94.035675,58.648794 Z"
|
||||
id="path7"
|
||||
sodipodi:nodetypes="ccccc"
|
||||
inkscape:label="Black background" /><g
|
||||
id="g1"
|
||||
inkscape:label="Iris"
|
||||
style="display:inline"
|
||||
transform="matrix(0.72546093,0,0,0.72546093,17.967926,15.100008)"><path
|
||||
style="fill:#1e83f7;fill-opacity:1;stroke:none;stroke-width:5.965;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 86.766989,132.37864 c -18.174776,9.17466 -31.275647,18.81594 -43.776698,33.02912 17.128668,37.70452 38.434149,55.59644 61.077669,71.03884 l 22.28156,-14.41748 C 91.398059,204.37864 87.318317,170.43404 86.766989,132.37864 Z"
|
||||
id="path2"
|
||||
sodipodi:nodetypes="ccccc" /><path
|
||||
style="fill:#ed79b5;fill-opacity:1;stroke:none;stroke-width:5.965;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 104.06796,119.00971 C 65.597415,131.14149 54.947983,144.86305 39.844659,158.3301 32.961554,136.17767 29.177833,111.44242 30.669902,82.310678 l 15.46602,-2.097087 c 20.940182,10.284097 42.395263,19.731486 57.932038,38.796119 z"
|
||||
id="path3"
|
||||
sodipodi:nodetypes="ccccc" /><path
|
||||
style="fill:#fa2921;fill-opacity:1;stroke:none;stroke-width:5.965;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 121.63106,132.90291 c 10.58855,-17.43385 18.36713,-36.437437 19.6602,-57.932038 L 104.85437,60.553398 C 87.902913,69.293709 73.572816,73.442438 56.621359,78.902911 83.165046,89.429996 105.74835,106.30765 121.63106,132.90291 Z"
|
||||
id="path4"
|
||||
sodipodi:nodetypes="ccccc" /><path
|
||||
style="fill:#ffb400;fill-opacity:1;stroke:none;stroke-width:5.965;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 115.07767,153.34952 c 16.15226,-21.4034 29.82804,-44.35563 32.76699,-75.495153 l 31.45631,5.766991 c -0.72135,22.596812 -2.40333,48.289242 -7.86408,71.563102 -21.75796,1.90305 -38.3729,0.70664 -56.35922,-1.83494 z"
|
||||
id="path5"
|
||||
sodipodi:nodetypes="ccccc" /><path
|
||||
style="fill:#18c249;fill-opacity:1;stroke:none;stroke-width:5.965;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 93.582523,154.66019 c 4.591223,24.57215 8.458557,49.48495 36.174757,63.17476 13.82406,-11.02345 27.50056,-26.17856 40.63107,-56.62136 -25.27962,2.9367 -50.82804,1.67868 -76.805827,-6.5534 z"
|
||||
id="path6"
|
||||
sodipodi:nodetypes="cccc" /></g><path
|
||||
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:4.32738;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 94.035675,58.648794 c 0,0 -23.010497,14.072533 -53.627764,16.544734 C 40.027572,129.77214 51.627903,161.91076 94.035675,186.82295 135.49259,162.48127 148.61428,129.01147 148.23393,75.193528 119.51836,73.101665 94.035675,58.648794 94.035675,58.648794 Z"
|
||||
id="path1"
|
||||
sodipodi:nodetypes="ccccc"
|
||||
inkscape:label="Outline black" /></g></svg>
|
After Width: | Height: | Size: 5 KiB |
|
@ -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
|
||||
*/
|
||||
|
|
29
app/views/home.ejs
Normal file
29
app/views/home.ejs
Normal file
|
@ -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>
|
Loading…
Reference in a new issue