Configuring and connecting to Gogs – Git Service on СentOS Stream 8
- To start the server, run the VM through Azure Portal.
- Open port 3000 (TCP) in the network properties in the Azure firewall.
- Create a DNS name (there is no need to create a new DNS name if you have one).Go to the ‘Overview’ section in VM properties and configure the DNS name. The name will become, for example, ‘gog123.eastus.cloudapp.azure.com’.
- 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 name configured on Azure in the step 3 (for example: http://gog123.eastus.cloudapp.azure.com:3000)
- The First-time run configuration page is displayed http:/domain_name:3000/install
- Select database type- SQLite3
- Enter the path: /home/git/gogs/gogs.db
- Enter new ‘Application name’ (e.g. ‘Gogs’)
- Enter the domain name from step 3
- Enter ‘Application URL’ (http://’domain_name’:3000/)
- Click “Install Gogs”
- Select ‘Register’ in the opened page
- Fill in the registration fields and click ‘Create New Account’
- First user is created as an administrator
- Now you can configure your server and create new users using Admin panel
Initial server setup with Centos
- To connect to a VM, you need the PuTTy application to connect via ssh. You can download it at the following link – Download
- Run Putty, enter the VM address in the “Host” field, and click “Open” to connect.
- In the window that appears, click Accept.
- Enter the username and password that was used to create the virtual machine (a password is not displayed when entering)
- Next window is displayed
More documentation about Gogs here – What is Gogs?