· 10 years ago · Jul 13, 2016, 06:54 PM
1## Configuration options with # in front are not active and they were
2## valid at install time. Updating the package does not update this file
3## automatically.
4## Latest options listed at:
5## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
6
7
8## Url on which GitLab will be reachable.
9## For more details on configuring external_url see:
10## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#configuring-the-external-url-for-gitlab
11external_url 'http://gitlab.i.cairnrtc.com'
12
13
14## Note: configuration settings below are optional.
15## Uncomment and change the value.
16############################
17# gitlab.yml configuration #
18############################
19
20gitlab_rails['gitlab_ssh_host'] = 'gitlab.i.cairnrtc.com'
21gitlab_rails['time_zone'] = 'America/Denver'
22gitlab_rails['gitlab_email_enabled'] = true
23gitlab_rails['gitlab_email_from'] = 'example@example.com'
24gitlab_rails['gitlab_email_display_name'] = 'Gitlab'
25gitlab_rails['gitlab_email_reply_to'] = 'example@example.com'
26# gitlab_rails['gitlab_default_can_create_group'] = true
27# gitlab_rails['gitlab_username_changing_enabled'] = true
28# gitlab_rails['gitlab_default_theme'] = 2
29# gitlab_rails['gitlab_default_projects_features_issues'] = true
30# See http://doc.gitlab.com/ce/customization/issue_closing.html for more information about this pattern.
31# gitlab_rails['gitlab_issue_closing_pattern'] = "((?:[Cc]los(?:e[sd]?|ing)|[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?))+)"
32# gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
33# gitlab_rails['gitlab_default_projects_features_wiki'] = true
34# gitlab_rails['gitlab_default_projects_features_snippets'] = false
35# gitlab_rails['gitlab_default_projects_features_builds'] = true
36# gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
37# gitlab_rails['gravatar_plain_url'] = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
38# gitlab_rails['gravatar_ssl_url'] = 'https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
39# gitlab_rails['stuck_ci_builds_worker_cron'] = "0 0 * * *"
40# gitlab_rails['historical_data_worker_cron'] = "0 12 * * *"
41# gitlab_rails['update_all_mirrors_worker_cron'] = "0 * * * *"
42# gitlab_rails['ldap_sync_worker_cron'] = "30 1 * * *"
43# gitlab_rails['webhook_timeout'] = 10
44
45## Reply by email
46# Allow users to comment on issues and merge requests by replying to notification emails.
47# For documentation on how to set this up, see http://doc.gitlab.com/ce/incoming_email/README.html
48gitlab_rails['incoming_email_enabled'] = true
49#
50# # The email address including the `%{key}` placeholder that will be replaced to reference the item being replied to.
51# # The `+%{key}` placeholder is added after the user part, after a `+` character, before the `@`.
52gitlab_rails['incoming_email_address'] = "gitlab-incoming+%{key}@haikuengineering.com"
53#
54# # Email account username
55# # With third party providers, this is usually the full email address.
56# # With self-hosted email servers, this is usually the user part of the email address.
57gitlab_rails['incoming_email_email'] = "example@example.com"
58# # Email account password
59gitlab_rails['incoming_email_password'] = "password"
60#
61# # IMAP server host
62gitlab_rails['incoming_email_host'] = "imap.gmail.com"
63# # IMAP server port
64gitlab_rails['incoming_email_port'] = 993
65# # Whether the IMAP server uses SSL
66gitlab_rails['incoming_email_ssl'] = true
67# # Whether the IMAP server uses StartTLS
68gitlab_rails['incoming_email_start_tls'] = false
69#
70# # The mailbox where incoming mail will end up. Usually "inbox".
71gitlab_rails['incoming_email_mailbox_name'] = "inbox"
72#
73# gitlab_rails['incoming_email_log_directory'] = "/var/log/gitlab/mailroom"
74
75## Build Artifacts
76# gitlab_rails['artifacts_enabled'] = true
77# gitlab_rails['artifacts_path'] = "/mnt/storage/artifacts"
78
79## Git LFS
80# gitlab_rails['lfs_enabled'] = true
81# gitlab_rails['lfs_storage_path'] = "/mnt/storage/lfs-objects"
82
83## ElasticSearch (EE only)
84# gitlab_rails['elasticsearch_enabled'] = false
85# gitlab_rails['elasticsearch_host'] = "localhost"
86# gitlab_rails['elasticsearch_port'] = 9200
87
88## GitLab Pages (EE only)
89# gitlab_rails['pages_path'] = "/mnt/storage/pages"
90
91## For setting up LDAP
92## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#setting-up-ldap-sign-in
93## Be careful not to break the identation in the ldap_servers block. It is in
94## yaml format and the spaces must be retained. Using tabs will not work.
95
96# gitlab_rails['ldap_enabled'] = false
97# gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below
98# main: # 'main' is the GitLab 'provider ID' of this LDAP server
99# label: 'LDAP'
100# host: '_your_ldap_server'
101# port: 389
102# uid: 'sAMAccountName'
103# method: 'plain' # "tls" or "ssl" or "plain"
104# bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
105# password: '_the_password_of_the_bind_user'
106# active_directory: true
107# allow_username_or_email_login: false
108# block_auto_created_users: false
109# base: ''
110# user_filter: ''
111# attributes:
112# username: ['uid', 'userid', 'sAMAccountName']
113# email: ['mail', 'email', 'userPrincipalName']
114# name: 'cn'
115# first_name: 'givenName'
116# last_name: 'sn'
117# ## EE only
118# group_base: ''
119# admin_group: ''
120# sync_ssh_keys: false
121#
122# secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
123# label: 'LDAP'
124# host: '_your_ldap_server'
125# port: 389
126# uid: 'sAMAccountName'
127# method: 'plain' # "tls" or "ssl" or "plain"
128# bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
129# password: '_the_password_of_the_bind_user'
130# active_directory: true
131# allow_username_or_email_login: false
132# block_auto_created_users: false
133# base: ''
134# user_filter: ''
135# attributes:
136# username: ['uid', 'userid', 'sAMAccountName']
137# email: ['mail', 'email', 'userPrincipalName']
138# name: 'cn'
139# first_name: 'givenName'
140# last_name: 'sn'
141# ## EE only
142# group_base: ''
143# admin_group: ''
144# sync_ssh_keys: false
145# EOS
146
147## Setting up Kerberos (EE only)
148## See http://doc.gitlab.com/ee/integration/kerberos.html#http-git-access
149# gitlab_rails['kerberos_enabled'] = true
150# gitlab_rails['kerberos_keytab'] = /etc/http.keytab
151# gitlab_rails['kerberos_service_principal_name'] = HTTP/gitlab.example.com@EXAMPLE.COM
152# gitlab_rails['kerberos_use_dedicated_port'] = true
153# gitlab_rails['kerberos_port'] = 8443
154# gitlab_rails['kerberos_https'] = true
155
156## For setting up omniauth
157## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#omniauth-google-twitter-github-login
158
159gitlab_rails['omniauth_enabled'] = true
160gitlab_rails['omniauth_allow_single_sign_on'] = ['saml', 'github']
161# gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'saml'
162gitlab_rails['omniauth_block_auto_created_users'] = true
163# gitlab_rails['omniauth_auto_link_ldap_user'] = false
164# gitlab_rails['omniauth_auto_link_saml_user'] = false
165gitlab_rails['omniauth_providers'] = [
166 {
167 "name" => "github",
168 "app_id" => "0c10bfe62d47ae2d4dc1",
169 "app_secret" => "27df99c67699a761c752dcf64419f6d491f0a065",
170 "url" => "https://github.com/",
171 "args" => { "scope" => "user:email" }
172 }
173]
174
175#
176# If you setup bitbucket importer under omniauth providers you will need to add the keys
177# which will allow connection between bitbucket and gitlab.
178# For details see http://doc.gitlab.com/ce/integration/bitbucket.html
179# gitlab_rails['bitbucket'] = {
180# 'known_hosts_key' => 'bitbucket.org,207.223.240.182 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==',
181# 'private_key' => '-----BEGIN RSA PRIVATE KEY-----
182# MIIEowIBAAKCAQEAyXxYHwz2KjcwSjTREwlhYHqrf/8U0UM8ej3cqQ551gE4Wo3t
183# -----END RSA PRIVATE KEY-----',
184# 'public_key' => 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJfFgfDPYqN git@gitlab.example.com'
185# }
186
187## For setting up backups
188## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#backups
189
190# gitlab_rails['manage_backup_path'] = true
191# gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
192# gitlab_rails['backup_archive_permissions'] = 0644 # See: http://doc.gitlab.com/ce/raketasks/backup_restore.html#backup-archive-permissions
193# gitlab_rails['backup_pg_schema'] = 'public'
194# gitlab_rails['backup_keep_time'] = 604800
195# gitlab_rails['backup_upload_connection'] = {
196# 'provider' => 'AWS',
197# 'region' => 'eu-west-1',
198# 'aws_access_key_id' => 'AKIAKIAKI',
199# 'aws_secret_access_key' => 'secret123'
200# }
201# gitlab_rails['backup_upload_remote_directory'] = 'my.s3.bucket'
202# gitlab_rails['backup_multipart_chunk_size'] = 104857600
203# gitlab_rails['backup_encryption'] = 'AES256' # Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for backups
204
205## For setting up different data storing directory
206## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#storing-git-data-in-an-alternative-directory
207## If you want to use a single non-default directory to store git data use
208## a path that doesn't contain symlinks.
209# git_data_dir "/var/opt/gitlab/git-data"
210
211
212## For storing GitLab application uploads, eg. LFS objects, build artifacts
213## see https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/shared_files.md
214# gitlab_rails['shared_path'] = '/var/opt/gitlab/gitlab-rails/shared'
215
216# DEPRECATED: gitlab_rails['satellites_timeout'] = 30
217
218## GitLab Shell settings for GitLab
219# gitlab_rails['gitlab_shell_ssh_port'] = 22
220# gitlab_rails['git_max_size'] = 20971520
221# gitlab_rails['git_timeout'] = 10
222
223## Extra customization
224# gitlab_rails['extra_google_analytics_id'] = '_your_tracking_id'
225# gitlab_rails['extra_piwik_url'] = '_your_piwik_url'
226# gitlab_rails['extra_piwik_site_id'] = '_your_piwik_site_id'
227
228# gitlab_rails['env'] = {
229# 'BUNDLE_GEMFILE' => "/opt/gitlab/embedded/service/gitlab-rails/Gemfile",
230# 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
231# }
232
233# gitlab_rails['rack_attack_git_basic_auth'] = {
234# 'enabled' => true,
235# 'ip_whitelist' => ["127.0.0.1"],
236# 'maxretry' => 10,
237# 'findtime' => 60,
238# 'bantime' => 3600
239# }
240
241# We do not recommend changing these directories.
242# gitlab_rails['dir'] = "/var/opt/gitlab/gitlab-rails"
243# gitlab_rails['log_directory'] = "/var/log/gitlab/gitlab-rails"
244
245###############################
246# GitLab application settings #
247###############################
248
249# gitlab_rails['uploads_directory'] = "/var/opt/gitlab/gitlab-rails/uploads"
250# gitlab_rails['rate_limit_requests_per_period'] = 10
251# gitlab_rails['rate_limit_period'] = 60
252
253# Change the initial default admin password.
254# Only applicable on inital setup, changing this setting after database is created and seeded
255# won't yield any change.
256# gitlab_rails['initial_root_password'] = "password"
257
258############################
259# GitLab database settings #
260############################
261## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/database.md#database-settings
262## Only needed if you use an external database.
263
264# gitlab_rails['db_adapter'] = "postgresql"
265# gitlab_rails['db_encoding'] = "unicode"
266# gitlab_rails['db_collation'] = nil
267# gitlab_rails['db_database'] = "gitlabhq_production"
268# gitlab_rails['db_pool'] = 10
269# gitlab_rails['db_username'] = "gitlab"
270# gitlab_rails['db_password'] = nil
271# gitlab_rails['db_host'] = nil
272# gitlab_rails['db_port'] = 5432
273# gitlab_rails['db_socket'] = nil
274# gitlab_rails['db_sslmode'] = nil
275# gitlab_rails['db_sslrootcert'] = nil
276
277
278#########################
279# GitLab redis settings #
280#########################
281## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/redis.md#redis-settings
282## Connect to your own redis instance.
283
284# gitlab_rails['redis_host'] = "127.0.0.1"
285# gitlab_rails['redis_port'] = nil
286# gitlab_rails['redis_password'] = nil
287# gitlab_rails['redis_database'] = 0
288# gitlab_rails['redis_socket'] = "/var/opt/gitlab/redis/redis.socket"
289
290################################
291# GitLab email server settings #
292################################
293# see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/smtp.md#smtp-settings
294# Use smtp instead of sendmail/postfix.
295
296# gitlab_rails['smtp_enable'] = true
297# gitlab_rails['smtp_address'] = "smtp.gmail.com"
298# gitlab_rails['smtp_port'] = 587
299# gitlab_rails['smtp_user_name'] = ""
300# gitlab_rails['smtp_password'] = ""
301# gitlab_rails['smtp_domain'] = ""
302# gitlab_rails['smtp_authentication'] = "login"
303# gitlab_rails['smtp_enable_starttls_auto'] = true
304# gitlab_rails['smtp_tls'] = false
305# gitlab_rails['smtp_openssl_verify_mode'] = 'peer' # Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert', see http://api.rubyonrails.org/classes/ActionMailer/Base.html
306# gitlab_rails['smtp_ca_path'] = "/etc/ssl/certs"
307# gitlab_rails['smtp_ca_file'] = "/etc/ssl/certs/ca-certificates.crt"
308
309####################
310# GitLab Workhorse #
311####################
312# see https://gitlab.com/gitlab-org/gitlab-workhorse/blob/master/README.md
313
314# gitlab_workhorse['enable'] = true
315# gitlab_workhorse['ha'] = false
316# gitlab_workhorse['listen_network'] = "unix"
317# gitlab_workhorse['listen_umask'] = 000
318# gitlab_workhorse['listen_addr'] = "/var/opt/gitlab/gitlab-workhorse/socket"
319# gitlab_workhorse['auth_backend'] = "http://localhost:8080"
320# gitlab_workhorse['auth_socket'] = "''" # the empty string is the default in gitlab-workhorse option parser
321# gitlab_workhorse['pprof_listen_addr'] = "''" # put an empty string on the command line
322# gitlab_workhorse['dir'] = "/var/opt/gitlab/gitlab-workhorse"
323# gitlab_workhorse['log_directory'] = "/var/log/gitlab/gitlab-workhorse"
324# gitlab_workhorse['proxy_headers_timeout'] = "1m0s"
325# gitlab_workhorse['env'] = {
326# 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
327# }
328
329###############
330# GitLab user #
331###############
332## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/README.md#changing-the-name-of-the-git-user-group
333## Modify default git user.
334
335
336# user['username'] = "git"
337# user['group'] = "git"
338# user['uid'] = nil
339# user['gid'] = nil
340# # The shell for the git user
341# user['shell'] = "/bin/sh"
342# # The home directory for the git user
343# user['home'] = "/var/opt/gitlab"
344# user['git_user_name'] = "GitLab"
345# user['git_user_email'] = "gitlab@#{node['fqdn']}"
346
347##################
348# GitLab Unicorn #
349##################
350## Tweak unicorn settings.
351
352# unicorn['worker_timeout'] = 60
353# unicorn['worker_processes'] = 2
354
355## Advanced settings
356# unicorn['listen'] = '127.0.0.1'
357# unicorn['port'] = 8080
358# unicorn['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
359# unicorn['pidfile'] = '/opt/gitlab/var/unicorn/unicorn.pid'
360# unicorn['tcp_nopush'] = true
361# unicorn['backlog_socket'] = 1024
362# Make sure somaxconn is equal or higher then backlog_socket
363# unicorn['somaxconn'] = 1024
364# We do not recommend changing this setting
365# unicorn['log_directory'] = "/var/log/gitlab/unicorn"
366
367## Only change these settings if you understand well what they mean
368## see https://about.gitlab.com/2015/06/05/how-gitlab-uses-unicorn-and-unicorn-worker-killer/
369## and https://github.com/kzk/unicorn-worker-killer
370# unicorn['worker_memory_limit_min'] = "300*(1024**2)"
371# unicorn['worker_memory_limit_max'] = "350*(1024**2)"
372
373
374##################
375# GitLab Sidekiq #
376##################
377
378# sidekiq['log_directory'] = "/var/log/gitlab/sidekiq"
379# sidekiq['shutdown_timeout'] = 4
380# sidekiq['concurrency'] = 25
381
382
383################
384# gitlab-shell #
385################
386
387# gitlab_shell['audit_usernames'] = false
388# gitlab_shell['log_level'] = 'INFO'
389# gitlab_shell['http_settings'] = { user: 'username', password: 'password', ca_file: '/etc/ssl/cert.pem', ca_path: '/etc/pki/tls/certs', self_signed_cert: false}
390# gitlab_shell['log_directory'] = "/var/log/gitlab/gitlab-shell/"
391
392## If enabled, git-annex needs to be installed on the server where gitlab is setup
393# For Debian and Ubuntu systems this can be done with: sudo apt-get install git-annex
394# For CentOS: sudo yum install epel-release && sudo yum install git-annex
395# gitlab_shell['git_annex_enabled'] = false
396
397#####################
398# GitLab PostgreSQL #
399#####################
400
401# postgresql['enable'] = true
402# postgresql['listen_address'] = nil
403# postgresql['port'] = 5432
404# postgresql['data_dir'] = "/var/opt/gitlab/postgresql/data"
405# postgresql['shared_buffers'] = "256MB" # recommend value is 1/4 of total RAM, up to 14GB.
406
407## Advanced settings
408# postgresql['ha'] = false
409# postgresql['dir'] = "/var/opt/gitlab/postgresql"
410# postgresql['log_directory'] = "/var/log/gitlab/postgresql"
411# postgresql['username'] = "gitlab-psql"
412# postgresql['uid'] = nil
413# postgresql['gid'] = nil
414# postgresql['shell'] = "/bin/sh"
415# postgresql['home'] = "/var/opt/gitlab/postgresql"
416# postgresql['user_path'] = "/opt/gitlab/embedded/bin:/opt/gitlab/bin:$PATH"
417# postgresql['sql_user'] = "gitlab"
418# postgresql['sql_ci_user'] = "gitlab_ci"
419# postgresql['max_connections'] = 200
420# postgresql['md5_auth_cidr_addresses'] = []
421# postgresql['trust_auth_cidr_addresses'] = []
422# postgresql['shmmax'] = 17179869184 # or 4294967295
423# postgresql['shmall'] = 4194304 # or 1048575
424# postgresql['work_mem'] = "8MB"
425# postgresql['effective_cache_size'] = "1MB"
426# postgresql['checkpoint_segments'] = 10
427# postgresql['checkpoint_timeout'] = "5min"
428# postgresql['checkpoint_completion_target'] = 0.9
429# postgresql['checkpoint_warning'] = "30s"
430
431## Replication settings
432# postgresql['sql_replication_user'] = "gitlab_replicator"
433# postgresql['wal_level'] = "hot_standby"
434# postgresql['max_wal_senders'] = 5
435# postgresql['wal_keep_segments'] = 10
436# postgresql['hot_standby'] = "off"
437
438################
439# GitLab Redis #
440################
441## Can be disabled if you are using your own redis instance.
442
443# redis['enable'] = true
444# redis['username'] = "gitlab-redis"
445# redis['uid'] = nil
446# redis['gid'] = nil
447
448
449#####################
450# GitLab Web server #
451#####################
452## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/doc/settings/nginx.md#using-a-non-bundled-web-server
453## When bundled nginx is disabled we need to add the external webserver user to the GitLab webserver group.
454
455# web_server['external_users'] = []
456# web_server['username'] = 'gitlab-www'
457# web_server['group'] = 'gitlab-www'
458# web_server['uid'] = nil
459# web_server['gid'] = nil
460# web_server['shell'] = '/bin/false'
461# web_server['home'] = '/var/opt/gitlab/nginx'
462
463
464################
465# GitLab Nginx #
466################
467## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/doc/settings/nginx.md
468
469# nginx['enable'] = true
470# nginx['client_max_body_size'] = '250m'
471# nginx['redirect_http_to_https'] = false
472# nginx['redirect_http_to_https_port'] = 80
473# nginx['ssl_client_certificate'] = "/etc/gitlab/ssl/ca.crt" # Most root CA's are included by default
474# nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
475# nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
476# nginx['ssl_ciphers'] = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256"
477# nginx['ssl_prefer_server_ciphers'] = "on"
478# nginx['ssl_protocols'] = "TLSv1 TLSv1.1 TLSv1.2" # recommended by https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html & https://cipherli.st/
479# nginx['ssl_session_cache'] = "builtin:1000 shared:SSL:10m" # recommended in http://nginx.org/en/docs/http/ngx_http_ssl_module.html
480# nginx['ssl_session_timeout'] = "5m" # default according to http://nginx.org/en/docs/http/ngx_http_ssl_module.html
481# nginx['ssl_dhparam'] = nil # Path to dhparams.pem, eg. /etc/gitlab/ssl/dhparams.pem
482# nginx['listen_addresses'] = ['*']
483# nginx['listen_port'] = nil # override only if you use a reverse proxy: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#setting-the-nginx-listen-port
484# nginx['listen_https'] = nil # override only if your reverse proxy internally communicates over HTTP: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#supporting-proxied-ssl
485# nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
486# nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;"
487# nginx['proxy_read_timeout'] = 300
488# nginx['proxy_connect_timeout'] = 300
489# nginx['proxy_set_headers'] = {
490# "Host" => "$http_host",
491# "X-Real-IP" => "$remote_addr",
492# "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
493# "X-Forwarded-Proto" => "https",
494# "X-Forwarded-Ssl" => "on"
495# }
496# nginx['proxy_cache_path'] = 'proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2'
497# nginx['proxy_cache'] = 'gitlab'
498# nginx['http2_enabled'] = true
499
500## Advanced settings
501# nginx['dir'] = "/var/opt/gitlab/nginx"
502# nginx['log_directory'] = "/var/log/gitlab/nginx"
503# nginx['worker_processes'] = 4
504# nginx['worker_connections'] = 10240
505# nginx['log_format'] = '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'
506# nginx['sendfile'] = 'on'
507# nginx['tcp_nopush'] = 'on'
508# nginx['tcp_nodelay'] = 'on'
509# nginx['gzip'] = "on"
510# nginx['gzip_http_version'] = "1.0"
511# nginx['gzip_comp_level'] = "2"
512# nginx['gzip_proxied'] = "any"
513# nginx['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ]
514# nginx['keepalive_timeout'] = 65
515# nginx['cache_max_size'] = '5000m'
516
517
518
519##################
520# GitLab Logging #
521##################
522## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/README.md#logs
523
524# logging['svlogd_size'] = 200 * 1024 * 1024 # rotate after 200 MB of log data
525# logging['svlogd_num'] = 30 # keep 30 rotated log files
526# logging['svlogd_timeout'] = 24 * 60 * 60 # rotate after 24 hours
527# logging['svlogd_filter'] = "gzip" # compress logs with gzip
528# logging['svlogd_udp'] = nil # transmit log messages via UDP
529# logging['svlogd_prefix'] = nil # custom prefix for log messages
530# logging['logrotate_frequency'] = "daily" # rotate logs daily
531# logging['logrotate_size'] = nil # do not rotate by size by default
532# logging['logrotate_rotate'] = 30 # keep 30 rotated logs
533# logging['logrotate_compress'] = "compress" # see 'man logrotate'
534# logging['logrotate_method'] = "copytruncate" # see 'man logrotate'
535# logging['logrotate_postrotate'] = nil # no postrotate command by default
536# logging['logrotate_dateformat'] = nil # use date extensions for rotated files rather than numbers e.g. a value of "-%Y-%m-%d" would give rotated files like production.log-2016-03-09.gz
537# Enterprise Edition only
538# logging['udp_log_shipping_host'] = nil # remote host to ship log messages to via UDP
539# logging['udp_log_shipping_port'] = 514 # remote host to ship log messages to via UDP
540
541#############
542# Logrotate #
543#############
544## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/README.md#logrotate
545## You can disable built in logrotate feature.
546
547# logrotate['enable'] = true
548
549#############################
550# Users and groups accounts #
551#############################
552## Disable management of users and groups accounts.
553## Set only if creating accounts manually
554## See: http://doc.gitlab.com/omnibus/settings/configuration.html#disable-user-and-group-account-management
555# manage_accounts['enable'] = false
556
557#######################
558# Storage directories #
559#######################
560## Disable managing storage directories
561## Set only if the select directories are created manually
562## See: http://doc.gitlab.com/omnibus/settings/configuration.html#disable-storage-directories-management
563# manage_storage_directories['enable'] = false
564
565#######
566# Git #
567#######
568## Advanced setting for configuring git system settings for omnibus-gitlab internal git
569## For multiple options under one header use array of comma separated values, eg.
570## { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] }
571
572# omnibus_gitconfig['system'] = { "receive" => ["fsckObjects = true"] }
573
574#############
575# GitLab CI #
576#############
577## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/gitlab-ci/README.md
578
579# gitlab_ci['gitlab_ci_all_broken_builds'] = true
580# gitlab_ci['gitlab_ci_add_pusher'] = true
581# gitlab_ci['builds_directory'] = '/var/opt/gitlab/gitlab-ci/builds'
582
583# DEPRECATED
584# ci_external_url 'http://ci.example.com'
585#
586
587#####################
588# GitLab Mattermost #
589#####################
590
591mattermost_external_url 'http://mattermost.cairnrtc.com'
592#
593# mattermost['enable'] = false
594# mattermost['username'] = 'mattermost'
595# mattermost['group'] = 'mattermost'
596# mattermost['home'] = '/var/opt/gitlab/mattermost'
597# mattermost['database_name'] = 'mattermost_production'
598
599# mattermost['service_use_ssl'] = false
600# mattermost['service_address'] = "127.0.0.1"
601# mattermost['service_port'] = "8065"
602
603# mattermost['service_maximum_login_attempts'] = 10
604# mattermost['service_segment_developer_key'] = nil
605# mattermost['service_google_developer_key'] = nil
606# mattermost['service_enable_incoming_webhooks'] = true
607# mattermost['service_enable_post_username_override'] = false
608# mattermost['service_enable_post_icon_override'] = false
609# mattermost['service_enable_testing'] = false
610# mattermost['service_enable_security_fix_alert'] = true
611# mattermost['service_enable_insecure_outgoing_connections'] = false
612# mattermost['service_allow_cors_from'] = ""
613# mattermost['service_enable_outgoing_webhooks'] = true
614# mattermost['service_enable_commands'] = false
615# mattermost['service_enable_only_admin_integrations'] = true
616# mattermost['service_enable_oauth_service_provider'] = false
617# mattermost['service_enable_developer'] = false
618# mattermost['service_session_length_web_in_days'] = 30
619# mattermost['service_session_length_mobile_in_days'] = 30
620# mattermost['service_session_length_sso_in_days'] = 30
621# mattermost['service_session_cache_in_minutes'] = 10
622
623# mattermost['team_site_name'] = "GitLab Mattermost"
624# mattermost['team_max_users_per_team'] = 150
625# mattermost['team_enable_team_creation'] = true
626# mattermost['team_enable_user_creation'] = true
627# mattermost['team_allow_public_link'] = true
628# mattermost['team_allow_valet_default'] = false
629# mattermost['team_default_color'] = '#2389D7'
630# mattermost['team_restrict_creation_to_domains'] = "gmail.com"
631# mattermost['team_restrict_team_names'] = true
632# mattermost['team_enable_team_listing'] = false
633
634
635# mattermost['sql_driver_name'] = 'mysql'
636# mattermost['sql_data_source'] = "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8"
637# mattermost['sql_data_source_replicas'] = ["mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8"]
638# mattermost['sql_max_idle_conns'] = 10
639# mattermost['sql_max_open_conns'] = 10
640# mattermost['sql_trace'] = false
641
642# mattermost['log_file_directory'] = '/var/log/gitlab/mattermost'
643# mattermost['log_console_enable'] = true
644# mattermost['log_console_level'] = 'INFO'
645# mattermost['log_enable_file'] = false
646# mattermost['log_file_level'] = 'INFO'
647# mattermost['log_file_format'] = nil
648
649# mattermost['gitlab_enable'] = false
650# mattermost['gitlab_secret'] = "123456789"
651# mattermost['gitlab_id'] = "12345656"
652# mattermost['gitlab_scope'] = ""
653# mattermost['gitlab_auth_endpoint'] = "http://gitlab.example.com/oauth/authorize"
654# mattermost['gitlab_token_endpoint'] = "http://gitlab.example.com/oauth/token"
655# mattermost['gitlab_user_api_endpoint'] = "http://gitlab.example.com/api/v3/user"
656
657# mattermost['aws'] = {'S3AccessKeyId' => '123', 'S3SecretAccessKey' => '123', 'S3Bucket' => 'aa', 'S3Region' => 'bb'}
658
659mattermost['email_enable_sign_up_with_email'] = true
660mattermost['email_enable_sign_in_with_email'] = true
661# mattermost['email_enable_sign_in_with_username'] = true
662# mattermost['email_send_email_notifications'] = true
663# mattermost['email_require_email_verification'] = true
664# mattermost['email_smtp_username'] = nil
665# mattermost['email_smtp_password'] = nil
666# mattermost['email_smtp_server'] = aspmx.l.google.com
667# mattermost['email_smtp_port'] = 25
668# mattermost['email_connection_security'] = nil
669# mattermost['email_feedback_name'] = Support
670# mattermost['email_feedback_email'] = support@haikuengineering.com
671# mattermost['email_send_push_notifications'] = true
672# mattermost['email_push_notification_server'] = ""
673
674# mattermost['file_driver_name'] = "local"
675# mattermost['file_directory'] = "/var/opt/gitlab/mattermost/data"
676# mattermost['file_enable_public_link'] = true
677# mattermost['file_thumbnail_width'] = 120
678# mattermost['file_thumbnail_height'] = 100
679# mattermost['file_preview_width'] = 1024
680# mattermost['file_preview_height'] = 0
681# mattermost['file_profile_width'] = 128
682# mattermost['file_profile_height'] = 128
683# mattermost['file_initial_font'] = 'luximbi.ttf'
684# mattermost['file_amazon_s3_access_key_id'] = nil
685# mattermost['file_amazon_s3_bucket'] = nil
686# mattermost['file_amazon_s3_secret_access_key'] = nil
687# mattermost['file_amazon_s3_bucket'] = nil
688# mattermost["file_amazon_s3_endpoint"] = nil
689# mattermost["file_amazon_s3_bucket_endpoint"] = nil
690# mattermost["file_amazon_s3_location_constraint"] = false
691# mattermost["file_amazon_s3_lowercase_bucket"] = false
692
693# mattermost['ratelimit_enable_rate_limiter'] = true
694# mattermost['ratelimit_per_sec'] = 10
695# mattermost['ratelimit_memory_store_size'] = 10000
696# mattermost['ratelimit_vary_by_remote_addr'] = true
697# mattermost['ratelimit_vary_by_header'] = nil
698
699# mattermost['support_terms_of_service_link'] = "/static/help/terms.html"
700# mattermost['support_privacy_policy_link'] = "/static/help/privacy.html"
701# mattermost['support_about_link'] = "/static/help/about.html"
702# mattermost['support_report_a_problem_link'] = "/static/help/report_problem.html"
703mattermost['support_email'] = "support@cairnrtc.com"
704
705# mattermost['privacy_show_email_address'] = true
706# mattermost['privacy_show_full_name'] = true
707
708
709####################
710# Mattermost NGINX #
711####################
712
713# mattermost_nginx['enable'] = false
714# mattermost_nginx['client_max_body_size'] = '250m'
715# mattermost_nginx['redirect_http_to_https'] = false
716# mattermost_nginx['redirect_http_to_https_port'] = 80
717# mattermost_nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
718# mattermost_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
719# mattermost_nginx['ssl_ciphers'] = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256"
720# mattermost_nginx['ssl_prefer_server_ciphers'] = "on"
721# mattermost_nginx['ssl_protocols'] = "TLSv1 TLSv1.1 TLSv1.2" # recommended by https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html & https://cipherli.st/
722# mattermost_nginx['ssl_session_cache'] = "builtin:1000 shared:SSL:10m" # recommended in http://nginx.org/en/docs/http/ngx_http_ssl_module.html
723# mattermost_nginx['ssl_session_timeout'] = "5m" # default according to http://nginx.org/en/docs/http/ngx_http_ssl_module.html
724# mattermost_nginx['ssl_dhparam'] = nil # Path to ci_dhparams.pem, eg. /etc/gitlab/ssl/ci_dhparams.pem
725# mattermost_nginx['listen_addresses'] = ['*']
726# mattermost_nginx['listen_port'] = nil # override only if you use a reverse proxy: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#setting-the-nginx-listen-port
727# mattermost_nginx['listen_https'] = nil # override only if your reverse proxy internally communicates over HTTP: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#supporting-proxied-ssl
728# mattermost_nginx['custom_gitlab_mattermost_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
729# mattermost_nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;"
730
731## Advanced settings
732# mattermost_nginx['dir'] = "/var/opt/gitlab/nginx"
733# mattermost_nginx['log_directory'] = "/var/log/gitlab/nginx"
734# mattermost_nginx['worker_processes'] = 4
735# mattermost_nginx['worker_connections'] = 10240
736# mattermost_nginx['sendfile'] = 'on'
737# mattermost_nginx['tcp_nopush'] = 'on'
738# mattermost_nginx['tcp_nodelay'] = 'on'
739# mattermost_nginx['gzip'] = "on"
740# mattermost_nginx['gzip_http_version'] = "1.0"
741# mattermost_nginx['gzip_comp_level'] = "2"
742# mattermost_nginx['gzip_proxied'] = "any"
743# mattermost_nginx['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ]
744# mattermost_nginx['keepalive_timeout'] = 65
745# mattermost_nginx['cache_max_size'] = '5000m'
746
747####################
748# GitLab Pages
749####################
750
751## Define to enable GitLab Pages
752# pages_external_url "http://pages.example.com/"
753
754# gitlab_pages['enable'] = false
755# gitlab_pages['external_http'] = nil # Configure to expose GitLab Pages on external IP address, serving the HTTP
756# gitlab_pages['external_https'] = nil # Configure to expose GitLab Pages on external IP address, serving the HTTPS
757# gitlab_pages['listen_proxy'] = "localhost:8090"
758# gitlab_pages['redirect_http'] = true
759# gitlab_pages['use_http2'] = true
760# gitlab_pages['dir'] = "/var/opt/gitlab/gitlab-pages"
761# gitlab_pages['log_directory'] = "/var/log/gitlab/gitlab-pages"
762
763####################
764# GitLab Pages NGINX #
765####################
766
767# pages_nginx['enable'] = false
768# pages_nginx['redirect_http_to_https'] = false
769# pages_nginx['redirect_http_to_https_port'] = 80
770# pages_nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
771# pages_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
772# pages_nginx['ssl_ciphers'] = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256"
773# pages_nginx['ssl_prefer_server_ciphers'] = "on"
774# pages_nginx['ssl_protocols'] = "TLSv1 TLSv1.1 TLSv1.2" # recommended by https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html & https://cipherli.st/
775# pages_nginx['ssl_session_cache'] = "builtin:1000 shared:SSL:10m" # recommended in http://nginx.org/en/docs/http/ngx_http_ssl_module.html
776# pages_nginx['ssl_session_timeout'] = "5m" # default according to http://nginx.org/en/docs/http/ngx_http_ssl_module.html
777# pages_nginx['ssl_dhparam'] = nil # Path to ci_dhparams.pem, eg. /etc/gitlab/ssl/ci_dhparams.pem
778# pages_nginx['listen_addresses'] = ['*']
779# pages_nginx['listen_port'] = nil # override only if you use a reverse proxy: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#setting-the-nginx-listen-port
780# pages_nginx['listen_https'] = nil # override only if your reverse proxy internally communicates over HTTP: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#supporting-proxied-ssl
781# pages_nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
782
783## Advanced settings
784# pages_nginx['dir'] = "/var/opt/gitlab/nginx"
785# pages_nginx['log_directory'] = "/var/log/gitlab/nginx"