Usage Guidelines – Debian 10 with Gitea – Git Server

Gitea – Git Server

Debian 10

Connection and configuration of Debian 10 with Gitea – Git Server

  1. To start the server, run the VM through Azure Portal.
  2. To work, you must open port 3000 (TCP) in the network properties in the Azure firewall.
  3. You must create a DNS name. In the Azure admin, you must go to the VM properties on the left, in the “Overview” section. On the right you need to configure the DNS name, which will become, for example, “gitea123.eastus.cloudapp.azure.com”.
  4. Install PuTTY. You can download PuTTY from the link – https://putty.org.ru/download.html Launch PuTTY.
  5. In the “Host Name” field, enter the virtual machine’s IP and click “Open”.
  1. In the window that appears, click Accept.
  1. Enter the username and password that were used to create the virtual machine.

(If you enter a password, it will not be displayed.)

  1. Open a browser on your PC and go to the DNS address http://domain_name:3000, where domain_name is the address of your DNS name or DNS configured on Azure in the previous step (for example http://gitea123.eastus.cloudapp.azure.com:3000)
  2. On the page, select the following settings:

Database Type: SQLite3

In the Path setting that appears, use the default path: /var/lib/gitea/data/gitea.db

Site Title: enter any site name.

SSH Server Domain: replace “localhost” with your domain name (for example, gitea123.eastus.cloudapp.azure.com)

Gitea Base URL: replace “localhost” with your domain name (for example http://gitea123.eastus.cloudapp.azure.com:3000/)

Leave the rest of the settings by default.

  1. Click on the “Install Gitea” button at the bottom of the page to complete the configuration settings, then the “Sign in” page will open:
  1. Then click on the “Register” button in the upper right.

The page address in the browser changes to  http://domain_name:3000/user/sign_up

Enter your preferred “Username” and your “Email Address”.

Create and verify your “Password”.

Password Requirements:

  • at least one special character (punctuation, brackets, quotation marks, etc.);
  • at least one lowercase character;
  • at least one uppercase character;
  • at least one digit.

The first user will receive administrator rights on the portal.

More detailed instructions can be found at:

https://docs.gitea.io/en-us/