update: system config

This commit is contained in:
tokumeikoi 2022-11-27 23:50:07 +08:00
parent 69dd10f205
commit 153721be55
4 changed files with 7 additions and 11 deletions

View File

@ -128,10 +128,8 @@ class ConfigController extends Controller
], ],
'server' => [ 'server' => [
'server_token' => config('v2board.server_token'), 'server_token' => config('v2board.server_token'),
'server_license' => config('v2board.server_license'), 'server_pull_interval' => config('v2board.server_pull_interval', 60),
'server_log_enable' => config('v2board.server_log_enable', 0), 'server_push_interval' => config('v2board.server_push_interval', 60),
'server_v2ray_domain' => config('v2board.server_v2ray_domain'),
'server_v2ray_protocol' => config('v2board.server_v2ray_protocol'),
], ],
'email' => [ 'email' => [
'email_template' => config('v2board.email_template', 'default'), 'email_template' => config('v2board.email_template', 'default'),

View File

@ -109,8 +109,8 @@ class UniProxyController extends Controller
break; break;
} }
$response['base_config'] = [ $response['base_config'] = [
'push_interval' => 120, 'push_interval' => config('v2board.server_push_interval', 60),
'pull_interval' => 120 'pull_interval' => config('v2board.server_pull_interval', 60)
]; ];
$response['routes'] = $this->serverService->getRoutes($this->nodeInfo['route_id']); $response['routes'] = $this->serverService->getRoutes($this->nodeInfo['route_id']);
$eTag = sha1(json_encode($response)); $eTag = sha1(json_encode($response));

View File

@ -56,10 +56,8 @@ class ConfigSave extends FormRequest
'show_info_to_server_enable' => 'in:0,1', 'show_info_to_server_enable' => 'in:0,1',
// server // server
'server_token' => 'nullable|min:16', 'server_token' => 'nullable|min:16',
'server_license' => 'nullable', 'server_pull_interval' => 'integer',
'server_log_enable' => 'in:0,1', 'server_push_interval' => 'integer',
'server_v2ray_domain' => '',
'server_v2ray_protocol' => '',
// frontend // frontend
'frontend_theme' => '', 'frontend_theme' => '',
'frontend_theme_sidebar' => 'in:dark,light', 'frontend_theme_sidebar' => 'in:dark,light',

File diff suppressed because one or more lines are too long