mirror of
https://github.com/alangrainger/immich-public-proxy.git
synced 2024-12-29 12:21:57 +00:00
10 lines
235 B
JavaScript
10 lines
235 B
JavaScript
(async () => {
|
|
try {
|
|
require('dotenv').config()
|
|
const res = await fetch(process.env.PROXY_PUBLIC_URL + '/healthcheck')
|
|
if (await res.text() === 'ok') {
|
|
process.exit(0)
|
|
}
|
|
} catch (e) { }
|
|
process.exit(1)
|
|
})()
|