1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2024-12-28 20:01:57 +00:00
immich-public-proxy/healthcheck.js
2024-10-31 19:17:58 +01:00

10 lines
233 B
JavaScript

(async () => {
require('dotenv').config()
try {
const res = await fetch(process.env.PROXY_PUBLIC_URL + '/healthcheck')
if (await res.text() === 'ok') {
process.exit(0)
}
} catch (e) { }
process.exit(1)
})()