added gitlab-ce basic installation
This commit is contained in:
parent
b4a8013e13
commit
0181e8e8fc
10
gitlab-conf/gitlab.rb.tail
Normal file
10
gitlab-conf/gitlab.rb.tail
Normal file
@ -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"
|
||||||
12
install-gitlab-ce.sh
Executable file
12
install-gitlab-ce.sh
Executable file
@ -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
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user