GitLab is your own GitHub and more (or less). They have pretty good introduction on the home page, so I won’t repeat that here.
The recommended installation method for GitLab is using theÂ Omnibus package. Head to the downloads page and follow the instructions. You should have a GitLab setup in no time, who needs GitHub! oh well, many many people…
Now to the tweaks.
If you’re like me trying to hide the ports on your server from the bots and prying eyes, they you would have SSH on a different port and your other services all bound to localhost and facing the Internet bravely from behind a proxy server. I use Apache on my personal server, it’s pretty robust and gets the job done.
So let’s say SSH is on port 2022, and apache is taking firm hold on ports 80 and 443. So GitLab’s NGINX should take port 8088.
And the domain you’re using for gitlab is not the machine’s hostname, so hostname is ‘host4339.moodeef.com’ and gitlab’s URL is ‘gitlab.deeb.me’
Edit the “/etc/gitlab/gitlab.rb” file with the following changes/additions:
gitlab_rails['gitlab_host'] = 'gitlab.deeb.me' gitlab_rails['gitlab_ssh_host'] = 'gitlab.deeb.me' gitlab_rails['gitlab_port'] = 8088 gitlab_rails['gitlab_email_from'] = 'email@example.com' gitlab_rails['gitlab_support_email'] = 'firstname.lastname@example.org' gitlab_rails['gitlab_shell_ssh_port'] =Â 2022 external_url = 'https://gitlab.deeb.me'
Then runÂ gitlab-ctl reconfigure and see how it goes from there.
If things seem to be too complicated, you can always get a subscription option with full support from theÂ GitLab folks. Or hire me to fix it for you!