--caproverUrl ignores port; cannot deploy to CapRover instances not on 443
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 58/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- cli
调研方向
定位 caprover deploy --caproverUrl 使用的入口点 cleanAdminDomainUrl,并检查输入 URL 的解析和重建方式。验证诸如 https://captain.example.com:8443 这样的 URL 是否保留端口 8443、保留 captain 前缀行为,并连接到提供的端点。
由索引模型根据 Issue 内容生成。
描述
Description
When passing a URL with an explicit port to caprover deploy --caproverUrl, the CLI strips the port and forces a request to port 443. This breaks deployments where CapRover is not exposed on 443.
Example
caprover deploy --caproverUrl https://captain.example.com:8443
Ensuring authentication...
Deploying *** to https://captain.example.com...
Something bad happened: cannot deploy *** at https://captain.example.com.
Expected Behavior
The CLI would respect the provided port (8443) and connect to it.
Actual Behavior
The CLI silently removes the :8443 and connects to https://captain.example.com on port 443.
Justification
CapRover may be deployed behind shared ingress/load balancers, reverse proxies, or on alternate ports, internal environments, or constrained hosting (It's sort of supported). In these setups, CapRover isn’t always a first-class service on 443.
For example, I've been recently deploying a HTTPS load balancing endpoint, using CapRover to deploy it. As a result CapRover has to be moved to a different port (.e.g 8443).
Proposed Solution
Preserve port in cleanAdminDomainUrl:
Parse the input (url.parse), keep hostname and port, enforce 'captain.' prefix if missing, and when rebuilding the URL, append :${port} if present.
- 主要语言
- TypeScript
- 星标
- 78
- 派生
- 42
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
caprover/caprover-cli 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
caprover/caprover-cli#155 ·
-
难度 4/5 3-5 天 新手友好度 35/100
caprover/caprover-cli#148 ·
-
难度 3/5 1-2 天 新手友好度 38/100
caprover/caprover-cli#144 ·
-
难度 4/5 3-5 天 新手友好度 45/100
caprover/caprover-cli#143 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 55/100
caprover/caprover-cli#140 ·
查看 caprover/caprover-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
"Claude Code request is missing its initial user message" when the prompt starts with an image path未关闭
难度 2/5 1-3 小时 新手友好度 84/100
earendil-works/pi-claude-code#31 ·
维护者通常 8 天内回复
-
bug pending triage
难度 1/5 1 小时以内 新手友好度 92/100
privatenumber/cleye#48 ·
-
Google text documents are base64-encoded twice可能已有人在做 @feiiiiii5 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复