mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 02:58:42 +00:00
- Update services and controllers for new node support; - Update relate views and language files; - Improve client config generation and node type handling;
38 lines
1.2 KiB
PHP
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');
|
|
}
|
|
}
|