mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-15 12:53:44 +02:00
Added the actual logic
This commit is contained in:
@@ -48,6 +48,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
|
||||
'daemonSFTP' => 'integer',
|
||||
'behind_proxy' => 'boolean',
|
||||
'public' => 'boolean',
|
||||
'maintenance' => 'boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -62,7 +63,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
|
||||
'disk_overallocate', 'upload_size',
|
||||
'daemonSecret', 'daemonBase',
|
||||
'daemonSFTP', 'daemonListen',
|
||||
'description',
|
||||
'description', 'maintenance',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -111,6 +112,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
|
||||
'daemonBase' => 'regex:/^([\/][\d\w.\-\/]+)$/',
|
||||
'daemonSFTP' => 'numeric|between:1024,65535',
|
||||
'daemonListen' => 'numeric|between:1024,65535',
|
||||
'maintenance' => 'boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -126,6 +128,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
|
||||
'daemonBase' => '/srv/daemon-data',
|
||||
'daemonSFTP' => 2022,
|
||||
'daemonListen' => 8080,
|
||||
'maintenance' => false,
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user