forked from geerlingguy/ansible-role-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitlab.rb.bak
61 lines (50 loc) · 2.42 KB
/
gitlab.rb.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# The URL through which GitLab will be accessed.
external_url "https://gitlab.tbbs.me"
# gitlab.yml configuration
gitlab_rails['time_zone'] = "UTC"
gitlab_rails['backup_keep_time'] = 604800
gitlab_rails['gitlab_email_enabled'] = false
# Default Theme
gitlab_rails['gitlab_default_theme'] = "2"
# Whether to redirect http to https.
nginx['redirect_http_to_https'] = true
nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.key"
# The directory where Git repositories will be stored.
git_data_dirs({"default" => {"path" => "/var/opt/gitlab/git-data"} })
# The directory where Gitlab backups will be stored
gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
# These settings are documented in more detail at
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example#L118
gitlab_rails['ldap_enabled'] = false
gitlab_rails['ldap_host'] = 'example.com'
gitlab_rails['ldap_port'] = 389
gitlab_rails['ldap_uid'] = 'sAMAccountName'
gitlab_rails['ldap_method'] = 'plain' # 'ssl' or 'plain'
gitlab_rails['ldap_bind_dn'] = 'CN=Username,CN=Users,DC=example,DC=com'
gitlab_rails['ldap_password'] = 'password'
gitlab_rails['ldap_allow_username_or_email_login'] = true
gitlab_rails['ldap_base'] = 'DC=example,DC=com'
# GitLab Nginx
## See https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md
# Use smtp instead of sendmail/postfix
# More details and example configuration at
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/smtp.md
gitlab_rails['smtp_enable'] = false
gitlab_rails['smtp_address'] = 'smtp.server'
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = 'smtp user'
gitlab_rails['smtp_password'] = 'smtp password'
gitlab_rails['smtp_domain'] = 'example.com'
gitlab_rails['smtp_authentication'] = 'login'
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'none'
gitlab_rails['smtp_ca_path'] = '/etc/ssl/certs'
gitlab_rails['smtp_ca_file'] = '/etc/ssl/certs/ca-certificates.crt'
# 2-way SSL Client Authentication.
# To change other settings, see:
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#changing-gitlab-yml-settings
# letsencrypt SSL-encryption enabled https
letsencrypt['enable'] = true # GitLab 10.5 and 10.6 require this option
letsencrypt['contact_emails'] = ['user@example1234.de'] # Optional