Installing nginx

The last thing we have to do is set up a web server. The server that's recommended by GitLab is nginx, at least version 1.12.1. Once you have it installed, set up the config:

sudo cp /home/git/gitlab/lib/support/nginx/gitlab /etc/nginx/sites-available/gitlabsudo ln -s /etc/nginx/sites-available/gitlab /etc/nginx/sites-enabled/gitlab

Now, you'll need to edit that config in your preferred text editor to update the YOUR_SERVER_FQDN value to match the hostname you'll be using for GitLab.

Finally, you should be all done and able to browse to the URL for GitLab that you set, and create a password to log in.

Get GitLab Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.