Lissy93 / web-check

🕵️‍♂️ All-in-one OSINT tool for analysing any website
https://web-check.xyz
MIT License
20.76k stars 1.53k forks source link

FEAT: Override timeout #118

Closed Lissy93 closed 3 months ago

Lissy93 commented 3 months ago

Adds the option to set the API_TIMEOUT_LIMIT environmental variable, so jobs can timeout sooner.

Implementing to keep Vercel & Netlify server costs down for the public instances. Won't affect self-hosted users, unless you manually set that env var to something less than 60000 (1 minute).

I'd recommend that you go with 20 seconds, API_TIMEOUT_LIMIT=20000, since no job should reasonably ever take longer than that, so you might save a bit of compute if something is waiting for an API response which isn't likely to arrive.


This PR also includes a few refactors, including

netlify[bot] commented 3 months ago

Deploy Preview for web-check ready!

Name Link
Latest commit ff656967293639ef73f900a792c37521c0322848
Latest deploy log https://app.netlify.com/sites/web-check/deploys/65fb58708523ae0008627152
Deploy Preview https://deploy-preview-118--web-check.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.