fix: image proxy defaults, custom image build and sync script reliability
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user