4 ms·
Gitlab was really promising for my colleagues and I, but its inability to host git repos on the url root (aka gitrepo.mycompany.com/product.git) without hacking
by tomc1985 10y ago
Gitlab was really promising for my colleagues and I, but its inability to host git repos on the url root (aka gitrepo.mycompany.com/product.git) without hacking means its a no-go as we're not particularly inclined to redo all our development, deployment, and testing infrastructure. We use git a lot in our organization, including customer-facing stuff, so it would be a large transition.
Also stubborn coworkers who don't want to monkey with git settings.
Which is a shame, I really like gitlab and would love to replace gitolite :/
- frikk 10y agoWhat if you just set up an nginx reverse proxy? gitrepo.mycompany.com/product.git --> reverse proxy to git.mycompany.com/gitrepo/product.git Should be straight forward in nginx
- ykler 10y agoJust curious since I am not experienced with this stuff, are you talking about a TCP reverse proxy (so it could work with the SSH protocol too)? And would haproxy work equally well to nginx for this?
- ianleeclark 10y agoIf I remember right, nginx doesn't support ssh + http(s) on the same port. I'd be happy to learn this isn't correct, though because my personal server only is allowing http through.
- tomc1985 10y agoGenerally speaking, you cannot bind more than one service to a port on a given interface
- ianleeclark 10y agoYeah, that's the issue i had ran into. I was `listen`ing on 80, but wanted to multiplex ssh+http on the same port and nginx didn't support it.
- thresh 10y agoYou can actually distinguish between those on a single port using http://nginx.org/r/ssl_preread http://nginx.org/r/ssl_preread and some sslh-like checks using e.g. njs.
- tomc1985 10y agoYou bring up a good point -- nginx proxying won't help for connections made over SSH (which is a large portion of our deployment)
- frikk 10y agoGood point. However, I guess recent nginx supports streaming tcp proxy, so maybe it would work. http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html
- bronson 10y agoPresumably this falls afoul of the "without hacking" requirement.
- newsat13 10y agoWhy can't you setup a redirect in nginx?
- tomc1985 10y agoWas hoping for a cleaner solution, none of us have had much time to evaluate. That's a good idea though, worth setting up on the next attempt.