feat: option to refresh proxy by cron syntax, update readme

This commit is contained in:
Benjamin Nussbaum 2025-03-07 13:46:01 +01:00
parent fa85c82010
commit d400704d14
3 changed files with 9 additions and 3 deletions

View file

@ -2,4 +2,7 @@
use App\Jobs\FetchProxyCloudResponses;
Schedule::job(FetchProxyCloudResponses::class, [])->cron(sprintf('*/%s * * * *', intval(config('services.trmnl.proxy_refresh_minutes', 15))));
Schedule::job(FetchProxyCloudResponses::class, [])->cron(
config('services.trmnl.proxy_refresh_cron') ? config('services.trmnl.proxy_refresh_cron') :
sprintf('*/%s * * * *', intval(config('services.trmnl.proxy_refresh_minutes', 15)))
);