fix: image proxy defaults, custom image build and sync script reliability

This commit is contained in:
2026-02-23 12:29:26 +01:00
parent b1859c15ce
commit 477a3bb8ce
5 changed files with 19 additions and 31 deletions

View File

@@ -16,7 +16,7 @@ async function isImgproxyDown() {
const now = Date.now();
if (now - imgproxyStatus.lastCheck > 60000) {
try {
const imgproxyUrl = process.env.IMGPROXY_URL || 'https://img.infra.mintel.me';
const imgproxyUrl = process.env.IMGPROXY_URL || 'http://klz-imgproxy:8080';
const checkUrl = imgproxyUrl.startsWith('http') ? imgproxyUrl : `https://${imgproxyUrl}`;
const res = await fetch(checkUrl, { signal: AbortSignal.timeout(2000) });
imgproxyStatus.isDown = res.status >= 500;