This tutorial shows you how to deploy your own Git Service with a few clicks.
Gogs (Go Git Service) is a painless self-hosted Git Service written in Go. The goal of this project is to make the easiest, fastest and most painless way to set up a self-hosted Git service.
Before starting, click the Create Server button in the control panel.
You will land on the server-creation page where you can choose the Gogs image for your Cloud Server:
Click on the Create server button on the bottom of the page to create the instance.
To avoid spam, remote mail ports cannot be reached from our infrastructure by default. As Gogs requires to send mail, these ports need to be opened. Your account needs to be validated to perform this operation. To get your account reviewed, please contact our assistance.
In the details of your Cloud Server click on Advanced to display the advanced settings.
Click the Change button to modify the Security Group of your Server.
Then, on Security Group details, set “Block SMTP” to No.
The new Security Group configuration will be applied automatically on Virtual Cloud Servers. BareMetal cloud servers need to be hard rebooted from the management console to configure the new rules.
When your server is running, you can see the server’s IP address in the server list on the control panel.
Connect to it, by using SSH, to recover the database password for Gogs. Once you are connected to your server, the following message appear on your screen:
Save the password as you will need it in the next step.
To finish the installation of Gogs, go to http://YOUR_SERVERS_IP/ (for example: http://188.8.131.52/).
Enter this address in your favorite browser and you will land on the the Gogs Installation Assistant.
Fill in the required information for the installation of your Gogs and use the Password that you have recovered to configure the MySQL connection:
Submit the form to finish the installation of Gogs.
You can access Gogs at
http://YOUR_SERVERS_IP/ now (for example: http://184.108.40.206/).
You have to create the first user for Gogs by clicking on Register:
Once you have created the user, you can connect to Gogs and will see the following interface:
You use Gogs now to mange your Git repositories.
To enter the advanced configuration of Gogs, click on your name, then on Admin Panel:
The Admin Panel allows you to mange your users, projects and more:
More information about the configuration of Gogs is available in the offical documentation.
If you have any suggestion or question about this tutorial, please leave a comment in our Community.