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