feat(relay): support configurable frps webui port and fix node detail integration

- Implement configurable FRPS WebUI switch and custom port setting (relay_frps_web_ui_port) in system configs.
- Integrate settings into Relay Node detail manage page instead of global settings.
- Dynamically query server version to select matching Docker image tag for Relay installation.
- Clean up legacy code and fix backend linter/test warnings.
This commit is contained in:
ryan
2026-06-22 12:48:54 +08:00
parent ffe98f6307
commit 346024f346
24 changed files with 204 additions and 69 deletions
+16 -3
View File
@@ -20,9 +20,10 @@ import (
)
const (
configTypeSystem = "system"
configValueTrue = "true"
configValueFalse = "false"
configTypeSystem = "system"
configTypeBusiness = "business"
configValueTrue = "true"
configValueFalse = "false"
)
// SetupTestEnvironment initializes an in-memory SQLite DB, seeds default configurations,
@@ -275,6 +276,18 @@ func getSeedConfigsPart2() []model.SystemConfig {
Type: configTypeSystem,
Description: "文件存储驱动及连接配置(JSON)",
},
{
Key: model.ConfigKeyRelayFRPSWebUIEnabled,
Value: configValueFalse,
Type: configTypeBusiness,
Description: "是否启用 FRPS 内置 Web 界面",
},
{
Key: model.ConfigKeyRelayFRPSWebUIPort,
Value: "17500",
Type: configTypeBusiness,
Description: "FRPS 内置 Web 界面端口",
},
}
}