A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
schedule token pruning and file indexing on staging and prod
aminnausinbd9994dec3b8
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.phpindex e6b9960e..efad9001 100644--- a/app/Console/Kernel.php+++ b/app/Console/Kernel.php@@ -2,6 +2,7 @@namespace App\Console;+use App\Jobs\IndexFiles;use Illuminate\Console\Scheduling\Schedule;use Illuminate\Foundation\Console\Kernel as ConsoleKernel;@@ -13,6 +14,8 @@ class Kernel extends ConsoleKernelprotected function schedule(Schedule $schedule): void{// $schedule->command('inspire')->hourly();+ $schedule->job(new IndexFiles)->daily()->environments(['staging', 'production']);+ $schedule->command('sanctum:prune-expired --hours=2')->daily();}/**diff --git a/config/sanctum.php b/config/sanctum.phpindex 9e37acb6..b1f6cdcf 100644--- a/config/sanctum.php+++ b/config/sanctum.php@@ -47,7 +47,7 @@ return [|*/- 'expiration' => 60,+ 'expiration' => 120,/*|--------------------------------------------------------------------------