Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

16
routes/console.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
use App\Classes\Settings;
use App\Console\Commands\CronJob;
use App\Console\Commands\TelemetryCommand;
use Illuminate\Support\Facades\Schedule;
use Paymenter\Extensions\Servers\Proxmox\Console\Commands\PollServerStatistics;
Schedule::command(CronJob::class)->description('Runs daily to send out invoices, suspend servers, etc.')->daily();
if (config('app.telemetry_enabled')) {
$settings = Settings::getTelemetry();
Schedule::command(TelemetryCommand::class)->description('Sends telemetry data')->dailyAt($settings['hour'], $settings['minute']);
}
Schedule::command(PollServerStatistics::class)->description('Poll Proxmox server statistics hourly (background routine)')->hourly();