· 7 years ago · Mar 26, 2018, 09:12 AM
1## GitLab configuration settings
2##! This file is generated during initial installation and **is not** modified
3##! during upgrades.
4##! Check out the latest version of this file to know about the different
5##! settings that can be configured by this file, which may be found at:
6##! https://gitlab.com/gitlab-org/omnibus-gitlab/raw/master/files/gitlab-config-template/gitlab.rb.template
7
8
9## GitLab URL
10##! URL on which GitLab will be reachable.
11##! For more details on configuring external_url see:
12##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
13external_url 'https://gitlab.example.com'
14
15## Legend
16##! The following notations at the beginning of each line may be used to
17##! differentiate between components of this file and to easily select them using
18##! a regex.
19##! ## Titles, subtitles etc
20##! ##! More information - Description, Docs, Links, Issues etc.
21##! Configuration settings have a single # followed by a single space at the
22##! beginning; Remove them to enable the setting.
23
24##! **Configuration settings below are optional.**
25##! **The values currently assigned are only examples and ARE NOT the default
26##! values.**
27
28
29
30################################################################################
31################################################################################
32## Configuration Settings for GitLab CE and EE ##
33################################################################################
34################################################################################
35
36################################################################################
37## gitlab.yml configuration
38##! Docs: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/gitlab.yml.md
39################################################################################
40# gitlab_rails['gitlab_ssh_host'] = 'ssh.host_example.com'
41# gitlab_rails['time_zone'] = 'UTC'
42
43### Email Settings
44# gitlab_rails['gitlab_email_enabled'] = true
45# gitlab_rails['gitlab_email_from'] = 'example@example.com'
46# gitlab_rails['gitlab_email_display_name'] = 'Example'
47# gitlab_rails['gitlab_email_reply_to'] = 'noreply@example.com'
48# gitlab_rails['gitlab_email_subject_suffix'] = ''
49
50### GitLab user privileges
51# gitlab_rails['gitlab_default_can_create_group'] = true
52# gitlab_rails['gitlab_username_changing_enabled'] = true
53
54### Default Theme
55# gitlab_rails['gitlab_default_theme'] = 2
56
57### Default project feature settings
58# gitlab_rails['gitlab_default_projects_features_issues'] = true
59# gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
60# gitlab_rails['gitlab_default_projects_features_wiki'] = true
61# gitlab_rails['gitlab_default_projects_features_snippets'] = true
62# gitlab_rails['gitlab_default_projects_features_builds'] = true
63# gitlab_rails['gitlab_default_projects_features_container_registry'] = true
64
65### Automatic issue closing
66###! See https://docs.gitlab.com/ce/customization/issue_closing.html for more
67###! information about this pattern.
68# gitlab_rails['gitlab_issue_closing_pattern'] = "((?:[Cc]los(?:e[sd]?|ing)|[Ff]ix(?:e[sd]|ing)?|[Rr]esolv(?:e[sd]?|ing))(:?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?)|([A-Z][A-Z0-9_]+-\d+))+)"
69
70### Download location
71###! When a user clicks e.g. 'Download zip' on a project, a temporary zip file
72###! is created in the following directory.
73# gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
74
75### Gravatar Settings
76# gitlab_rails['gravatar_plain_url'] = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
77# gitlab_rails['gravatar_ssl_url'] = 'https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
78
79### Auxiliary jobs
80###! Periodically executed jobs, to self-heal Gitlab, do external
81###! synchronizations, etc.
82###! Docs: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job
83###! https://docs.gitlab.com/ce/ci/yaml/README.html#artifacts:expire_in
84# gitlab_rails['stuck_ci_jobs_worker_cron'] = "0 0 * * *"
85# gitlab_rails['expire_build_artifacts_worker_cron'] = "50 * * * *"
86# gitlab_rails['pipeline_schedule_worker_cron'] = "41 * * * *"
87# gitlab_rails['repository_check_worker_cron'] = "20 * * * *"
88# gitlab_rails['admin_email_worker_cron'] = "0 0 * * 0"
89# gitlab_rails['repository_archive_cache_worker_cron'] = "0 * * * *"
90
91### Webhook Settings
92###! Number of seconds to wait for HTTP response after sending webhook HTTP POST
93###! request (default: 10)
94# gitlab_rails['webhook_timeout'] = 10
95
96### Trusted proxies
97###! Customize if you have GitLab behind a reverse proxy which is running on a
98###! different machine.
99###! **Add the IP address for your reverse proxy to the list, otherwise users
100###! will appear signed in from that address.**
101#gitlab_rails['trusted_proxies'] = ['127.0.0.0/8', '127.0.0.1']
102
103### Monitoring settings
104###! IP whitelist controlling access to monitoring endpoints
105# gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8']
106###! Time between sampling of unicorn socket metrics, in seconds
107# gitlab_rails['monitoring_unicorn_sampler_interval'] = 10
108
109### Reply by email
110###! Allow users to comment on issues and merge requests by replying to
111###! notification emails.
112###! Docs: https://docs.gitlab.com/ce/administration/reply_by_email.html
113# gitlab_rails['incoming_email_enabled'] = true
114
115#### Incoming Email Address
116####! The email address including the `%{key}` placeholder that will be replaced
117####! to reference the item being replied to.
118####! **The placeholder can be omitted but if present, it must appear in the
119####! "user" part of the address (before the `@`).**
120# gitlab_rails['incoming_email_address'] = "gitlab-incoming+%{key}@gmail.com"
121
122#### Email account username
123####! **With third party providers, this is usually the full email address.**
124####! **With self-hosted email servers, this is usually the user part of the
125####! email address.**
126# gitlab_rails['incoming_email_email'] = "gitlab-incoming@gmail.com"
127
128#### Email account password
129# gitlab_rails['incoming_email_password'] = "[REDACTED]"
130
131#### IMAP Settings
132# gitlab_rails['incoming_email_host'] = "imap.gmail.com"
133# gitlab_rails['incoming_email_port'] = 993
134# gitlab_rails['incoming_email_ssl'] = true
135# gitlab_rails['incoming_email_start_tls'] = false
136
137#### Incoming Mailbox Settings
138####! The mailbox where incoming mail will end up. Usually "inbox".
139# gitlab_rails['incoming_email_mailbox_name'] = "inbox"
140####! The IDLE command timeout.
141# gitlab_rails['incoming_email_idle_timeout'] = 60
142
143### Job Artifacts
144# gitlab_rails['artifacts_enabled'] = true
145# gitlab_rails['artifacts_path'] = "/mnt/storage/artifacts"
146# gitlab_rails['artifacts_object_store_enabled'] = false
147# gitlab_rails['artifacts_object_store_remote_directory'] = "artifacts"
148# gitlab_rails['artifacts_object_store_connection'] = {
149# 'provider' => 'AWS',
150# 'region' => 'eu-west-1',
151# 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
152# 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY'
153# }
154
155### Git LFS
156# gitlab_rails['lfs_enabled'] = true
157# gitlab_rails['lfs_storage_path'] = "/mnt/storage/lfs-objects"
158
159### Usage Statistics
160# gitlab_rails['usage_ping_enabled'] = true
161
162### GitLab Mattermost
163###! These settings are void if Mattermost is installed on the same omnibus
164###! install
165# gitlab_rails['mattermost_host'] = "https://mattermost.example.com"
166
167### LDAP Settings
168###! Docs: https://docs.gitlab.com/omnibus/settings/ldap.html
169###! **Be careful not to break the indentation in the ldap_servers block. It is
170###! in yaml format and the spaces must be retained. Using tabs will not work.**
171
172gitlab_rails['ldap_enabled'] = true
173
174###! **remember to close this block with 'EOS' below**
175gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
176 main: # 'main' is the GitLab 'provider ID' of this LDAP server
177 label: 'LDAP'
178 host: 'b-dc1.example.com'
179 port: 389
180 uid: 'sAMAccountName'
181 bind_dn: 'CN=gitlab,CN=Users,DC=bobnet,DC=hu'
182 password: 'pwd'
183 encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
184 verify_certificates: false
185 # ca_file: ''
186 # ssl_version: ''
187 active_directory: true
188 allow_username_or_email_login: false
189 block_auto_created_users: false
190 base: 'DC=example,DC=com'
191 # user_filter: ''
192 attributes:
193 username: ['uid', 'userid', 'sAMAccountName']
194 email: ['mail', 'email', 'userPrincipalName']
195 name: 'cn'
196 first_name: 'givenName'
197 last_name: 'sn'
198# ## EE only
199# group_base: ''
200# admin_group: ''
201# sync_ssh_keys: false
202#
203# secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
204# label: 'LDAP'
205# host: '_your_ldap_server'
206# port: 389
207# uid: 'sAMAccountName'
208# bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
209# password: '_the_password_of_the_bind_user'
210# encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
211# verify_certificates: true
212# ca_file: ''
213# ssl_version: ''
214# active_directory: true
215# allow_username_or_email_login: false
216# block_auto_created_users: false
217# base: ''
218# user_filter: ''
219# attributes:
220# username: ['uid', 'userid', 'sAMAccountName']
221# email: ['mail', 'email', 'userPrincipalName']
222# name: 'cn'
223# first_name: 'givenName'
224# last_name: 'sn'
225# ## EE only
226# group_base: ''
227# admin_group: ''
228# sync_ssh_keys: false
229EOS
230
231### OmniAuth Settings
232###! Docs: https://docs.gitlab.com/ce/integration/omniauth.html
233# gitlab_rails['omniauth_enabled'] = false
234# gitlab_rails['omniauth_allow_single_sign_on'] = ['saml']
235# gitlab_rails['omniauth_sync_email_from_provider'] = 'saml'
236# gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'saml'
237# gitlab_rails['omniauth_block_auto_created_users'] = true
238# gitlab_rails['omniauth_auto_link_ldap_user'] = false
239# gitlab_rails['omniauth_auto_link_saml_user'] = false
240# gitlab_rails['omniauth_external_providers'] = ['twitter', 'google_oauth2']
241# gitlab_rails['omniauth_providers'] = [
242# {
243# "name" => "google_oauth2",
244# "app_id" => "YOUR APP ID",
245# "app_secret" => "YOUR APP SECRET",
246# "args" => { "access_type" => "offline", "approval_prompt" => "" }
247# }
248# ]
249
250### Backup Settings
251###! Docs: https://docs.gitlab.com/omnibus/settings/backups.html
252
253# gitlab_rails['manage_backup_path'] = true
254# gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
255
256###! Docs: https://docs.gitlab.com/ce/raketasks/backup_restore.html#backup-archive-permissions
257# gitlab_rails['backup_archive_permissions'] = 0644
258
259# gitlab_rails['backup_pg_schema'] = 'public'
260
261###! The duration in seconds to keep backups before they are allowed to be deleted
262# gitlab_rails['backup_keep_time'] = 604800
263
264# gitlab_rails['backup_upload_connection'] = {
265# 'provider' => 'AWS',
266# 'region' => 'eu-west-1',
267# 'aws_access_key_id' => 'AKIAKIAKI',
268# 'aws_secret_access_key' => 'secret123'
269# }
270# gitlab_rails['backup_upload_remote_directory'] = 'my.s3.bucket'
271# gitlab_rails['backup_multipart_chunk_size'] = 104857600
272
273###! **Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for
274###! backups**
275# gitlab_rails['backup_encryption'] = 'AES256'
276
277###! **Specifies Amazon S3 storage class to use for backups. Valid values
278###! include 'STANDARD', 'STANDARD_IA', 'GLACIER', and
279###! 'REDUCED_REDUNDANCY'**
280# gitlab_rails['backup_storage_class'] = 'STANDARD'
281
282### For setting up different data storing directory
283###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory
284###! **If you want to use a single non-default directory to store git data use a
285###! path that doesn't contain symlinks.**
286 git_data_dirs({ "default" => { "path" => "/home/git"} })
287### Gitaly settings
288# gitlab_rails['gitaly_token'] = 'secret token'
289
290### For storing GitLab application uploads, eg. LFS objects, build artifacts
291###! Docs: https://docs.gitlab.com/ce/development/shared_files.html
292# gitlab_rails['shared_path'] = '/var/opt/gitlab/gitlab-rails/shared'
293
294### GitLab Shell settings for GitLab
295# gitlab_rails['gitlab_shell_ssh_port'] = 22
296# gitlab_rails['git_max_size'] = 20971520
297# gitlab_rails['git_timeout'] = 10
298# gitlab_rails['gitlab_shell_git_timeout'] = 800
299
300### Extra customization
301# gitlab_rails['extra_google_analytics_id'] = '_your_tracking_id'
302# gitlab_rails['extra_piwik_url'] = '_your_piwik_url'
303# gitlab_rails['extra_piwik_site_id'] = '_your_piwik_site_id'
304
305##! Docs: https://docs.gitlab.com/omnibus/settings/environment-variables.html
306# gitlab_rails['env'] = {
307# 'BUNDLE_GEMFILE' => "/opt/gitlab/embedded/service/gitlab-rails/Gemfile",
308# 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
309# }
310
311# gitlab_rails['rack_attack_git_basic_auth'] = {
312# 'enabled' => true,
313# 'ip_whitelist' => ["127.0.0.1"],
314# 'maxretry' => 10,
315# 'findtime' => 60,
316# 'bantime' => 3600
317# }
318
319# gitlab_rails['rack_attack_protected_paths'] = [
320# '/users/password',
321# '/users/sign_in',
322# '/api/#{API::API.version}/session.json',
323# '/api/#{API::API.version}/session',
324# '/users',
325# '/users/confirmation',
326# '/unsubscribes/',
327# '/import/github/personal_access_token'
328# ]
329
330###! **We do not recommend changing these directories.**
331# gitlab_rails['dir'] = "/var/opt/gitlab/gitlab-rails"
332# gitlab_rails['log_directory'] = "/var/log/gitlab/gitlab-rails"
333
334### GitLab application settings
335# gitlab_rails['uploads_directory'] = "/var/opt/gitlab/gitlab-rails/uploads"
336# gitlab_rails['rate_limit_requests_per_period'] = 10
337# gitlab_rails['rate_limit_period'] = 60
338
339#### Change the initial default admin password and shared runner registraion tokens.
340####! **Only applicable on initial setup, changing these settings after database
341####! is created and seeded won't yield any change.**
342# gitlab_rails['initial_root_password'] = "password"
343# gitlab_rails['initial_shared_runners_registration_token'] = "token"
344
345#### Enable or disable automatic database migrations
346# gitlab_rails['auto_migrate'] = true
347
348#### This is advanced feature used by large gitlab deployments where loading
349#### whole RAILS env takes a lot of time.
350# gitlab_rails['rake_cache_clear'] = true
351
352### GitLab database settings
353###! Docs: https://docs.gitlab.com/omnibus/settings/database.html
354###! **Only needed if you use an external database.**
355# gitlab_rails['db_adapter'] = "postgresql"
356# gitlab_rails['db_encoding'] = "unicode"
357# gitlab_rails['db_collation'] = nil
358# gitlab_rails['db_database'] = "gitlabhq_production"
359# gitlab_rails['db_pool'] = 10
360# gitlab_rails['db_username'] = "gitlab"
361# gitlab_rails['db_password'] = nil
362# gitlab_rails['db_host'] = nil
363# gitlab_rails['db_port'] = 5432
364# gitlab_rails['db_socket'] = nil
365# gitlab_rails['db_sslmode'] = nil
366# gitlab_rails['db_sslrootcert'] = nil
367# gitlab_rails['db_prepared_statements'] = true
368# gitlab_rails['db_statements_limit'] = 1000
369
370
371### GitLab Redis settings
372###! Connect to your own Redis instance
373###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
374
375#### Redis TCP connection
376# gitlab_rails['redis_host'] = "127.0.0.1"
377# gitlab_rails['redis_port'] = 6379
378# gitlab_rails['redis_password'] = nil
379# gitlab_rails['redis_database'] = 0
380
381#### Redis local UNIX socket (will be disabled if TCP method is used)
382# gitlab_rails['redis_socket'] = "/var/opt/gitlab/redis/redis.socket"
383
384#### Sentinel support
385####! To have Sentinel working, you must enable Redis TCP connection support
386####! above and define a few Sentinel hosts below (to get a reliable setup
387####! at least 3 hosts).
388####! **You don't need to list every sentinel host, but the ones not listed will
389####! not be used in a fail-over situation to query for the new master.**
390# gitlab_rails['redis_sentinels'] = [
391# {'host' => '127.0.0.1', 'port' => 26379},
392# ]
393
394### GitLab email server settings
395###! Docs: https://docs.gitlab.com/omnibus/settings/smtp.html
396###! **Use smtp instead of sendmail/postfix.**
397
398# gitlab_rails['smtp_enable'] = true
399# gitlab_rails['smtp_address'] = "smtp.server"
400# gitlab_rails['smtp_port'] = 465
401# gitlab_rails['smtp_user_name'] = "smtp user"
402# gitlab_rails['smtp_password'] = "smtp password"
403# gitlab_rails['smtp_domain'] = "example.com"
404# gitlab_rails['smtp_authentication'] = "login"
405# gitlab_rails['smtp_enable_starttls_auto'] = true
406# gitlab_rails['smtp_tls'] = false
407
408###! **Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert'**
409###! Docs: http://api.rubyonrails.org/classes/ActionMailer/Base.html
410# gitlab_rails['smtp_openssl_verify_mode'] = 'none'
411
412# gitlab_rails['smtp_ca_path'] = "/etc/ssl/certs"
413# gitlab_rails['smtp_ca_file'] = "/etc/ssl/certs/ca-certificates.crt"
414
415################################################################################
416## Container Registry settings
417##! Docs: https://docs.gitlab.com/ce/administration/container_registry.html
418################################################################################
419
420# registry_external_url 'https://registry.gitlab.example.com'
421
422### Settings used by GitLab application
423# gitlab_rails['registry_enabled'] = true
424# gitlab_rails['registry_host'] = "registry.gitlab.example.com"
425# gitlab_rails['registry_port'] = "5005"
426# gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
427
428###! **Do not change the following 3 settings unless you know what you are
429###! doing**
430# gitlab_rails['registry_api_url'] = "http://localhost:5000"
431# gitlab_rails['registry_key_path'] = "/var/opt/gitlab/gitlab-rails/certificate.key"
432# gitlab_rails['registry_issuer'] = "omnibus-gitlab-issuer"
433
434### Settings used by Registry application
435# registry['enable'] = true
436# registry['username'] = "registry"
437# registry['group'] = "registry"
438# registry['uid'] = nil
439# registry['gid'] = nil
440# registry['dir'] = "/var/opt/gitlab/registry"
441# registry['registry_http_addr'] = "localhost:5000"
442# registry['debug_addr'] = "localhost:5001"
443# registry['log_directory'] = "/var/log/gitlab/registry"
444# registry['log_level'] = "info"
445# registry['rootcertbundle'] = "/var/opt/gitlab/registry/certificate.crt"
446# registry['storage_delete_enabled'] = true
447
448### Registry backend storage
449###! Docs: https://docs.gitlab.com/ce/administration/container_registry.html#container-registry-storage-driver
450# registry['storage'] = {
451# 's3' => {
452# 'accesskey' => 'AKIAKIAKI',
453# 'secretkey' => 'secret123',
454# 'bucket' => 'gitlab-registry-bucket-AKIAKIAKI'
455# }
456# }
457
458### Registry notifications endpoints
459# registry['notifications'] = [
460# {
461# 'name' => 'test_endpoint',
462# 'url' => 'https://gitlab.example.com/notify2',
463# 'timeout' => '500ms',
464# 'threshold' => 5,
465# 'backoff' => '1s',
466# 'headers' => {
467# "Authorization" => ["AUTHORIZATION_EXAMPLE_TOKEN"]
468# }
469# }
470# ]
471### Default registry notifications
472# registry['default_notifications_timeout'] = "500ms"
473# registry['default_notifications_threshold'] = 5
474# registry['default_notifications_backoff'] = "1s"
475# registry['default_notifications_headers'] = {}
476
477
478
479################################################################################
480## GitLab Workhorse
481##! Docs: https://gitlab.com/gitlab-org/gitlab-workhorse/blob/master/README.md
482################################################################################
483
484# gitlab_workhorse['enable'] = true
485# gitlab_workhorse['ha'] = false
486#gitlab_workhorse['listen_network'] = "tcp"
487# gitlab_workhorse['listen_umask'] = 000
488#gitlab_workhorse['listen_addr'] = "127.0.0.1:8060"
489# gitlab_workhorse['auth_backend'] = "http://localhost:8080"
490
491##! the empty string is the default in gitlab-workhorse option parser
492# gitlab_workhorse['auth_socket'] = "''"
493
494##! put an empty string on the command line
495# gitlab_workhorse['pprof_listen_addr'] = "''"
496
497##! put an empty string on the command line
498# gitlab_workhorse['prometheus_listen_addr'] = "''"
499
500# gitlab_workhorse['dir'] = "/var/opt/gitlab/gitlab-workhorse"
501# gitlab_workhorse['log_directory'] = "/var/log/gitlab/gitlab-workhorse"
502# gitlab_workhorse['proxy_headers_timeout'] = "1m0s"
503
504##! limit number of concurrent API requests, defaults to 0 which is unlimited
505# gitlab_workhorse['api_limit'] = 0
506
507##! limit number of API requests allowed to be queued, defaults to 0 which
508##! disables queuing
509# gitlab_workhorse['api_queue_limit'] = 0
510
511##! duration after which we timeout requests if they sit too long in the queue
512# gitlab_workhorse['api_queue_duration'] = "30s"
513
514##! Long polling duration for job requesting for runners
515# gitlab_workhorse['api_ci_long_polling_duration'] = "60s"
516
517# gitlab_workhorse['env'] = {
518# 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
519# }
520
521################################################################################
522## GitLab User Settings
523##! Modify default git user.
524##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#changing-the-name-of-the-git-user-group
525################################################################################
526
527# user['username'] = "git"
528# user['group'] = "git"
529# user['uid'] = nil
530# user['gid'] = nil
531
532##! The shell for the git user
533# user['shell'] = "/bin/sh"
534
535##! The home directory for the git user
536# user['home'] = "/var/opt/gitlab"
537
538# user['git_user_name'] = "GitLab"
539# user['git_user_email'] = "gitlab@#{node['fqdn']}"
540
541################################################################################
542## GitLab Unicorn
543##! Tweak unicorn settings.
544##! Docs: https://docs.gitlab.com/omnibus/settings/unicorn.html
545################################################################################
546
547# unicorn['worker_timeout'] = 60
548###! Minimum worker_processes is 2 at this moment
549###! See https://gitlab.com/gitlab-org/gitlab-ce/issues/18771
550# unicorn['worker_processes'] = 2
551
552### Advanced settings
553unicorn['listen'] = '127.0.0.1'
554unicorn['port'] = 8060
555# unicorn['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
556# unicorn['pidfile'] = '/opt/gitlab/var/unicorn/unicorn.pid'
557# unicorn['tcp_nopush'] = true
558# unicorn['backlog_socket'] = 1024
559
560###! **Make sure somaxconn is equal or higher then backlog_socket**
561# unicorn['somaxconn'] = 1024
562
563###! **We do not recommend changing this setting**
564unicorn['log_directory'] = "/var/log/gitlab/unicorn"
565
566### **Only change these settings if you understand well what they mean**
567###! Docs: https://about.gitlab.com/2015/06/05/how-gitlab-uses-unicorn-and-unicorn-worker-killer/
568###! https://github.com/kzk/unicorn-worker-killer
569# unicorn['worker_memory_limit_min'] = "400 * 1 << 20"
570# unicorn['worker_memory_limit_max'] = "650 * 1 << 20"
571
572################################################################################
573## GitLab Sidekiq
574################################################################################
575
576# sidekiq['log_directory'] = "/var/log/gitlab/sidekiq"
577# sidekiq['shutdown_timeout'] = 4
578# sidekiq['concurrency'] = 25
579
580################################################################################
581## gitlab-shell
582################################################################################
583
584# gitlab_shell['audit_usernames'] = false
585# gitlab_shell['log_level'] = 'INFO'
586# gitlab_shell['http_settings'] = { user: 'username', password: 'password', ca_file: '/etc/ssl/cert.pem', ca_path: '/etc/pki/tls/certs', self_signed_cert: false}
587# gitlab_shell['log_directory'] = "/var/log/gitlab/gitlab-shell/"
588# gitlab_shell['custom_hooks_dir'] = "/opt/gitlab/embedded/service/gitlab-shell/hooks"
589
590# gitlab_shell['auth_file'] = "/var/opt/gitlab/.ssh/authorized_keys"
591
592### Git trace log file.
593###! If set, git commands receive GIT_TRACE* environment variables
594###! Docs: https://git-scm.com/book/es/v2/Git-Internals-Environment-Variables#Debugging
595###! An absolute path starting with / – the trace output will be appended to
596###! that file. It needs to exist so we can check permissions and avoid
597###! throwing warnings to the users.
598# gitlab_shell['git_trace_log_file'] = "/var/log/gitlab/gitlab-shell/gitlab-shell-git-trace.log"
599
600##! **We do not recommend changing this directory.**
601# gitlab_shell['dir'] = "/var/opt/gitlab/gitlab-shell"
602
603################################################################
604## GitLab PostgreSQL
605################################################################
606
607###! Changing any of these settings requires a restart of postgresql.
608###! By default, reconfigure reloads postgresql if it is running. If you
609###! change any of these settings, be sure to run `gitlab-ctl restart postgresql`
610###! after reconfigure in order for the changes to take effect.
611# postgresql['enable'] = true
612# postgresql['listen_address'] = nil
613# postgresql['port'] = 5432
614# postgresql['data_dir'] = "/var/opt/gitlab/postgresql/data"
615
616##! **recommend value is 1/4 of total RAM, up to 14GB.**
617# postgresql['shared_buffers'] = "256MB"
618
619### Advanced settings
620# postgresql['ha'] = false
621# postgresql['dir'] = "/var/opt/gitlab/postgresql"
622# postgresql['log_directory'] = "/var/log/gitlab/postgresql"
623# postgresql['username'] = "gitlab-psql"
624# postgresql['uid'] = nil
625# postgresql['gid'] = nil
626# postgresql['shell'] = "/bin/sh"
627# postgresql['home'] = "/var/opt/gitlab/postgresql"
628# postgresql['user_path'] = "/opt/gitlab/embedded/bin:/opt/gitlab/bin:$PATH"
629# postgresql['sql_user'] = "gitlab"
630# postgresql['max_connections'] = 200
631# postgresql['md5_auth_cidr_addresses'] = []
632# postgresql['trust_auth_cidr_addresses'] = []
633# postgresql['wal_buffers'] = "-1"
634# postgresql['autovacuum_max_workers'] = "3"
635# postgresql['autovacuum_freeze_max_age'] = "200000000"
636# postgresql['track_activity_query_size'] = "1024"
637# postgresql['shared_preload_libraries'] = nil
638# postgresql['dynamic_shared_memory_type'] = nil
639# postgresql['hot_standby'] = "off"
640
641### Replication settings
642###! Note, some replication settings do not require a full restart. They are documented below.
643# postgresql['wal_level'] = "hot_standby"
644# postgresql['max_wal_senders'] = 5
645# postgresql['max_replication_slots'] = 0
646# postgresql['max_locks_per_transaction'] = 128
647
648# Backup/Archive settings
649# default['gitlab']['postgresql']['archive_mode'] = "off"
650
651###! Changing any of these settings only requires a reload of postgresql. You do not need to
652###! restart postgresql if you change any of these and run reconfigure.
653# postgresql['work_mem'] = "16MB"
654# postgresql['maintenance_work_mem'] = "16MB"
655# postgresql['checkpoint_segments'] = 10
656# postgresql['checkpoint_timeout'] = "5min"
657# postgresql['checkpoint_completion_target'] = 0.9
658# postgresql['checkpoint_warning'] = "30s"
659# postgresql['effective_cache_size'] = "1MB"
660# postgresql['shmmax'] = 17179869184 # or 4294967295
661# postgresql['shmall'] = 4194304 # or 1048575
662# postgresql['autovacuum'] = "on"
663# postgresql['log_autovacuum_min_duration'] = "-1"
664# postgresql['autovacuum_naptime'] = "1min"
665# postgresql['autovacuum_vacuum_threshold'] = "50"
666# postgresql['autovacuum_analyze_threshold'] = "50"
667# postgresql['autovacuum_vacuum_scale_factor'] = "0.02"
668# postgresql['autovacuum_analyze_scale_factor'] = "0.01"
669# postgresql['autovacuum_vacuum_cost_delay'] = "20ms"
670# postgresql['autovacuum_vacuum_cost_limit'] = "-1"
671# postgresql['statement_timeout'] = "60000"
672# postgresql['log_line_prefix'] = "%a"
673
674### Available in PostgreSQL 9.6 and later
675# postgresql['min_wal_size'] = 80MB
676# postgresql['max_wal_size'] = 1GB
677
678# Backup/Archive settings
679# default['gitlab']['postgresql']['archive_command'] = nil
680# default['gitlab']['postgresql']['archive_timeout'] = "60"
681
682### Replication settings
683# postgresql['sql_replication_user'] = "gitlab_replicator"
684# postgresql['wal_keep_segments'] = 10
685# postgresql['max_standby_archive_delay'] = "30s"
686# postgresql['max_standby_streaming_delay'] = "30s"
687# postgresql['synchronous_commit'] = on
688# postgresql['synchronous_standby_names'] = ''
689# postgresql['hot_standby_feedback'] = 'off'
690# postgresql['random_page_cost'] = 2.0
691# postgresql['log_temp_files'] = -1
692# postgresql['log_checkpoints'] = 'off'
693# To add custom entries to pg_hba.conf use the following
694# postgresql['custom_pg_hba_entries'][APPLICATION] = { # APPLICATION should identify what the settings are used for
695# type: example,
696# database: example,
697# user: example,
698# cidr: example,
699# method: example,
700# option: exmple
701# }
702# See https://www.postgresql.org/docs/9.6/static/auth-pg-hba-conf.html for an explanation
703# of the values
704
705
706################################################################################
707## GitLab Redis
708##! **Can be disabled if you are using your own Redis instance.**
709##! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
710################################################################################
711
712# redis['enable'] = true
713# redis['username'] = "gitlab-redis"
714# redis['maxclients'] = "10000"
715# redis['tcp_timeout'] = "60"
716# redis['tcp_keepalive'] = "300"
717# redis['uid'] = nil
718# redis['gid'] = nil
719
720###! **To enable only Redis service in this machine, uncomment
721###! one of the lines below (choose master or slave instance types).**
722###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
723###! https://docs.gitlab.com/ce/administration/high_availability/redis.html
724# redis_master_role['enable'] = true
725# redis_slave_role['enable'] = true
726
727### Redis TCP support (will disable UNIX socket transport)
728# redis['bind'] = '0.0.0.0' # or specify an IP to bind to a single one
729# redis['port'] = 6379
730# redis['password'] = 'redis-password-goes-here'
731
732### Redis Sentinel support
733###! **You need a master slave Redis replication to be able to do failover**
734###! **Please read the documentation before enabling it to understand the
735###! caveats:**
736###! Docs: https://docs.gitlab.com/ce/administration/high_availability/redis.html
737
738### Replication support
739#### Slave Redis instance
740# redis['master'] = false # by default this is true
741
742#### Slave and Sentinel shared configuration
743####! **Both need to point to the master Redis instance to get replication and
744####! heartbeat monitoring**
745# redis['master_name'] = 'gitlab-redis'
746# redis['master_ip'] = nil
747# redis['master_port'] = 6379
748
749####! **Master password should have the same value defined in
750####! redis['password'] to enable the instance to transition to/from
751####! master/slave in a failover event.**
752# redis['master_password'] = 'redis-password-goes-here'
753
754####! Increase these values when your slaves can't catch up with master
755# redis['client_output_buffer_limit_normal'] = '0 0 0'
756# redis['client_output_buffer_limit_slave'] = '256mb 64mb 60'
757# redis['client_output_buffer_limit_pubsub'] = '32mb 8mb 60'
758
759################################################################################
760## GitLab Web server
761##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#using-a-non-bundled-web-server
762################################################################################
763
764##! When bundled nginx is disabled we need to add the external webserver user to
765##! the GitLab webserver group.
766web_server['external_users'] = ['www-data']
767# web_server['username'] = 'gitlab-www'
768# web_server['group'] = 'gitlab-www'
769# web_server['uid'] = nil
770# web_server['gid'] = nil
771# web_server['shell'] = '/bin/false'
772# web_server['home'] = '/var/opt/gitlab/nginx'
773
774################################################################################
775## GitLab NGINX
776##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html
777################################################################################
778
779nginx['enable'] = false
780# nginx['client_max_body_size'] = '250m'
781#nginx['redirect_http_to_https'] = true
782# nginx['redirect_http_to_https_port'] = 80
783
784##! Most root CA's are included by default
785# nginx['ssl_client_certificate'] = "/etc/gitlab/ssl/ca.crt"
786
787##! enable/disable 2-way SSL client authentication
788# nginx['ssl_verify_client'] = "off"
789
790##! if ssl_verify_client on, verification depth in the client certificates chain
791# nginx['ssl_verify_depth'] = "1"
792
793#nginx['ssl_certificate'] = "/etc/letsencrypt/live/gitlab.example.com/fullchain.pem"
794#nginx['ssl_certificate_key'] = "/etc/letsencrypt/live/gitlab.example.com/privkey.pem"
795# nginx['ssl_ciphers'] = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256"
796# nginx['ssl_prefer_server_ciphers'] = "on"
797#letsencrypt['enable'] = true
798#letsencrypt['contact_emails'] = ['bobesz@example.com']
799##! **Recommended by: https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
800##! https://cipherli.st/**
801# nginx['ssl_protocols'] = "TLSv1 TLSv1.1 TLSv1.2"
802
803##! **Recommended in: https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
804# nginx['ssl_session_cache'] = "builtin:1000 shared:SSL:10m"
805
806##! **Default according to https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
807# nginx['ssl_session_timeout'] = "5m"
808
809# nginx['ssl_dhparam'] = nil # Path to dhparams.pem, eg. /etc/gitlab/ssl/dhparams.pem
810#nginx['listen_addresses'] = ['*', '[::]']
811
812##! **Defaults to forcing web browsers to always communicate using only HTTPS**
813##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-http-strict-transport-security
814#nginx['hsts_max_age'] = 31536000
815#nginx['hsts_include_subdomains'] = false
816
817##! **Override only if you use a reverse proxy**
818##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-the-nginx-listen-port
819# nginx['listen_port'] = nil
820
821##! **Override only if your reverse proxy internally communicates over HTTP**
822##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#supporting-proxied-ssl
823#nginx['listen_https'] = false
824#nginx['listen_port'] = 8060
825#nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
826#nginx['custom_gitlab_server_config'] = "location ^~ /.well-known { root /var/www/letsencrypt; }"
827# nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;"
828# nginx['proxy_read_timeout'] = 3600
829# nginx['proxy_connect_timeout'] = 300
830# nginx['proxy_set_headers'] = {
831# "Host" => "$http_host_with_default",
832# "X-Real-IP" => "$remote_addr",
833# "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
834# "X-Forwarded-Proto" => "https",
835# "X-Forwarded-Ssl" => "on",
836# "Upgrade" => "$http_upgrade",
837# "Connection" => "$connection_upgrade"
838# }
839# nginx['proxy_cache_path'] = 'proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2'
840# nginx['proxy_cache'] = 'gitlab'
841# nginx['http2_enabled'] = true
842# nginx['real_ip_trusted_addresses'] = []
843# nginx['real_ip_header'] = nil
844# nginx['real_ip_recursive'] = nil
845# nginx['custom_error_pages'] = {
846# '404' => {
847# 'title' => 'Example title',
848# 'header' => 'Example header',
849# 'message' => 'Example message'
850# }
851# }
852
853### Advanced settings
854# nginx['dir'] = "/var/opt/gitlab/nginx"
855# nginx['log_directory'] = "/var/log/gitlab/nginx"
856# nginx['worker_processes'] = 4
857# nginx['worker_connections'] = 10240
858# nginx['log_format'] = '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'
859# nginx['sendfile'] = 'on'
860# nginx['tcp_nopush'] = 'on'
861# nginx['tcp_nodelay'] = 'on'
862# nginx['gzip'] = "on"
863# nginx['gzip_http_version'] = "1.0"
864# nginx['gzip_comp_level'] = "2"
865# nginx['gzip_proxied'] = "any"
866# nginx['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ]
867# nginx['keepalive_timeout'] = 65
868# nginx['cache_max_size'] = '5000m'
869# nginx['server_names_hash_bucket_size'] = 64
870
871### Nginx status
872# nginx['status'] = {
873# "enable" => true,
874# "listen_addresses" => ["127.0.0.1"],
875# "fqdn" => "dev.example.com",
876# "port" => 9999,
877# "options" => {
878# "stub_status" => "on", # Turn on stats
879# "server_tokens" => "off", # Don't show the version of NGINX
880# "access_log" => "off", # Disable logs for stats
881# "allow" => "127.0.0.1", # Only allow access from localhost
882# "deny" => "all" # Deny access to anyone else
883# }
884# }
885
886################################################################################
887## GitLab Logging
888##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html
889################################################################################
890
891logging['svlogd_size'] = 200 * 1024 * 1024 # rotate after 200 MB of log data
892logging['svlogd_num'] = 30 # keep 30 rotated log files
893logging['svlogd_timeout'] = 24 * 60 * 60 # rotate after 24 hours
894logging['svlogd_filter'] = "gzip" # compress logs with gzip
895# logging['svlogd_udp'] = nil # transmit log messages via UDP
896# logging['svlogd_prefix'] = nil # custom prefix for log messages
897logging['logrotate_frequency'] = "daily" # rotate logs daily
898# logging['logrotate_size'] = nil # do not rotate by size by default
899# logging['logrotate_rotate'] = 30 # keep 30 rotated logs
900logging['logrotate_compress'] = "compress" # see 'man logrotate'
901logging['logrotate_method'] = "copytruncate" # see 'man logrotate'
902# logging['logrotate_postrotate'] = nil # no postrotate command by default
903logging['logrotate_dateformat'] = "-%Y-%m-%d" # 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
904
905################################################################################
906## Logrotate
907##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html#logrotate
908##! You can disable built in logrotate feature.
909################################################################################
910logrotate['enable'] = true
911
912################################################################################
913## Users and groups accounts
914##! Disable management of users and groups accounts.
915##! **Set only if creating accounts manually**
916##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-user-and-group-account-management
917################################################################################
918
919# manage_accounts['enable'] = false
920
921################################################################################
922## Storage directories
923##! Disable managing storage directories
924##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-storage-directories-management
925################################################################################
926
927##! **Set only if the select directories are created manually**
928# manage_storage_directories['enable'] = false
929# manage_storage_directories['manage_etc'] = false
930
931################################################################################
932## Runtime directory
933##! Docs: https://docs.gitlab.com//omnibus/settings/configuration.html#configuring-runtime-directory
934################################################################################
935
936# runtime_dir '/run'
937
938################################################################################
939## Git
940##! Advanced setting for configuring git system settings for omnibus-gitlab
941##! internal git
942################################################################################
943
944##! For multiple options under one header use array of comma separated values,
945##! eg.:
946##! { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] }
947
948# omnibus_gitconfig['system'] = {
949# "pack" => ["threads = 1"],
950# "receive" => ["fsckObjects = true"],
951# "repack" => ["writeBitmaps = true"],
952# "transfer" => ["hideRefs=^refs/tmp/", "hideRefs=^refs/keep-around/"],
953# }
954
955################################################################################
956## GitLab Pages
957##! Docs: https://docs.gitlab.com/ce/pages/administration.html
958################################################################################
959
960##! Define to enable GitLab Pages
961# pages_external_url "http://pages.example.com/"
962# gitlab_pages['enable'] = false
963
964##! Configure to expose GitLab Pages on external IP address, serving the HTTP
965# gitlab_pages['external_http'] = []
966
967##! Configure to expose GitLab Pages on external IP address, serving the HTTPS
968# gitlab_pages['external_https'] = []
969
970# gitlab_pages['listen_proxy'] = "localhost:8090"
971# gitlab_pages['redirect_http'] = true
972# gitlab_pages['use_http2'] = true
973# gitlab_pages['dir'] = "/var/opt/gitlab/gitlab-pages"
974# gitlab_pages['log_directory'] = "/var/log/gitlab/gitlab-pages"
975
976##! Prometheus metrics for Pages docs: https://gitlab.com/gitlab-org/gitlab-pages/#enable-prometheus-metrics
977# gitlab_pages['metrics_address'] = ":9235"
978
979################################################################################
980## GitLab Pages NGINX
981################################################################################
982
983# All the settings defined in the "GitLab Nginx" section are also available in this "GitLab Pages NGINX" section
984# You just have to change the key "nginx['some_settings']" with "pages_nginx['some_settings']"
985
986# Below you can find settings that are exclusive to "GitLab Pages NGINX"
987# pages_nginx['enable'] = false
988
989# gitlab_rails['pages_path'] = "/mnt/storage/pages"
990
991################################################################################
992## GitLab CI
993##! Docs: https://docs.gitlab.com/ce/ci/quick_start/README.html
994################################################################################
995
996# gitlab_ci['gitlab_ci_all_broken_builds'] = true
997# gitlab_ci['gitlab_ci_add_pusher'] = true
998# gitlab_ci['builds_directory'] = '/var/opt/gitlab/gitlab-ci/builds'
999
1000################################################################################
1001## GitLab Mattermost
1002##! Docs: https://docs.gitlab.com/omnibus/gitlab-mattermost
1003################################################################################
1004
1005# mattermost_external_url 'http://mattermost.example.com'
1006
1007# mattermost['enable'] = false
1008# mattermost['username'] = 'mattermost'
1009# mattermost['group'] = 'mattermost'
1010# mattermost['uid'] = nil
1011# mattermost['gid'] = nil
1012# mattermost['home'] = '/var/opt/gitlab/mattermost'
1013# mattermost['database_name'] = 'mattermost_production'
1014
1015# mattermost['service_use_ssl'] = false
1016# mattermost['service_address'] = "127.0.0.1"
1017# mattermost['service_port'] = "8065"
1018# mattermost['service_site_url'] = nil
1019# mattermost['service_maximum_login_attempts'] = 10
1020# mattermost['service_google_developer_key'] = nil
1021# mattermost['service_enable_incoming_webhooks'] = true
1022# mattermost['service_enable_post_username_override'] = true
1023# mattermost['service_enable_post_icon_override'] = true
1024# mattermost['service_enable_testing'] = false
1025# mattermost['service_enable_security_fix_alert'] = true
1026# mattermost['service_enable_insecure_outgoing_connections'] = false
1027# mattermost['service_allow_cors_from'] = ""
1028# mattermost['service_enable_outgoing_webhooks'] = true
1029# mattermost['service_enable_commands'] = true
1030# mattermost['service_enable_custom_emoji'] = false
1031# mattermost['service_enable_only_admin_integrations'] = true
1032# mattermost['service_enable_oauth_service_provider'] = false
1033# mattermost['service_enable_developer'] = false
1034# mattermost['service_session_length_web_in_days'] = 30
1035# mattermost['service_session_length_mobile_in_days'] = 30
1036# mattermost['service_session_length_sso_in_days'] = 30
1037# mattermost['service_session_cache_in_minutes'] = 10
1038# mattermost['service_connection_security'] = nil
1039# mattermost['service_tls_cert_file'] = nil
1040# mattermost['service_tls_key_file'] = nil
1041# mattermost['service_use_lets_encrypt'] = false
1042# mattermost['service_lets_encrypt_cert_cache_file'] = "./config/letsencrypt.cache"
1043# mattermost['service_forward_80_to_443'] = false
1044# mattermost['service_read_timeout'] = 300
1045# mattermost['service_write_timeout'] = 300
1046# mattermost['service_time_between_user_typing_updates_milliseconds'] = 5000
1047# mattermost['service_enable_link_previews'] = false
1048# mattermost['service_enable_user_typing_messages'] = true
1049# mattermost['service_enable_post_search'] = true
1050# mattermost['service_enable_user_statuses'] = true
1051# mattermost['service_enable_emoji_picker'] = true
1052# mattermost['service_enable_channel_viewed_messages'] = true
1053# mattermost['service_enable_apiv3'] = true
1054# mattermost['service_goroutine_health_threshold'] = -1
1055
1056# mattermost['team_site_name'] = "GitLab Mattermost"
1057# mattermost['team_max_users_per_team'] = 150
1058# mattermost['team_enable_team_creation'] = true
1059# mattermost['team_enable_user_creation'] = true
1060# mattermost['team_enable_open_server'] = false
1061# mattermost['team_allow_public_link'] = true
1062# mattermost['team_allow_valet_default'] = false
1063# mattermost['team_restrict_creation_to_domains'] = "gmail.com"
1064# mattermost['team_restrict_team_names'] = true
1065# mattermost['team_restrict_direct_message'] = "any"
1066# mattermost['team_max_channels_per_team'] = 2000
1067# mattermost['team_user_status_away_timeout'] = 300
1068# mattermost['team_teammate_name_display'] = "full_name"
1069
1070# mattermost['sql_driver_name'] = 'mysql'
1071# mattermost['sql_data_source'] = "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8"
1072# mattermost['sql_data_source_replicas'] = ["mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8"]
1073# mattermost['sql_max_idle_conns'] = 10
1074# mattermost['sql_max_open_conns'] = 10
1075# mattermost['sql_trace'] = false
1076# mattermost['sql_data_source_search_replicas'] = []
1077# mattermost['sql_query_timeout'] = 30
1078
1079
1080# mattermost['log_file_directory'] = '/var/log/gitlab/mattermost'
1081# mattermost['log_console_enable'] = true
1082# mattermost['log_console_level'] = 'INFO'
1083# mattermost['log_enable_file'] = false
1084# mattermost['log_file_level'] = 'INFO'
1085# mattermost['log_file_format'] = nil
1086# mattermost['log_enable_diagnostics'] = true
1087
1088# mattermost['gitlab_enable'] = false
1089# mattermost['gitlab_id'] = "12345656"
1090# mattermost['gitlab_secret'] = "123456789"
1091# mattermost['gitlab_scope'] = ""
1092# mattermost['gitlab_auth_endpoint'] = "http://gitlab.example.com/oauth/authorize"
1093# mattermost['gitlab_token_endpoint'] = "http://gitlab.example.com/oauth/token"
1094# mattermost['gitlab_user_api_endpoint'] = "http://gitlab.example.com/api/v3/user"
1095
1096# mattermost['aws'] = {'S3AccessKeyId' => '123', 'S3SecretAccessKey' => '123', 'S3Bucket' => 'aa', 'S3Region' => 'bb'}
1097
1098# mattermost['email_enable_sign_up_with_email'] = true
1099# mattermost['email_enable_sign_in_with_email'] = true
1100# mattermost['email_enable_sign_in_with_username'] = false
1101# mattermost['email_send_email_notifications'] = false
1102# mattermost['email_require_email_verification'] = false
1103# mattermost['email_smtp_username'] = nil
1104# mattermost['email_smtp_password'] = nil
1105# mattermost['email_smtp_server'] = nil
1106# mattermost['email_smtp_port'] = nil
1107# mattermost['email_connection_security'] = nil
1108# mattermost['email_feedback_name'] = nil
1109# mattermost['email_feedback_email'] = nil
1110# mattermost['email_feedback_organization'] = nil
1111# mattermost['email_send_push_notifications'] = true
1112# mattermost['email_push_notification_server'] = ""
1113# mattermost['email_push_notification_contents'] = "generic"
1114# mattermost['email_enable_batching'] = false
1115# mattermost['email_batching_buffer_size'] = 256
1116# mattermost['email_batching_interval'] = 30
1117# mattermost['email_skip_server_certificate_verification'] = false
1118
1119# mattermost['file_max_file_size'] = 52428800
1120# mattermost['file_driver_name'] = "local"
1121# mattermost['file_directory'] = "/var/opt/gitlab/mattermost/data"
1122# mattermost['file_enable_public_link'] = true
1123# mattermost['file_initial_font'] = 'luximbi.ttf'
1124# mattermost['file_amazon_s3_access_key_id'] = nil
1125# mattermost['file_amazon_s3_bucket'] = nil
1126# mattermost['file_amazon_s3_secret_access_key'] = nil
1127# mattermost['file_amazon_s3_region'] = nil
1128# mattermost["file_amazon_s3_endpoint"] = nil
1129# mattermost["file_amazon_s3_bucket_endpoint"] = nil
1130# mattermost["file_amazon_s3_location_constraint"] = false
1131# mattermost["file_amazon_s3_lowercase_bucket"] = false
1132# mattermost["file_amazon_s3_ssl"] = true
1133# mattermost["file_amazon_s3_sign_v2"] = false
1134# mattermost['file_enable_file_attachments'] = true
1135
1136# mattermost['ratelimit_enable_rate_limiter'] = false
1137# mattermost['ratelimit_per_sec'] = 10
1138# mattermost['ratelimit_memory_store_size'] = 10000
1139# mattermost['ratelimit_vary_by_remote_addr'] = true
1140# mattermost['ratelimit_vary_by_header'] = nil
1141# mattermost['ratelimit_max_burst'] = 100
1142
1143# mattermost['support_terms_of_service_link'] = "/static/help/terms.html"
1144# mattermost['support_privacy_policy_link'] = "/static/help/privacy.html"
1145# mattermost['support_about_link'] = "/static/help/about.html"
1146# mattermost['support_report_a_problem_link'] = "/static/help/report_problem.html"
1147# mattermost['support_email'] = "support@example.com"
1148
1149# mattermost['privacy_show_email_address'] = true
1150# mattermost['privacy_show_full_name'] = true
1151
1152# mattermost['localization_server_locale'] = "en"
1153# mattermost['localization_client_locale'] = "en"
1154# mattermost['localization_available_locales'] = "en,es,fr,ja,pt-BR"
1155
1156# mattermost['webrtc_enable'] = false
1157# mattermost['webrtc_gateway_websocket_url'] = nil
1158# mattermost['webrtc_gateway_admin_url'] = nil
1159# mattermost['webrtc_gateway_admin_secret'] = nil
1160# mattermost['webrtc_gateway_stun_uri'] = nil
1161# mattermost['webrtc_gateway_turn_uri'] = nil
1162# mattermost['webrtc_gateway_turn_username'] = nil
1163# mattermost['webrtc_gateway_turn_shared_key'] = nil
1164
1165################################################################################
1166## Mattermost NGINX
1167################################################################################
1168
1169# All the settings defined in the "GitLab NGINX" section are also available in this "Mattermost NGINX" section
1170# You just have to change the key "nginx['some_settings']" with "mattermost_nginx['some_settings']"
1171
1172# Below you can find settings that are exclusive to "Mattermost NGINX"
1173# mattermost_nginx['enable'] = false
1174
1175# mattermost_nginx['custom_gitlab_mattermost_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
1176# mattermost_nginx['proxy_set_headers'] = {
1177# "Host" => "$http_host",
1178# "X-Real-IP" => "$remote_addr",
1179# "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
1180# "X-Frame-Options" => "SAMEORIGIN",
1181# "X-Forwarded-Proto" => "https",
1182# "X-Forwarded-Ssl" => "on",
1183# "Upgrade" => "$http_upgrade",
1184# "Connection" => "$connection_upgrade"
1185# }
1186
1187
1188################################################################################
1189## Registry NGINX
1190################################################################################
1191
1192# All the settings defined in the "GitLab NGINX" section are also available in this "Registry NGINX" section
1193# You just have to change the key "nginx['some_settings']" with "registry_nginx['some_settings']"
1194
1195# Below you can find settings that are exclusive to "Registry NGINX"
1196# registry_nginx['enable'] = false
1197
1198# registry_nginx['proxy_set_headers'] = {
1199# "Host" => "$http_host",
1200# "X-Real-IP" => "$remote_addr",
1201# "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
1202# "X-Forwarded-Proto" => "https",
1203# "X-Forwarded-Ssl" => "on"
1204# }
1205
1206################################################################################
1207## Prometheus
1208##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/
1209################################################################################
1210
1211# prometheus['enable'] = true
1212# prometheus['monitor_kubernetes'] = true
1213# prometheus['username'] = 'gitlab-prometheus'
1214# prometheus['uid'] = nil
1215# prometheus['gid'] = nil
1216# prometheus['shell'] = '/bin/sh'
1217# prometheus['home'] = '/var/opt/gitlab/prometheus'
1218# prometheus['log_directory'] = '/var/log/gitlab/prometheus'
1219# prometheus['scrape_interval'] = 15
1220# prometheus['scrape_timeout'] = 15
1221# prometheus['chunk_encoding_version'] = 2
1222#
1223### Custom scrape configs
1224#
1225# Prometheus can scrape additional jobs via scrape_configs. The default automatically
1226# includes all of the exporters supported by the omnibus config.
1227#
1228# See: https://prometheus.io/docs/operating/configuration/#<scrape_config>
1229#
1230# Example:
1231#
1232# prometheus['scrape_configs'] = [
1233# {
1234# 'job_name': 'example',
1235# 'static_configs' => [
1236# 'targets' => ['hostname:port'],
1237# ],
1238# },
1239# ]
1240#
1241### Prometheus Memory Management
1242#
1243# Prometheus needs to be configured for how much memory is used.
1244# * This sets the target heap size.
1245# * This value accounts for approximately 2/3 of the memory used by the server.
1246# * The recommended memory is 4kb per unique metrics time-series.
1247# See: https://prometheus.io/docs/operating/storage/#memory-usage
1248#
1249# prometheus['target_heap_size'] = (
1250# # Use 25mb + 2% of total memory for Prometheus memory.
1251# 26_214_400 + (node['memory']['total'].to_i * 1024 * 0.02 )
1252# ).to_i
1253#
1254# prometheus['flags'] = {
1255# 'storage.local.path' => "#{node['gitlab']['prometheus']['home']}/data",
1256# 'storage.local.chunk-encoding-version' => user_config['chunk-encoding-version'],
1257# 'storage.local.target-heap-size' => node['gitlab']['prometheus']['target-heap-size'],
1258# 'config.file' => "#{node['gitlab']['prometheus']['home']}/prometheus.yml"
1259# }
1260
1261##! Advanced settings. Should be changed only if absolutely needed.
1262# prometheus['listen_address'] = 'localhost:9090'
1263
1264################################################################################
1265## Prometheus Node Exporter
1266##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/node_exporter.html
1267################################################################################
1268
1269# node_exporter['enable'] = true
1270# node_exporter['home'] = '/var/opt/gitlab/node-exporter'
1271# node_exporter['log_directory'] = '/var/log/gitlab/node-exporter'
1272# node_exporter['flags'] = {
1273# 'collector.textfile.directory' => "#{node['gitlab']['node-exporter']['home']}/textfile_collector"
1274# }
1275
1276##! Advanced settings. Should be changed only if absolutely needed.
1277# node_exporter['listen_address'] = 'localhost:9100'
1278
1279################################################################################
1280## Prometheus Redis exporter
1281##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/redis_exporter.html
1282################################################################################
1283
1284# redis_exporter['enable'] = true
1285# redis_exporter['log_directory'] = '/var/log/gitlab/redis-exporter'
1286# redis_exporter['flags'] = {
1287# 'redis.addr' => "unix://#{node['gitlab']['gitlab-rails']['redis_socket']}",
1288# }
1289
1290##! Advanced settings. Should be changed only if absolutely needed.
1291# redis_exporter['listen_address'] = 'localhost:9121'
1292
1293################################################################################
1294## Prometheus Postgres exporter
1295##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/postgres_exporter.html
1296################################################################################
1297
1298# postgres_exporter['enable'] = true
1299# postgres_exporter['home'] = '/var/opt/gitlab/postgres-exporter'
1300# postgres_exporter['log_directory'] = '/var/log/gitlab/postgres-exporter'
1301# postgres_exporter['flags'] = {}
1302# postgres_exporter['listen_address'] = 'localhost:9187'
1303
1304################################################################################
1305## Prometheus Gitlab monitor
1306##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/gitlab_monitor_exporter.html
1307################################################################################
1308
1309
1310# gitlab_monitor['enable'] = true
1311# gitlab_monitor['log_directory'] = "/var/log/gitlab/gitlab-monitor"
1312# gitlab_monitor['home'] = "/var/opt/gitlab/gitlab-monitor"
1313
1314##! Advanced settings. Should be changed only if absolutely needed.
1315# gitlab_monitor['listen_address'] = 'localhost'
1316# gitlab_monitor['listen_port'] = '9168'
1317
1318# To completely disable prometheus, and all of it's exporters, set to false
1319# prometheus_monitoring['enable'] = true
1320
1321################################################################################
1322## Gitaly
1323##! Docs:
1324################################################################################
1325
1326
1327# gitaly['enable'] = false
1328# gitaly['dir'] = "/var/opt/gitlab/gitaly"
1329# gitaly['log_directory'] = "/var/log/gitlab/gitaly"
1330# gitaly['bin_path'] = "/opt/gitlab/embedded/bin/gitaly"
1331# gitaly['env_directory'] = "/opt/gitlab/etc/gitaly"
1332# gitaly['env'] = {
1333# 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
1334# 'HOME' => '/var/opt/gitlab'
1335# }
1336# gitaly['socket_path'] = "/var/opt/gitlab/gitaly/gitaly.socket"
1337# gitaly['listen_addr'] = "localhost:8075"
1338# gitaly['prometheus_listen_addr'] = "localhost:9175"
1339# gitaly['logging_format'] = "json"
1340# gitaly['logging_sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
1341# gitaly['prometheus_grpc_latency_buckets'] = "[0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0]"
1342# gitaly['auth_token'] = '<secret>'
1343# gitaly['auth_transitioning'] = false # When true, auth is logged to Prometheus but NOT enforced
1344
1345
1346################################################################################
1347################################################################################
1348## Configuration Settings for GitLab EE only ##
1349################################################################################
1350################################################################################
1351
1352
1353################################################################################
1354## Auxiliary cron jobs applicable to GitLab EE only
1355################################################################################
1356#
1357# gitlab_rails['geo_bulk_notify_worker_cron'] = "*/10 * * * * *"
1358# gitlab_rails['geo_file_download_dispatch_worker_cron'] = "*/10 * * * *"
1359# gitlab_rails['geo_repository_sync_worker_cron'] = "*/5 * * * *"
1360gitlab_rails['ldap_sync_worker_cron'] = "30 1 * * *"
1361# gitlab_rails['ldap_group_sync_worker_cron'] = "0 * * * *"
1362# gitlab_rails['historical_data_worker_cron'] = "0 12 * * *"
1363
1364################################################################################
1365## Kerberos (EE Only)
1366##! Docs: https://docs.gitlab.com/ee/integration/kerberos.html#http-git-access
1367################################################################################
1368
1369# gitlab_rails['kerberos_enabled'] = true
1370# gitlab_rails['kerberos_keytab'] = /etc/http.keytab
1371# gitlab_rails['kerberos_service_principal_name'] = HTTP/gitlab.example.com@EXAMPLE.COM
1372# gitlab_rails['kerberos_use_dedicated_port'] = true
1373# gitlab_rails['kerberos_port'] = 8443
1374# gitlab_rails['kerberos_https'] = true
1375
1376################################################################################
1377## GitLab Sentinel (EE Only)
1378##! Docs: http://docs.gitlab.com/ce/administration/high_availability/redis.html#high-availability-with-sentinel
1379################################################################################
1380
1381##! **Make sure you configured all redis['master_*'] keys above before
1382##! continuing.**
1383
1384##! To enable Sentinel and disable all other services in this machine,
1385##! uncomment the line below (if you've enabled Redis role, it will keep it).
1386##! Docs: https://docs.gitlab.com/ce/administration/high_availability/redis.html
1387# redis_sentinel_role['enable'] = true
1388
1389# sentinel['enable'] = true
1390
1391##! Bind to all interfaces, uncomment to specify an IP and bind to a single one
1392# sentinel['bind'] = '0.0.0.0'
1393
1394##! Uncomment to change default port
1395# sentinel['port'] = 26379
1396
1397##! Quorum must reflect the amount of voting sentinels it take to start a
1398##! failover.
1399##! **Value must NOT be greater then the amount of sentinels.**
1400##! The quorum can be used to tune Sentinel in two ways:
1401##! 1. If a the quorum is set to a value smaller than the majority of Sentinels
1402##! we deploy, we are basically making Sentinel more sensible to master
1403##! failures, triggering a failover as soon as even just a minority of
1404##! Sentinels is no longer able to talk with the master.
1405##! 2. If a quorum is set to a value greater than the majority of Sentinels, we
1406##! are making Sentinel able to failover only when there are a very large
1407##! number (larger than majority) of well connected Sentinels which agree
1408##! about the master being down.
1409# sentinel['quorum'] = 1
1410
1411### Consider unresponsive server down after x amount of ms.
1412# sentinel['down_after_milliseconds'] = 10000
1413
1414### Specifies the failover timeout in milliseconds.
1415##! It is used in many ways:
1416##!
1417##! - The time needed to re-start a failover after a previous failover was
1418##! already tried against the same master by a given Sentinel, is two
1419##! times the failover timeout.
1420##!
1421##! - The time needed for a slave replicating to a wrong master according
1422##! to a Sentinel current configuration, to be forced to replicate
1423##! with the right master, is exactly the failover timeout (counting since
1424##! the moment a Sentinel detected the misconfiguration).
1425##!
1426##! - The time needed to cancel a failover that is already in progress but
1427##! did not produced any configuration change (SLAVEOF NO ONE yet not
1428##! acknowledged by the promoted slave).
1429##!
1430##! - The maximum time a failover in progress waits for all the slaves to be
1431##! reconfigured as slaves of the new master. However even after this time
1432##! the slaves will be reconfigured by the Sentinels anyway, but not with
1433##! the exact parallel-syncs progression as specified.
1434# sentinel['failover_timeout'] = 60000
1435
1436################################################################################
1437## Logging (Additional, EE Only features)
1438##! Docs: http://docs.gitlab.com/omnibus/settings/logs.html#udp-log-shipping-gitlab-enterprise-edition-only-
1439################################################################################
1440
1441##! remote host to ship log messages to via UDP
1442# logging['udp_log_shipping_host'] = nil
1443
1444##! remote port to ship log messages to via UDP
1445# logging['udp_log_shipping_port'] = 514
1446
1447################################################################################
1448## GitLab Sidekiq Cluster (EE only)
1449################################################################################
1450
1451##! GitLab Enterprise Edition allows one to start an extra set of Sidekiq processes
1452##! besides the default one. These processes can be used to consume a dedicated set
1453##! of queues. This can be used to ensure certain queues always have dedicated
1454##! workers, no matter the amount of jobs that need to be processed.
1455
1456# sidekiq_cluster['enable'] = false
1457# sidekiq_cluster['ha'] = false
1458# sidekiq_cluster['log_directory'] = "/var/log/gitlab/sidekiq-cluster"
1459# sidekiq_cluster['interval'] = 5 # The number of seconds to wait between worker checks
1460
1461##! Each entry in the queue_groups array denotes a group of queues that have to be processed by a
1462##! Sidekiq process. Multiple queues can be processed by the same process by
1463##! separating them with a comma within the group entry
1464
1465# sidekiq_cluster['queue_groups'] = [
1466# "process_commit,post_receive",
1467# "gitlab_shell"
1468# ]
1469#
1470
1471################################################################################
1472## Additional Database Settings (EE only)
1473##! Docs: https://docs.gitlab.com/ee/administration/database_load_balancing.html
1474################################################################################
1475# gitlab_rails['db_load_balancing'] = { 'hosts' => ['secondary1.example.com'] }
1476
1477################################################################################
1478## GitLab Geo
1479##! Docs: https://docs.gitlab.com/ee/gitlab-geo
1480################################################################################
1481# geo_primary_role['enable'] = false
1482# geo_secondary_role['enable'] = false
1483
1484################################################################################
1485## GitLab Geo Secondary (EE only)
1486################################################################################
1487# geo_secondary['auto_migrate'] = true
1488# geo_secondary['db_adapter'] = "postgresql"
1489# geo_secondary['db_encoding'] = "unicode"
1490# geo_secondary['db_collation'] = nil
1491# geo_secondary['db_database'] = "gitlabhq_geo_production"
1492# geo_secondary['db_pool'] = 10
1493# geo_secondary['db_username'] = "gitlab_geo"
1494# geo_secondary['db_password'] = nil
1495# geo_secondary['db_host'] = "/var/opt/gitlab/geo-postgresql"
1496# geo_secondary['db_port'] = 5431
1497# geo_secondary['db_socket'] = nil
1498# geo_secondary['db_sslmode'] = nil
1499# geo_secondary['db_sslrootcert'] = nil
1500# geo_secondary['db_sslca'] = nil
1501
1502################################################################################
1503## GitLab Geo Secondary Tracking Database (EE only)
1504################################################################################
1505
1506# geo_postgresql['enable'] = false
1507# geo_postgresql['ha'] = false
1508# geo_postgresql['dir'] = '/var/opt/gitlab/geo-postgresql'
1509# geo_postgresql['data_dir'] = '/var/opt/gitlab/geo-postgresql/data'
1510
1511################################################################################
1512# Pgbouncer (EE only)
1513# See [GitLab PgBouncer documentation](http://docs.gitlab.com/omnibus/settings/database.html#enabling-pgbouncer-ee-only)
1514# See the [PgBouncer page](https://pgbouncer.github.io/config.html) for details
1515################################################################################
1516# pgbouncer['enable'] = false
1517# pgbouncer['log_directory'] = '/var/log/gitlab/pgbouncer'
1518# pgbouncer['data_directory'] = '/var/opt/gitlab/pgbouncer'
1519# pgbouncer['listen_addr'] = '0.0.0.0'
1520# pgbouncer['listen_port'] = '6432'
1521# pgbouncer['pool_mode'] = 'session'
1522# pgbouncer['server_reset_query'] = 'DISCARD ALL'
1523# pgbouncer['max_client_conn'] = '100'
1524# pgbouncer['default_pool_size'] = '20'
1525# pgbouncer['min_pool_size'] = '0'
1526# pgbouncer['reserve_pool_size'] = '0'
1527# pgbouncer['reserve_pool_timeout'] = '5.0'
1528# pgbouncer['server_round_robin'] = '0'
1529# pgbouncer['log_connections'] = '0'
1530# pgbouncer['server_idle_timeout'] = '600.0'
1531# pgbouncer['dns_max_ttl'] = '15.0'
1532# pgbouncer['dns_zone_check_period'] = '0'
1533# pgbouncer['dns_nxdomain_ttl'] = '15.0'
1534# pgbouncer['admin_users'] = %w(gitlab-psql postgres pgbouncer)
1535# pgbouncer['stats_users'] = %w(gitlab-psql postgres pgbouncer)
1536# pgbouncer['ignore_startup_parameters'] = 'extra_float_digits'
1537# pgbouncer['databases'] = {
1538# DATABASE_NAME: {
1539# host: HOSTNAME,
1540# port: PORT
1541# user: USERNAME,
1542# password: PASSWORD
1543###! generate this with `echo -n '$password + $username' | md5sum`
1544# }
1545# ...
1546# }
1547# pgbouncer['auth_type'] = 'md5'
1548# pgbouncer['auth_hba_file'] = nil
1549# pgbouncer['auth_query'] = 'SELECT username, password FROM public.pg_shadow_lookup($1)'
1550# postgresql['pgbouncer_user'] = nil
1551# postgresql['pgbouncer_user_password'] = nil
1552#
1553
1554################################################################################
1555# Repmgr (EE only)
1556################################################################################
1557# repmgr['cluster'] = 'gitlab_cluster'
1558# repmgr['database'] = 'gitlab_repmgr'
1559# repmgr['host'] = nil
1560# repmgr['node_number'] = nil
1561# repmgr['port'] = 5432
1562# repmgr['trust_auth_cidr_addresses'] = []
1563# repmgr['user'] = 'gitlab_repmgr'