feat: Add more server side arguments (#1846)

* feat: Add more server side arguments

* nit

* Update locales [skip ci]

---------

Co-authored-by: Oto Ciulis <oto.ciulis@gmail.com>
Co-authored-by: huchenlei <huchenlei@proton.me>
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
oto-ciulis-tt
2024-12-12 11:18:21 -08:00
committed by GitHub
parent 4997d13219
commit 7877c96ffe
6 changed files with 96 additions and 16 deletions

View File

@@ -21,21 +21,6 @@ export interface ServerConfig<T> extends FormItem {
}
export const WEB_ONLY_CONFIG_ITEMS: ServerConfig<any>[] = [
// We only need these settings in the web version. Desktop app manages them already.
{
id: 'listen',
name: 'Host: The IP address to listen on',
category: ['Network'],
type: 'text',
defaultValue: '127.0.0.1'
},
{
id: 'port',
name: 'Port: The port to listen on',
category: ['Network'],
type: 'number',
defaultValue: 8188
},
// Launch behavior
{
id: 'auto-launch',
@@ -63,6 +48,21 @@ export const WEB_ONLY_CONFIG_ITEMS: ServerConfig<any>[] = [
export const SERVER_CONFIG_ITEMS: ServerConfig<any>[] = [
// Network settings
{
id: 'listen',
name: 'Host: The IP address to listen on',
category: ['Network'],
type: 'text',
defaultValue: '127.0.0.1'
},
{
id: 'port',
name: 'Port: The port to listen on',
category: ['Network'],
type: 'number',
// The default launch port for desktop app is 8000 instead of 8188.
defaultValue: 8000
},
{
id: 'tls-keyfile',
name: 'TLS Key File: Path to TLS key file for HTTPS',
@@ -433,5 +433,20 @@ export const SERVER_CONFIG_ITEMS: ServerConfig<any>[] = [
verbose: value
}
}
},
// Directories
{
id: 'input-directory',
name: 'Input directory',
category: ['Directories'],
type: 'text',
defaultValue: ''
},
{
id: 'output-directory',
name: 'Output directory',
category: ['Directories'],
type: 'text',
defaultValue: ''
}
]