immich-public-proxy/healthcheck.js

11 lines
235 B
JavaScript
Raw Normal View History

2024-10-31 14:17:58 -04:00
(async () => {
try {
2024-10-31 14:24:39 -04:00
require('dotenv').config()
2024-10-31 14:17:58 -04:00
const res = await fetch(process.env.PROXY_PUBLIC_URL + '/healthcheck')
if (await res.text() === 'ok') {
process.exit(0)
}
} catch (e) { }
process.exit(1)
})()