Skip to content

feat(web): 配置页生成客户端安装命令,支持 Shell/Docker Compose/Docker Run - #294

Open
jumploop wants to merge 1 commit into
cppla:masterfrom
jumploop:codex/feat-client-install-command
Open

feat(web): 配置页生成客户端安装命令,支持 Shell/Docker Compose/Docker Run#294
jumploop wants to merge 1 commit into
cppla:masterfrom
jumploop:codex/feat-client-install-command

Conversation

@jumploop

Copy link
Copy Markdown

功能

配置页「节点」编辑器新增「客户端安装命令」区块。填入/编辑 username、password 后实时生成对应节点的客户端安装命令,支持三种方式切换:

  • Shell:wget 下载 client-linux.py 后 nohup 运行
  • Docker Compose:wget 下载 docker-compose-client.yml,再以环境变量执行 docker compose up
  • Docker Run:docker run 使用 --network=host --pid=host

细节

  • 服务端地址默认取当前页面 hostname,可在区块内手动修正;Agent 端口从 /api/health 的 �gent.address 自动解析(默认 35601)。
  • 密码含空格/引号等特殊字符时自动做 bash 单引号转义。
  • 「复制」按钮复制当前选中方式的完整命令。
  • 安装方式、服务端地址在本次会话内记忆。

改动文件

  • web/js/app.js
  • web/index.html
  • web/css/app.css

验证

ode --check web/js/app.js 通过

  • 三种命令输出与 README.md 安装示例一致

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant