Running GitLab alongside Node?
Created by: ghost
My primary app is built using Node, supports WebSockets, etc., but I would like to run GitLab on the same server within a subdirectory. I've put off making this issue for more than a day, trying to figure something out on my own, but apparently the omnibus package doesn't support (and has no plans to support) setting the relative_url_root
. So now I've uninstalled the omnibus package and am going with the custom installation, and running into some issues along the way, probably due the previous omnibus installation.
Surely running GitLab on the same server and domain as other services is a really common use-case, so how is everyone else doing it? I can't seem to find anything on this specifically. Maybe I'm not looking in the right places.
After the custom installation (for relative_url_root
support), the approach I was planning on going with was either A) use node-http-proxy
and point to unicorn's port 8080 for http://localhost/gitlab
or B) use a different port for the node app and update GitLab's nginx configuration to act as a reverse proxy to that port for any URLs outside of http://localhost/gitlab
.