@@ -143,6 +143,7 @@ There are some additional configuration options you can change, for example the
|
|||||||
| `downloadOriginalPhoto` | Set to `false` if you only want people to be able to download the 'preview' quality photo, rather than your original photo. |
|
| `downloadOriginalPhoto` | Set to `false` if you only want people to be able to download the 'preview' quality photo, rather than your original photo. |
|
||||||
| `showGalleryTitle` | Show a title on the gallery page. |
|
| `showGalleryTitle` | Show a title on the gallery page. |
|
||||||
| `allowDownloadAll` | Allow visitors to download all files as a zip. |
|
| `allowDownloadAll` | Allow visitors to download all files as a zip. |
|
||||||
|
| `showHomePage` | Set to `false` to remove the IPP shield page at `/` and at `/share` |
|
||||||
|
|
||||||
### lightGallery
|
### lightGallery
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -8,7 +8,8 @@
|
|||||||
"singleItemAutoOpen": true,
|
"singleItemAutoOpen": true,
|
||||||
"downloadOriginalPhoto": true,
|
"downloadOriginalPhoto": true,
|
||||||
"showGalleryTitle": false,
|
"showGalleryTitle": false,
|
||||||
"allowDownloadAll": false
|
"allowDownloadAll": false,
|
||||||
|
"showHomePage": true
|
||||||
},
|
},
|
||||||
"lightGallery": {
|
"lightGallery": {
|
||||||
"controls": true,
|
"controls": true,
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "immich-public-proxy",
|
"name": "immich-public-proxy",
|
||||||
"version": "1.5.4",
|
"version": "1.5.6",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "immich-public-proxy",
|
"name": "immich-public-proxy",
|
||||||
"version": "1.5.4",
|
"version": "1.5.6",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"archiver": "^7.0.1",
|
"archiver": "^7.0.1",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "immich-public-proxy",
|
"name": "immich-public-proxy",
|
||||||
"version": "1.5.5",
|
"version": "1.5.6",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "ts-node src/index.ts",
|
"dev": "ts-node src/index.ts",
|
||||||
"build": "npx tsc",
|
"build": "npx tsc",
|
||||||
|
|||||||
+7
-5
@@ -7,7 +7,7 @@ import dayjs from 'dayjs'
|
|||||||
import { Request, Response, NextFunction } from 'express-serve-static-core'
|
import { Request, Response, NextFunction } from 'express-serve-static-core'
|
||||||
import { AssetType, ImageSize } from './types'
|
import { AssetType, ImageSize } from './types'
|
||||||
import { decrypt } from './encrypt'
|
import { decrypt } from './encrypt'
|
||||||
import { log, toString, addResponseHeaders } from './functions'
|
import { log, toString, addResponseHeaders, getConfigOption } from './functions'
|
||||||
|
|
||||||
// Extend the Request type with a `password` property
|
// Extend the Request type with a `password` property
|
||||||
declare module 'express-serve-static-core' {
|
declare module 'express-serve-static-core' {
|
||||||
@@ -131,13 +131,15 @@ app.get('/share/:type(photo|video)/:key/:id/:size?', checkPassword, async (req,
|
|||||||
* It was requested here to have *something* on the home page:
|
* It was requested here to have *something* on the home page:
|
||||||
* https://github.com/alangrainger/immich-public-proxy/discussions/19
|
* 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
|
* If you don't want to see this, set showHomePage as false in your config.json:
|
||||||
* reverse proxy config, or even redirect to 404 if you like.
|
* https://github.com/alangrainger/immich-public-proxy?tab=readme-ov-file#immich-public-proxy-options
|
||||||
*/
|
*/
|
||||||
app.get(/^\/(|share)\/*$/, (_req, res) => {
|
if (getConfigOption('ipp.showHomePage', true)) {
|
||||||
|
app.get(/^\/(|share)\/*$/, (_req, res) => {
|
||||||
addResponseHeaders(res)
|
addResponseHeaders(res)
|
||||||
res.render('home')
|
res.render('home')
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Send a 404 for all other routes
|
* Send a 404 for all other routes
|
||||||
|
|||||||
Reference in New Issue
Block a user