Update healthcheck

This commit is contained in:
Alan Grainger
2024-11-02 22:38:43 +01:00
parent 69d88fa849
commit caced325bd
5 changed files with 6 additions and 8 deletions
-4
View File
@@ -1,4 +0,0 @@
IMMICH_URL=http://localhost:2283
PROXY_PUBLIC_URL=https://your-proxy-url.com
PORT=3000
CACHE_AGE=2592000
+1 -2
View File
@@ -1,7 +1,6 @@
(async () => {
try {
require('dotenv').config()
const res = await fetch(process.env.PROXY_PUBLIC_URL + '/healthcheck')
const res = await fetch('http://localhost:3000/healthcheck')
if (await res.text() === 'ok') {
process.exit(0)
}