mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-12 08:30:08 +00:00
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:
@@ -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: ''
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user