From 46627bb44b45ceb5d9f3b299963efc18cec7cd77 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Fri, 22 Nov 2024 18:40:15 -0800 Subject: [PATCH] Remove host and port from server config panel (#1648) --- src/constants/serverConfig.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/constants/serverConfig.ts b/src/constants/serverConfig.ts index 53940fb9d2..0321503696 100644 --- a/src/constants/serverConfig.ts +++ b/src/constants/serverConfig.ts @@ -18,8 +18,8 @@ export interface ServerConfig extends FormItem { getValue?: (value: T) => Record } -export const SERVER_CONFIG_ITEMS: ServerConfig[] = [ - // Network settings +export const WEB_ONLY_CONFIG_ITEMS: ServerConfig[] = [ + // We only need these settings in the web version. Desktop app manages them already. { id: 'listen', name: 'Host: The IP address to listen on', @@ -33,7 +33,11 @@ export const SERVER_CONFIG_ITEMS: ServerConfig[] = [ category: ['Network'], type: 'number', defaultValue: 8188 - }, + } +] + +export const SERVER_CONFIG_ITEMS: ServerConfig[] = [ + // Network settings { id: 'tls-keyfile', name: 'TLS Key File: Path to TLS key file for HTTPS',