Help


Documentation & Tutorials

How to deploy GOGS in a few clicks with InstantApps

How to deploy a Git Service with a few clicks

This tutorial shows you how to deploy your own Git Service with a few clicks.

Requirements

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.

Step 1 - Deploying Gogs

Before starting, click the Create Server button in the control panel.

Control Panel

You will land on the server-creation page where you can choose the Gogs image for your Cloud Server:

ImageHub

Click on the Create server button on the bottom of the page to create the instance.

Step 2 - Opening the mail ports to send e-mail

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.

Edit security group

Then, on Security Group details, set “Block SMTP” to No.

Configure security group

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.

Step 3 - Configuring Gogs

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:

MOTD

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://212.47.0.0/).

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:

Database information

Submit the form to finish the installation of Gogs.

You can access Gogs at http://YOUR_SERVERS_IP/ now (for example: http://212.47.0.0/).

You have to create the first user for Gogs by clicking on Register:

Gogs Login

Once you have created the user, you can connect to Gogs and will see the following interface:

Gogs 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:

!Gogs menu

The Admin Panel allows you to mange your users, projects and more:

!Gogs Admin Panel

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.

Discover a New Cloud Experience

Deploy SSD Cloud Servers in seconds.