diff --git a/gitlab-conf/gitlab.rb.tail b/gitlab-conf/gitlab.rb.tail new file mode 100644 index 0000000..f9b0851 --- /dev/null +++ b/gitlab-conf/gitlab.rb.tail @@ -0,0 +1,10 @@ +external_url 'https://gitlab.example.com' +external_url 'https://gitlab.example.com' +registry_external_url 'https://registry.gitlab.example.com' +gitlab_rails['registry_enabled'] = true +gitlab_rails['registry_host'] = "registry.gitlab.example.com" +nginx['real_ip_trusted_addresses'] = [ "192.168.0.1/32" ] +registry_nginx['enable'] = true +registry_nginx['listen_port'] = 443 +letsencrypt['enable'] = false +gitlab_rails['backup_path'] = "/srv/gitlab/backups/data" diff --git a/install-gitlab-ce.sh b/install-gitlab-ce.sh new file mode 100755 index 0000000..e1f530d --- /dev/null +++ b/install-gitlab-ce.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +dnf update -y + +dnf install -y wget curl policycoreutils openssh-server openssh-clients perl + +wget "https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh" -O "script.rpm.sh" + +bash script.rpm.sh + +EXTERNAL_URL="https://gitlab.example.com" dnf install -y gitlab-ce +