1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2024-12-28 03:41:58 +00:00

Merge pull request #40 from Jaculabilis/ipp-config

Enable locating config.json at IPP_CONFIG
This commit is contained in:
Alan Grainger 2024-12-12 09:01:43 +13:00 committed by GitHub
commit 69db5600a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@ import { Response } from 'express-serve-static-core'
let config = {} let config = {}
try { try {
const configJson = require('../config.json') const configJson = require(process.env.IPP_CONFIG || '../config.json')
if (typeof configJson === 'object') config = configJson if (typeof configJson === 'object') config = configJson
} catch (e) { } } catch (e) { }