mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: system config
This commit is contained in:
parent
69dd10f205
commit
153721be55
@ -128,10 +128,8 @@ class ConfigController extends Controller
|
||||
],
|
||||
'server' => [
|
||||
'server_token' => config('v2board.server_token'),
|
||||
'server_license' => config('v2board.server_license'),
|
||||
'server_log_enable' => config('v2board.server_log_enable', 0),
|
||||
'server_v2ray_domain' => config('v2board.server_v2ray_domain'),
|
||||
'server_v2ray_protocol' => config('v2board.server_v2ray_protocol'),
|
||||
'server_pull_interval' => config('v2board.server_pull_interval', 60),
|
||||
'server_push_interval' => config('v2board.server_push_interval', 60),
|
||||
],
|
||||
'email' => [
|
||||
'email_template' => config('v2board.email_template', 'default'),
|
||||
|
@ -109,8 +109,8 @@ class UniProxyController extends Controller
|
||||
break;
|
||||
}
|
||||
$response['base_config'] = [
|
||||
'push_interval' => 120,
|
||||
'pull_interval' => 120
|
||||
'push_interval' => config('v2board.server_push_interval', 60),
|
||||
'pull_interval' => config('v2board.server_pull_interval', 60)
|
||||
];
|
||||
$response['routes'] = $this->serverService->getRoutes($this->nodeInfo['route_id']);
|
||||
$eTag = sha1(json_encode($response));
|
||||
|
@ -56,10 +56,8 @@ class ConfigSave extends FormRequest
|
||||
'show_info_to_server_enable' => 'in:0,1',
|
||||
// server
|
||||
'server_token' => 'nullable|min:16',
|
||||
'server_license' => 'nullable',
|
||||
'server_log_enable' => 'in:0,1',
|
||||
'server_v2ray_domain' => '',
|
||||
'server_v2ray_protocol' => '',
|
||||
'server_pull_interval' => 'integer',
|
||||
'server_push_interval' => 'integer',
|
||||
// frontend
|
||||
'frontend_theme' => '',
|
||||
'frontend_theme_sidebar' => 'in:dark,light',
|
||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user