Cobra Forum

Plesk Panel => Web Application => Topic started by: Administrator on Dec 30, 2022, 07:26 AM

Title: One-Click GitLab
Post by: Administrator on Dec 30, 2022, 07:26 AM
Introduction
The One-Click GitLab application is a ready-to-use GitLab Community Edition (CE) running on Ubuntu Server. GitLab requires an instance with at least 2GB RAM and 2 CPU cores.

Self-Signed SSL
It's preferred to configure GitLab with a domain name and valid SSL certificate, but it's possible to access the GitLab application by IP address with the default self-signed certificate.
Install SSL Certificate
You can use either a free Let's Encrypt certificate or a commercial certificate. A valid certificate will allow cloning repositories over HTTPS with Git. Substitute your IP address and domain for these examples:
Register Server Name
Before installing the SSL certificate, configure GitLab for your domain name.
If you are installing a commercial certificate, skip to the Commercial SSL Certificate section.
Install Let's Encrypt Certificate
GitLab can request and manage Let's Encrypt certificates with a few configuration changes to the control file.
Quote# nano /etc/gitlab/gitlab.rb
Quoteexternal_url "https://oneclick.example.com"
Quote##############################

# Let's Encrypt integration

##############################

# letsencrypt['enable'] = nil

# letsencrypt['contact_emails'] = []
Quote##############################

# Let's Encrypt integration

##############################

letsencrypt['enable'] = true

letsencrypt['contact_emails'] = ['admin@example.com']
Several optional settings for Let's Encrypt are available, including renewal scheduling. See the GitLab Docs for more information.
Quotenginx['ssl_certificate'] = "/etc/gitlab/ssl/192.0.2.123.crt"

nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/192.0.2.123.key"
With this:
Quotenginx['ssl_certificate'] = "/etc/gitlab/ssl/oneclick.example.com.crt"

nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/oneclick.example.com.key"
Commercial SSL Certificate
To install a new certificate, do the following:
Quote# nano /etc/gitlab/gitlab.rb
Quoteexternal_url "https://oneclick.example.com"
Quote# gitlab-ctl reconfigure
[/list]
Git Repositories
Your Git repositories are located in /var/opt/gitlab/git-data/repositories.

About One-Click Apps
One-Click apps are updated regularly without notice. When launching a One-Click app, you'll receive our latest version. We do not update deployed instances, and you are responsible for keeping the instance up-to-date. If you design an infrastructure based on One-Click apps and need to ensure the same app version in the future, take a snapshot of the initial deployment and create new instances from the snapshot.