update 2026-07-29 18:33:44

This commit is contained in:
action committed 2026-07-29 18:33:44 +08:00
1 parent 7bd6cc6dc8
commit fc55a53d53
10 files changed
+474 -163

No files matched your search

@@ -113,6 +113,7 @@ return view.extend({
s.tab('s3', _('Object Storage'));
s.tab('ftp', _('FTP'));
s.tab('sftp', _('SFTP'));
s.tab('mcp', _('MCP'));
// init
o = s.taboption('basic', form.Flag, 'enabled', _('Enabled'));
@@ -181,6 +182,28 @@ return view.extend({
o.default = true;
o.rmempty = false;
o = s.taboption('global', form.Value, 'auto_memory_limit', _('Auto Memory Limit (GB)'),
_('Automatically set memory limit based on device memory size, in GB. 0 to disable.'));
o.datatype = 'uinteger';
o.default = '4';
o.rmempty = false;
o = s.taboption('global', form.Value, 'min_free_memory', _('Min Free Memory (MB)'),
_('Minimum free memory to keep, in MB. The program will try to free memory when below this value.'));
o.datatype = 'uinteger';
o.default = '0';
o.rmempty = false;
o = s.taboption('global', form.Value, 'max_block_limit', _('Max Block Limit'),
_('Maximum number of blocking goroutines. 0 is unlimited.'));
o.datatype = 'uinteger';
o.default = '0';
o.rmempty = false;
o = s.taboption('global', form.Value, 'proxy_address', _('Proxy Address'),
_('HTTP proxy address for outgoing requests, e.g. http://127.0.0.1:7890'));
o.default = '';
// Logs
o = s.taboption('log', form.Flag, 'log', _('Enable Logs'));
o.default = 1;
@@ -273,6 +296,14 @@ return view.extend({
_('SSL key file path'));
o.rmempty = false;
o.depends('ssl', '1');
o = s.taboption('scheme', form.Flag, 'enable_h3', _('Enable HTTP/3'),
_('Enable HTTP/3 (QUIC) protocol.'));
o.rmempty = false;
o.depends('ssl', '1');
o = s.taboption('scheme', form.Flag, 'enable_h2c', _('Enable H2C'),
_('Enable HTTP/2 over cleartext (h2c).'));
o.rmempty = false;
// tasks
o = s.taboption('tasks', form.Value, 'download_workers', _('Download Workers'));
@@ -315,6 +346,40 @@ return view.extend({
o.default = '2';
o.rmempty = false;
o = s.taboption('tasks', form.Value, 'move_workers', _('Move Workers'));
o.datatype = 'uinteger';
o.default = '5';
o.rmempty = false;
o = s.taboption('tasks', form.Value, 'move_max_retry', _('Move Max Retry'));
o.datatype = 'uinteger';
o.default = '2';
o.rmempty = false;
o = s.taboption('tasks', form.Value, 'decompress_workers', _('Decompress Workers'));
o.datatype = 'uinteger';
o.default = '5';
o.rmempty = false;
o = s.taboption('tasks', form.Value, 'decompress_max_retry', _('Decompress Max Retry'));
o.datatype = 'uinteger';
o.default = '2';
o.rmempty = false;
o = s.taboption('tasks', form.Value, 'decompress_upload_workers', _('Decompress Upload Workers'));
o.datatype = 'uinteger';
o.default = '5';
o.rmempty = false;
o = s.taboption('tasks', form.Value, 'decompress_upload_max_retry', _('Decompress Upload Max Retry'));
o.datatype = 'uinteger';
o.default = '2';
o.rmempty = false;
o = s.taboption('tasks', form.Flag, 'allow_retry_canceled', _('Allow Retry Canceled Tasks'),
_('Allow retrying tasks that have been canceled.'));
o.rmempty = false;
// cors
o = s.taboption('cors', form.Value, 'cors_allow_origins', _('Allow Origins'));
o.default = '*';
@@ -364,7 +429,7 @@ return view.extend({
o = s.taboption('ftp', form.Value, 'connection_timeout', _('Connection timeout (seconds)'));
o.datatype = 'uinteger';
o.default = '900';
o.default = '30';
o.rmempty = false;
o = s.taboption('ftp', form.Flag, 'disable_active_mode', _('Disable active transfer mode'));
@@ -388,6 +453,10 @@ return view.extend({
o.default = 5222;
o.rmempty = false;
// mcp
o = s.taboption('mcp', form.Flag, 'mcp', _('Enabled MCP'), _('Enable MCP (Model Context Protocol) server.'));
o.rmempty = false;
return m.render();
}
});