Add redis server monitoring

This commit is contained in:
DariusIII
2025-12-04 23:59:53 +01:00
parent b355872696
commit a9795ab241
5 changed files with 318 additions and 4 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
// Add redis_args setting if it doesn't exist
$exists = DB::table('settings')->where('name', 'redis_args')->exists();
if (! $exists) {
DB::table('settings')->insert([
'name' => 'redis_args',
'value' => 'NULL',
]);
}
}
/**
* Reverse the migrations.
*/
public function down(): void
{
DB::table('settings')->where('name', 'redis_args')->delete();
}
};
+4
View File
@@ -572,6 +572,10 @@ class SettingsTableSeeder extends Seeder
'name' => 'redis',
'value' => '0',
],
237 => [
'name' => 'redis_args',
'value' => 'NULL',
],
212 => [
'name' => 'rel_timer',
'value' => '30',