Files
ProxyPanel/app/Console/Kernel.php
BrettonYe 2d61434ff0 Add Hysteria2 support
- Update services and controllers for new node support;
- Update relate views and language files;
- Improve client config generation and node type handling;
2026-01-30 20:04:32 +08:00

38 lines
1.2 KiB
PHP

<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*/
protected function schedule(Schedule $schedule): void
{
$schedule->command('serviceTimer')->everyFiveMinutes();
$schedule->command('node:detection')->everyTenMinutes();
$schedule->command('autoClearLogs')->everyThirtyMinutes();
$schedule->command('task:hourly')->hourly();
$schedule->command('task:daily')->dailyAt('00:05');
$schedule->command('node:maintenance')->dailyAt('09:30');
$schedule->command('userTrafficWarning')->dailyAt('10:30');
$schedule->command('userExpireWarning')->dailyAt('20:30');
$schedule->command('task:auto')->everyMinute();
$schedule->command('task:monthly')->monthly();
$schedule->command('hysteria2:sync')->everyMinute();
}
/**
* Register the commands for the application.
*/
protected function commands(): void
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}