从 Bonobo Git 服务器上的 git URL 移除端口

Remove port from git URL on Bonobo Git Server

我的 Bonobo git 服务器正在使用自定义端口 9443,一切正常,直到我在 NAT 后面发布它。 正如你在我的图片中看到的,我的 git 域名是 abc.com,但在 git url 中它仍然将端口 9443 添加到 url,例如 abc.com:9443/123.git,这是错误的,那么如何在url中删除这个端口呢?我想我应该在 git 服务器中配置一些东西?

这似乎与 Bonobo-Git-Server issue 294 相似(类似的不匹配)

This is probably because the port your server is listening on does not match your router (#### in your example).

Bonobo picks up the port from the server it's running on. In order to get them to match, you need to bind the Bonobo server/site to the same port and adjust the NAT on your router to route to the server also on the same port.

解决方案是:

Not sure why I didn't think about rebinding through IIS. I changed my port on the server and it is working properly now. Thanks!