On your first time visiting, you should see an initial prompt to set a password for the administrative account: If you enabled Let’s Encrypt and used https in your external_url, you should be redirected to a secure HTTPS connection. Visit the domain name of your GitLab server in your web browser: gitlab_domain_or_IP
Now that GitLab is running and access is permitted, we can perform some initial configuration of the application through the web interface.
Performing Initial Configuration Through the Web Interface If you enabled the Let’s Encrypt integration, a certificate should be configured for your domain.
This is a completely automated process, so you will not have to answer any prompts. This will initialize GitLab using information it can find about your server. Now, run the following command to reconfigure Gitlab: View the current status of your active firewall by typing: If you followed the guide linked in the prerequisites, you will have a ufw firewall enabled. Adjusting the Firewall Rulesīefore you configure GitLab, you will need to ensure that your firewall rules are permissive enough to allow web traffic. This will install the necessary components on your system. Once this is complete, you can install the actual GitLab application with apt: This lets you manage GitLab with the same package management tools you use for your other system packages. The script will set up your server to use the GitLab maintained repositories. Once you are satisfied with the safety of the script, run the installer: You can also find a hosted version of the script here:
Move into the /tmp directory and then download the installation script:įeel free to examine the downloaded script to ensure that you are comfortable with the actions that it will take. This is a straight forward process that leverages an installation script to configure your system with the GitLab repositories. Now that the dependencies are in place, we can install GitLab itself. On the next screen, enter your server’s domain name or IP address to configure how the system will send mail. For the postfix installation, select Internet Site when prompted.
You will likely have some of this software installed already.
In this guide, we will cover how to install and configure GitLab on an Ubuntu 16.04 server. The GitLab project makes it relatively straight forward to set up a GitLab instance on your own hardware with an easy installation mechanism. It is designed to be hosted using your own infrastructure, and provides flexibility in deploying as an internal repository store for your development team, publicly as a way to interface with users, or even open as a way for contributors to host their own projects. GitLab CE, or Community Edition, is an open source application primarily used to host Git repositories, with additional development-related features like issue tracking.