· 8 years ago · Aug 28, 2017, 07:44 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.dev-carelabs.com:444'
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## Configuration Settings for GitLab CE and EE ##
32################################################################################
33################################################################################
34
35################################################################################
36## gitlab.yml configuration
37##! Docs: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/gitlab.yml.md
38################################################################################
39# gitlab_rails['gitlab_ssh_host'] = 'ssh.host_example.com'
40# gitlab_rails['time_zone'] = 'UTC'
41
42### Email Settings
43# gitlab_rails['gitlab_email_enabled'] = true
44# gitlab_rails['gitlab_email_from'] = 'example@example.com'
45# gitlab_rails['gitlab_email_display_name'] = 'Example'
46# gitlab_rails['gitlab_email_reply_to'] = 'noreply@example.com'
47# gitlab_rails['gitlab_email_subject_suffix'] = ''
48
49### GitLab user privileges
50# gitlab_rails['gitlab_default_can_create_group'] = true
51# gitlab_rails['gitlab_username_changing_enabled'] = true
52
53### Default Theme
54# gitlab_rails['gitlab_default_theme'] = 2
55
56### Default project feature settings
57# gitlab_rails['gitlab_default_projects_features_issues'] = true
58# gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
59# gitlab_rails['gitlab_default_projects_features_wiki'] = true
60# gitlab_rails['gitlab_default_projects_features_snippets'] = true
61# gitlab_rails['gitlab_default_projects_features_builds'] = true
62# gitlab_rails['gitlab_default_projects_features_container_registry'] = true
63
64### Automatic issue closing
65###! See https://docs.gitlab.com/ce/customization/issue_closing.html for more
66###! information about this pattern.
67# 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+))+)"
68
69### Download location
70###! When a user clicks e.g. 'Download zip' on a project, a temporary zip file
71###! is created in the following directory.
72# gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
73
74### Gravatar Settings
75# gitlab_rails['gravatar_plain_url'] = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
76# gitlab_rails['gravatar_ssl_url'] = 'https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
77
78### Auxiliary jobs
79###! Periodically executed jobs, to self-heal Gitlab, do external
80###! synchronizations, etc.
81###! Docs: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job
82###! https://docs.gitlab.com/ce/ci/yaml/README.html#artifacts:expire_in
83# gitlab_rails['stuck_ci_jobs_worker_cron'] = "0 0 * * *"
84# gitlab_rails['expire_build_artifacts_worker_cron'] = "50 * * * *"
85# gitlab_rails['pipeline_schedule_worker_cron'] = "41 * * * *"
86# gitlab_rails['repository_check_worker_cron'] = "20 * * * *"
87# gitlab_rails['admin_email_worker_cron'] = "0 0 * * 0"
88# gitlab_rails['repository_archive_cache_worker_cron'] = "0 * * * *"
89
90### Webhook Settings
91###! Number of seconds to wait for HTTP response after sending webhook HTTP POST
92###! request (default: 10)
93# gitlab_rails['webhook_timeout'] = 10
94
95### Trusted proxies
96###! Customize if you have GitLab behind a reverse proxy which is running on a
97###! different machine.
98###! **Add the IP address for your reverse proxy to the list, otherwise users
99###! will appear signed in from that address.**
100# gitlab_rails['trusted_proxies'] = []
101
102### Monitoring settings
103###! IP whitelist controlling access to monitoring endpoints
104# gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8']
105###! Time between sampling of unicorn socket metrics, in seconds
106# gitlab_rails['monitoring_unicorn_sampler_interval'] = 10
107
108### Reply by email
109###! Allow users to comment on issues and merge requests by replying to
110###! notification emails.
111###! Docs: https://docs.gitlab.com/ce/administration/reply_by_email.html
112# gitlab_rails['incoming_email_enabled'] = true
113
114#### Incoming Email Address
115####! The email address including the `%{key}` placeholder that will be replaced
116####! to reference the item being replied to.
117####! **The placeholder can be omitted but if present, it must appear in the
118####! "user" part of the address (before the `@`).**
119# gitlab_rails['incoming_email_address'] = "gitlab-incoming+%{key}@gmail.com"
120
121#### Email account username
122####! **With third party providers, this is usually the full email address.**
123####! **With self-hosted email servers, this is usually the user part of the
124####! email address.**
125# gitlab_rails['incoming_email_email'] = "gitlab-incoming@gmail.com"
126
127#### Email account password
128# gitlab_rails['incoming_email_password'] = "[REDACTED]"
129
130#### IMAP Settings
131# gitlab_rails['incoming_email_host'] = "imap.gmail.com"
132# gitlab_rails['incoming_email_port'] = 993
133# gitlab_rails['incoming_email_ssl'] = true
134# gitlab_rails['incoming_email_start_tls'] = false
135
136#### Incoming Mailbox Settings
137####! The mailbox where incoming mail will end up. Usually "inbox".
138# gitlab_rails['incoming_email_mailbox_name'] = "inbox"
139####! The IDLE command timeout.
140# gitlab_rails['incoming_email_idle_timeout'] = 60
141
142### Job Artifacts
143# gitlab_rails['artifacts_enabled'] = true
144# gitlab_rails['artifacts_path'] = "/mnt/storage/artifacts"
145# gitlab_rails['artifacts_object_store_enabled'] = false
146# gitlab_rails['artifacts_object_store_remote_directory'] = "artifacts"
147# gitlab_rails['artifacts_object_store_connection'] = {
148# 'provider' => 'AWS',
149# 'region' => 'eu-west-1',
150# 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
151# 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY'
152# }
153
154### Git LFS
155# gitlab_rails['lfs_enabled'] = true
156# gitlab_rails['lfs_storage_path'] = "/mnt/storage/lfs-objects"
157
158### Usage Statistics
159# gitlab_rails['usage_ping_enabled'] = true
160
161### GitLab Mattermost
162###! These settings are void if Mattermost is installed on the same omnibus
163###! install
164# gitlab_rails['mattermost_host'] = "https://mattermost.example.com"
165
166### LDAP Settings
167###! Docs: https://docs.gitlab.com/omnibus/settings/ldap.html
168###! **Be careful not to break the indentation in the ldap_servers block. It is
169###! in yaml format and the spaces must be retained. Using tabs will not work.**
170
171# gitlab_rails['ldap_enabled'] = false
172
173###! **remember to close this block with 'EOS' below**
174# gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
175# main: # 'main' is the GitLab 'provider ID' of this LDAP server
176# label: 'LDAP'
177# host: '_your_ldap_server'
178# port: 389
179# uid: 'sAMAccountName'
180# bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
181# password: '_the_password_of_the_bind_user'
182# encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
183# verify_certificates: true
184# ca_file: ''
185# ssl_version: ''
186# active_directory: true
187# allow_username_or_email_login: false
188# block_auto_created_users: false
189# base: ''
190# user_filter: ''
191# attributes:
192# username: ['uid', 'userid', 'sAMAccountName']
193# email: ['mail', 'email', 'userPrincipalName']
194# name: 'cn'
195# first_name: 'givenName'
196# last_name: 'sn'
197# ## EE only
198# group_base: ''
199# admin_group: ''
200# sync_ssh_keys: false
201#
202# secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
203# label: 'LDAP'
204# host: '_your_ldap_server'
205# port: 389
206# uid: 'sAMAccountName'
207# bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
208# password: '_the_password_of_the_bind_user'
209# encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
210# verify_certificates: true
211# ca_file: ''
212# ssl_version: ''
213# active_directory: true
214# allow_username_or_email_login: false
215# block_auto_created_users: false
216# base: ''
217# user_filter: ''
218# attributes:
219# username: ['uid', 'userid', 'sAMAccountName']
220# email: ['mail', 'email', 'userPrincipalName']
221# name: 'cn'
222# first_name: 'givenName'
223# last_name: 'sn'
224# ## EE only
225# group_base: ''
226# admin_group: ''
227# sync_ssh_keys: false
228# EOS
229
230### OmniAuth Settings
231###! Docs: https://docs.gitlab.com/ce/integration/omniauth.html
232# gitlab_rails['omniauth_enabled'] = false
233# gitlab_rails['omniauth_allow_single_sign_on'] = ['saml']
234# gitlab_rails['omniauth_sync_email_from_provider'] = 'saml'
235# gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'saml'
236# gitlab_rails['omniauth_block_auto_created_users'] = true
237# gitlab_rails['omniauth_auto_link_ldap_user'] = false
238# gitlab_rails['omniauth_auto_link_saml_user'] = false
239# gitlab_rails['omniauth_external_providers'] = ['twitter', 'google_oauth2']
240# gitlab_rails['omniauth_providers'] = [
241# {
242# "name" => "google_oauth2",
243# "app_id" => "YOUR APP ID",
244# "app_secret" => "YOUR APP SECRET",
245# "args" => { "access_type" => "offline", "approval_prompt" => "" }
246# }
247# ]
248
249### Backup Settings
250###! Docs: https://docs.gitlab.com/omnibus/settings/backups.html
251
252# gitlab_rails['manage_backup_path'] = true
253# gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
254
255###! Docs: https://docs.gitlab.com/ce/raketasks/backup_restore.html#backup-archive-permissions
256# gitlab_rails['backup_archive_permissions'] = 0644
257
258# gitlab_rails['backup_pg_schema'] = 'public'
259
260###! The duration in seconds to keep backups before they are allowed to be deleted
261# gitlab_rails['backup_keep_time'] = 604800
262
263# gitlab_rails['backup_upload_connection'] = {
264# 'provider' => 'AWS',
265# 'region' => 'eu-west-1',
266# 'aws_access_key_id' => 'AKIAKIAKI',
267# 'aws_secret_access_key' => 'secret123'
268# }
269# gitlab_rails['backup_upload_remote_directory'] = 'my.s3.bucket'
270# gitlab_rails['backup_multipart_chunk_size'] = 104857600
271
272###! **Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for
273###! backups**
274# gitlab_rails['backup_encryption'] = 'AES256'
275
276###! **Specifies Amazon S3 storage class to use for backups. Valid values
277###! include 'STANDARD', 'STANDARD_IA', 'GLACIER', and
278###! 'REDUCED_REDUNDANCY'**
279# gitlab_rails['backup_storage_class'] = 'STANDARD'
280
281### For setting up different data storing directory
282###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory
283###! **If you want to use a single non-default directory to store git data use a
284###! path that doesn't contain symlinks.**
285# git_data_dirs({ "default" => { "path" => "/var/opt/gitlab/git-data", 'gitaly_address' => 'unix:/var/opt/gitlab/gitaly/gitaly.socket' } })
286
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
295gitlab_rails['gitlab_shell_ssh_port'] = 2222
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
420registry_external_url 'https://registry-ci.dev-carelabs.com:444'
421
422### Settings used by GitLab application
423gitlab_rails['registry_enabled'] = true
424gitlab_rails['registry_host'] = "registry-ci.dev-carelabs.com"
425gitlab_rails['registry_port'] = "5005"
426gitlab_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**
430gitlab_rails['registry_api_url'] = "http://localhost:5000"
431gitlab_rails['registry_key_path'] = "/var/opt/gitlab/gitlab-rails/certificate.key"
432gitlab_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'] = "unix"
487# gitlab_workhorse['listen_umask'] = 000
488# gitlab_workhorse['listen_addr'] = "/var/opt/gitlab/gitlab-workhorse/socket"
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
553# unicorn['listen'] = '127.0.0.1'
554# unicorn['port'] = 8080
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**
564# unicorn['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.
766# web_server['external_users'] = []
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'] = true
780# nginx['client_max_body_size'] = '250m'
781# nginx['redirect_http_to_https'] = false
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/gitlab/ssl/#{node['fqdn']}.crt"
794# nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
795# nginx['ssl_ciphers'] = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256"
796# nginx['ssl_prefer_server_ciphers'] = "on"
797
798##! **Recommended by: https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
799##! https://cipherli.st/**
800# nginx['ssl_protocols'] = "TLSv1 TLSv1.1 TLSv1.2"
801
802##! **Recommended in: https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
803# nginx['ssl_session_cache'] = "builtin:1000 shared:SSL:10m"
804
805##! **Default according to https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
806# nginx['ssl_session_timeout'] = "5m"
807
808# nginx['ssl_dhparam'] = nil # Path to dhparams.pem, eg. /etc/gitlab/ssl/dhparams.pem
809# nginx['listen_addresses'] = ['*', '[::]']
810
811##! **Defaults to forcing web browsers to always communicate using only HTTPS**
812##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-http-strict-transport-security
813# nginx['hsts_max_age'] = 31536000
814# nginx['hsts_include_subdomains'] = false
815
816##! **Override only if you use a reverse proxy**
817##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-the-nginx-listen-port
818nginx['listen_port'] = 80
819
820##! **Override only if your reverse proxy internally communicates over HTTP**
821##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#supporting-proxied-ssl
822nginx['listen_https'] = false
823
824# nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
825# nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;"
826# nginx['proxy_read_timeout'] = 3600
827# nginx['proxy_connect_timeout'] = 300
828nginx['proxy_set_headers'] = {
829 "Host" => "$http_host_with_default",
830 "X-Real-IP" => "$remote_addr",
831 "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
832 "X-Forwarded-Proto" => "https",
833 "X-Forwarded-Ssl" => "on",
834 "Upgrade" => "$http_upgrade",
835 "Connection" => "$connection_upgrade"
836}
837# nginx['proxy_cache_path'] = 'proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2'
838# nginx['proxy_cache'] = 'gitlab'
839# nginx['http2_enabled'] = true
840# nginx['real_ip_trusted_addresses'] = []
841# nginx['real_ip_header'] = nil
842# nginx['real_ip_recursive'] = nil
843# nginx['custom_error_pages'] = {
844# '404' => {
845# 'title' => 'Example title',
846# 'header' => 'Example header',
847# 'message' => 'Example message'
848# }
849# }
850
851### Advanced settings
852# nginx['dir'] = "/var/opt/gitlab/nginx"
853# nginx['log_directory'] = "/var/log/gitlab/nginx"
854# nginx['worker_processes'] = 4
855# nginx['worker_connections'] = 10240
856# nginx['log_format'] = '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'
857# nginx['sendfile'] = 'on'
858# nginx['tcp_nopush'] = 'on'
859# nginx['tcp_nodelay'] = 'on'
860# nginx['gzip'] = "on"
861# nginx['gzip_http_version'] = "1.0"
862# nginx['gzip_comp_level'] = "2"
863# nginx['gzip_proxied'] = "any"
864# nginx['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ]
865# nginx['keepalive_timeout'] = 65
866# nginx['cache_max_size'] = '5000m'
867# nginx['server_names_hash_bucket_size'] = 64
868
869### Nginx status
870# nginx['status'] = {
871# "enable" => true,
872# "listen_addresses" => ["127.0.0.1"],
873# "fqdn" => "dev.example.com",
874# "port" => 9999,
875# "options" => {
876# "stub_status" => "on", # Turn on stats
877# "server_tokens" => "off", # Don't show the version of NGINX
878# "access_log" => "off", # Disable logs for stats
879# "allow" => "127.0.0.1", # Only allow access from localhost
880# "deny" => "all" # Deny access to anyone else
881# }
882# }
883
884################################################################################
885## GitLab Logging
886##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html
887################################################################################
888
889# logging['svlogd_size'] = 200 * 1024 * 1024 # rotate after 200 MB of log data
890# logging['svlogd_num'] = 30 # keep 30 rotated log files
891# logging['svlogd_timeout'] = 24 * 60 * 60 # rotate after 24 hours
892# logging['svlogd_filter'] = "gzip" # compress logs with gzip
893# logging['svlogd_udp'] = nil # transmit log messages via UDP
894# logging['svlogd_prefix'] = nil # custom prefix for log messages
895# logging['logrotate_frequency'] = "daily" # rotate logs daily
896# logging['logrotate_size'] = nil # do not rotate by size by default
897# logging['logrotate_rotate'] = 30 # keep 30 rotated logs
898# logging['logrotate_compress'] = "compress" # see 'man logrotate'
899# logging['logrotate_method'] = "copytruncate" # see 'man logrotate'
900# logging['logrotate_postrotate'] = nil # no postrotate command by default
901# 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
902
903################################################################################
904## Logrotate
905##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html#logrotate
906##! You can disable built in logrotate feature.
907################################################################################
908# logrotate['enable'] = true
909
910################################################################################
911## Users and groups accounts
912##! Disable management of users and groups accounts.
913##! **Set only if creating accounts manually**
914##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-user-and-group-account-management
915################################################################################
916
917# manage_accounts['enable'] = false
918
919################################################################################
920## Storage directories
921##! Disable managing storage directories
922##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-storage-directories-management
923################################################################################
924
925##! **Set only if the select directories are created manually**
926# manage_storage_directories['enable'] = false
927# manage_storage_directories['manage_etc'] = false
928
929################################################################################
930## Runtime directory
931##! Docs: https://docs.gitlab.com//omnibus/settings/configuration.html#configuring-runtime-directory
932################################################################################
933
934# runtime_dir '/run'
935
936################################################################################
937## Git
938##! Advanced setting for configuring git system settings for omnibus-gitlab
939##! internal git
940################################################################################
941
942##! For multiple options under one header use array of comma separated values,
943##! eg.:
944##! { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] }
945
946# omnibus_gitconfig['system'] = {
947# "pack" => ["threads = 1"],
948# "receive" => ["fsckObjects = true"],
949# "repack" => ["writeBitmaps = true"],
950# "transfer" => ["hideRefs=^refs/tmp/", "hideRefs=^refs/keep-around/"],
951# }
952
953################################################################################
954## GitLab Pages
955##! Docs: https://docs.gitlab.com/ce/pages/administration.html
956################################################################################
957
958##! Define to enable GitLab Pages
959# pages_external_url "http://pages.example.com/"
960# gitlab_pages['enable'] = false
961
962##! Configure to expose GitLab Pages on external IP address, serving the HTTP
963# gitlab_pages['external_http'] = []
964
965##! Configure to expose GitLab Pages on external IP address, serving the HTTPS
966# gitlab_pages['external_https'] = []
967
968# gitlab_pages['listen_proxy'] = "localhost:8090"
969# gitlab_pages['redirect_http'] = true
970# gitlab_pages['use_http2'] = true
971# gitlab_pages['dir'] = "/var/opt/gitlab/gitlab-pages"
972# gitlab_pages['log_directory'] = "/var/log/gitlab/gitlab-pages"
973
974##! Prometheus metrics for Pages docs: https://gitlab.com/gitlab-org/gitlab-pages/#enable-prometheus-metrics
975# gitlab_pages['metrics_address'] = ":9235"
976
977################################################################################
978## GitLab Pages NGINX
979################################################################################
980
981# All the settings defined in the "GitLab Nginx" section are also available in this "GitLab Pages NGINX" section
982# You just have to change the key "nginx['some_settings']" with "pages_nginx['some_settings']"
983
984# Below you can find settings that are exclusive to "GitLab Pages NGINX"
985# pages_nginx['enable'] = false
986
987# gitlab_rails['pages_path'] = "/mnt/storage/pages"
988
989################################################################################
990## GitLab CI
991##! Docs: https://docs.gitlab.com/ce/ci/quick_start/README.html
992################################################################################
993
994# gitlab_ci['gitlab_ci_all_broken_builds'] = true
995# gitlab_ci['gitlab_ci_add_pusher'] = true
996# gitlab_ci['builds_directory'] = '/var/opt/gitlab/gitlab-ci/builds'
997
998################################################################################
999## GitLab Mattermost
1000##! Docs: https://docs.gitlab.com/omnibus/gitlab-mattermost
1001################################################################################
1002
1003# mattermost_external_url 'http://mattermost.example.com'
1004
1005# mattermost['enable'] = false
1006# mattermost['username'] = 'mattermost'
1007# mattermost['group'] = 'mattermost'
1008# mattermost['uid'] = nil
1009# mattermost['gid'] = nil
1010# mattermost['home'] = '/var/opt/gitlab/mattermost'
1011# mattermost['database_name'] = 'mattermost_production'
1012
1013# mattermost['service_use_ssl'] = false
1014# mattermost['service_address'] = "127.0.0.1"
1015# mattermost['service_port'] = "8065"
1016# mattermost['service_site_url'] = nil
1017# mattermost['service_maximum_login_attempts'] = 10
1018# mattermost['service_google_developer_key'] = nil
1019# mattermost['service_enable_incoming_webhooks'] = true
1020# mattermost['service_enable_post_username_override'] = true
1021# mattermost['service_enable_post_icon_override'] = true
1022# mattermost['service_enable_testing'] = false
1023# mattermost['service_enable_security_fix_alert'] = true
1024# mattermost['service_enable_insecure_outgoing_connections'] = false
1025# mattermost['service_allow_cors_from'] = ""
1026# mattermost['service_enable_outgoing_webhooks'] = true
1027# mattermost['service_enable_commands'] = true
1028# mattermost['service_enable_custom_emoji'] = false
1029# mattermost['service_enable_only_admin_integrations'] = true
1030# mattermost['service_enable_oauth_service_provider'] = false
1031# mattermost['service_enable_developer'] = false
1032# mattermost['service_session_length_web_in_days'] = 30
1033# mattermost['service_session_length_mobile_in_days'] = 30
1034# mattermost['service_session_length_sso_in_days'] = 30
1035# mattermost['service_session_cache_in_minutes'] = 10
1036# mattermost['service_connection_security'] = nil
1037# mattermost['service_tls_cert_file'] = nil
1038# mattermost['service_tls_key_file'] = nil
1039# mattermost['service_use_lets_encrypt'] = false
1040# mattermost['service_lets_encrypt_cert_cache_file'] = "./config/letsencrypt.cache"
1041# mattermost['service_forward_80_to_443'] = false
1042# mattermost['service_read_timeout'] = 300
1043# mattermost['service_write_timeout'] = 300
1044# mattermost['service_time_between_user_typing_updates_milliseconds'] = 5000
1045# mattermost['service_enable_link_previews'] = false
1046# mattermost['service_enable_user_typing_messages'] = true
1047# mattermost['service_enable_post_search'] = true
1048# mattermost['service_enable_user_statuses'] = true
1049# mattermost['service_enable_emoji_picker'] = true
1050# mattermost['service_enable_channel_viewed_messages'] = true
1051# mattermost['service_enable_apiv3'] = true
1052# mattermost['service_goroutine_health_threshold'] = -1
1053
1054# mattermost['team_site_name'] = "GitLab Mattermost"
1055# mattermost['team_max_users_per_team'] = 150
1056# mattermost['team_enable_team_creation'] = true
1057# mattermost['team_enable_user_creation'] = true
1058# mattermost['team_enable_open_server'] = false
1059# mattermost['team_allow_public_link'] = true
1060# mattermost['team_allow_valet_default'] = false
1061# mattermost['team_restrict_creation_to_domains'] = "gmail.com"
1062# mattermost['team_restrict_team_names'] = true
1063# mattermost['team_restrict_direct_message'] = "any"
1064# mattermost['team_max_channels_per_team'] = 2000
1065# mattermost['team_user_status_away_timeout'] = 300
1066# mattermost['team_teammate_name_display'] = "full_name"
1067
1068# mattermost['sql_driver_name'] = 'mysql'
1069# mattermost['sql_data_source'] = "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8"
1070# mattermost['sql_data_source_replicas'] = ["mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8"]
1071# mattermost['sql_max_idle_conns'] = 10
1072# mattermost['sql_max_open_conns'] = 10
1073# mattermost['sql_trace'] = false
1074# mattermost['sql_data_source_search_replicas'] = []
1075# mattermost['sql_query_timeout'] = 30
1076
1077
1078# mattermost['log_file_directory'] = '/var/log/gitlab/mattermost'
1079# mattermost['log_console_enable'] = true
1080# mattermost['log_console_level'] = 'INFO'
1081# mattermost['log_enable_file'] = false
1082# mattermost['log_file_level'] = 'INFO'
1083# mattermost['log_file_format'] = nil
1084# mattermost['log_enable_diagnostics'] = true
1085
1086# mattermost['gitlab_enable'] = false
1087# mattermost['gitlab_id'] = "12345656"
1088# mattermost['gitlab_secret'] = "123456789"
1089# mattermost['gitlab_scope'] = ""
1090# mattermost['gitlab_auth_endpoint'] = "http://gitlab.example.com/oauth/authorize"
1091# mattermost['gitlab_token_endpoint'] = "http://gitlab.example.com/oauth/token"
1092# mattermost['gitlab_user_api_endpoint'] = "http://gitlab.example.com/api/v3/user"
1093
1094# mattermost['aws'] = {'S3AccessKeyId' => '123', 'S3SecretAccessKey' => '123', 'S3Bucket' => 'aa', 'S3Region' => 'bb'}
1095
1096# mattermost['email_enable_sign_up_with_email'] = true
1097# mattermost['email_enable_sign_in_with_email'] = true
1098# mattermost['email_enable_sign_in_with_username'] = false
1099# mattermost['email_send_email_notifications'] = false
1100# mattermost['email_require_email_verification'] = false
1101# mattermost['email_smtp_username'] = nil
1102# mattermost['email_smtp_password'] = nil
1103# mattermost['email_smtp_server'] = nil
1104# mattermost['email_smtp_port'] = nil
1105# mattermost['email_connection_security'] = nil
1106# mattermost['email_feedback_name'] = nil
1107# mattermost['email_feedback_email'] = nil
1108# mattermost['email_feedback_organization'] = nil
1109# mattermost['email_send_push_notifications'] = true
1110# mattermost['email_push_notification_server'] = ""
1111# mattermost['email_push_notification_contents'] = "generic"
1112# mattermost['email_enable_batching'] = false
1113# mattermost['email_batching_buffer_size'] = 256
1114# mattermost['email_batching_interval'] = 30
1115# mattermost['email_skip_server_certificate_verification'] = false
1116
1117# mattermost['file_max_file_size'] = 52428800
1118# mattermost['file_driver_name'] = "local"
1119# mattermost['file_directory'] = "/var/opt/gitlab/mattermost/data"
1120# mattermost['file_enable_public_link'] = true
1121# mattermost['file_initial_font'] = 'luximbi.ttf'
1122# mattermost['file_amazon_s3_access_key_id'] = nil
1123# mattermost['file_amazon_s3_bucket'] = nil
1124# mattermost['file_amazon_s3_secret_access_key'] = nil
1125# mattermost['file_amazon_s3_region'] = nil
1126# mattermost["file_amazon_s3_endpoint"] = nil
1127# mattermost["file_amazon_s3_bucket_endpoint"] = nil
1128# mattermost["file_amazon_s3_location_constraint"] = false
1129# mattermost["file_amazon_s3_lowercase_bucket"] = false
1130# mattermost["file_amazon_s3_ssl"] = true
1131# mattermost["file_amazon_s3_sign_v2"] = false
1132# mattermost['file_enable_file_attachments'] = true
1133
1134# mattermost['ratelimit_enable_rate_limiter'] = false
1135# mattermost['ratelimit_per_sec'] = 10
1136# mattermost['ratelimit_memory_store_size'] = 10000
1137# mattermost['ratelimit_vary_by_remote_addr'] = true
1138# mattermost['ratelimit_vary_by_header'] = nil
1139# mattermost['ratelimit_max_burst'] = 100
1140
1141# mattermost['support_terms_of_service_link'] = "/static/help/terms.html"
1142# mattermost['support_privacy_policy_link'] = "/static/help/privacy.html"
1143# mattermost['support_about_link'] = "/static/help/about.html"
1144# mattermost['support_report_a_problem_link'] = "/static/help/report_problem.html"
1145# mattermost['support_email'] = "support@example.com"
1146
1147# mattermost['privacy_show_email_address'] = true
1148# mattermost['privacy_show_full_name'] = true
1149
1150# mattermost['localization_server_locale'] = "en"
1151# mattermost['localization_client_locale'] = "en"
1152# mattermost['localization_available_locales'] = "en,es,fr,ja,pt-BR"
1153
1154# mattermost['webrtc_enable'] = false
1155# mattermost['webrtc_gateway_websocket_url'] = nil
1156# mattermost['webrtc_gateway_admin_url'] = nil
1157# mattermost['webrtc_gateway_admin_secret'] = nil
1158# mattermost['webrtc_gateway_stun_uri'] = nil
1159# mattermost['webrtc_gateway_turn_uri'] = nil
1160# mattermost['webrtc_gateway_turn_username'] = nil
1161# mattermost['webrtc_gateway_turn_shared_key'] = nil
1162
1163################################################################################
1164## Mattermost NGINX
1165################################################################################
1166
1167# All the settings defined in the "GitLab NGINX" section are also available in this "Mattermost NGINX" section
1168# You just have to change the key "nginx['some_settings']" with "mattermost_nginx['some_settings']"
1169
1170# Below you can find settings that are exclusive to "Mattermost NGINX"
1171# mattermost_nginx['enable'] = false
1172
1173# mattermost_nginx['custom_gitlab_mattermost_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
1174# mattermost_nginx['proxy_set_headers'] = {
1175# "Host" => "$http_host",
1176# "X-Real-IP" => "$remote_addr",
1177# "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
1178# "X-Frame-Options" => "SAMEORIGIN",
1179# "X-Forwarded-Proto" => "https",
1180# "X-Forwarded-Ssl" => "on",
1181# "Upgrade" => "$http_upgrade",
1182# "Connection" => "$connection_upgrade"
1183# }
1184
1185
1186################################################################################
1187## Registry NGINX
1188################################################################################
1189
1190# All the settings defined in the "GitLab NGINX" section are also available in this "Registry NGINX" section
1191# You just have to change the key "nginx['some_settings']" with "registry_nginx['some_settings']"
1192
1193# Below you can find settings that are exclusive to "Registry NGINX"
1194registry_nginx['enable'] = true
1195registry_nginx['listen_port'] = 80
1196registry_nginx['listen_https'] = false
1197registry_nginx['proxy_set_headers'] = {
1198 "Host" => "$http_host",
1199 "X-Real-IP" => "$remote_addr",
1200 "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
1201 "X-Forwarded-Proto" => "https",
1202 "X-Forwarded-Ssl" => "on"
1203}
1204registry_nginx['custom_gitlab_server_config'] = 'proxy_cache_convert_head off;'
1205################################################################################
1206## Prometheus
1207##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/
1208################################################################################
1209
1210# prometheus['enable'] = true
1211# prometheus['monitor_kubernetes'] = true
1212# prometheus['username'] = 'gitlab-prometheus'
1213# prometheus['uid'] = nil
1214# prometheus['gid'] = nil
1215# prometheus['shell'] = '/bin/sh'
1216# prometheus['home'] = '/var/opt/gitlab/prometheus'
1217# prometheus['log_directory'] = '/var/log/gitlab/prometheus'
1218# prometheus['scrape_interval'] = 15
1219# prometheus['scrape_timeout'] = 15
1220# prometheus['chunk_encoding_version'] = 2
1221#
1222### Custom scrape configs
1223#
1224# Prometheus can scrape additional jobs via scrape_configs. The default automatically
1225# includes all of the exporters supported by the omnibus config.
1226#
1227# See: https://prometheus.io/docs/operating/configuration/#<scrape_config>
1228#
1229# Example:
1230#
1231# prometheus['scrape_configs'] = [
1232# {
1233# 'job_name': 'example',
1234# 'static_configs' => [
1235# 'targets' => ['hostname:port'],
1236# ],
1237# },
1238# ]
1239#
1240### Prometheus Memory Management
1241#
1242# Prometheus needs to be configured for how much memory is used.
1243# * This sets the target heap size.
1244# * This value accounts for approximately 2/3 of the memory used by the server.
1245# * The recommended memory is 4kb per unique metrics time-series.
1246# See: https://prometheus.io/docs/operating/storage/#memory-usage
1247#
1248# prometheus['target_heap_size'] = (
1249# # Use 25mb + 2% of total memory for Prometheus memory.
1250# 26_214_400 + (node['memory']['total'].to_i * 1024 * 0.02 )
1251# ).to_i
1252#
1253# prometheus['flags'] = {
1254# 'storage.local.path' => "#{node['gitlab']['prometheus']['home']}/data",
1255# 'storage.local.chunk-encoding-version' => user_config['chunk-encoding-version'],
1256# 'storage.local.target-heap-size' => node['gitlab']['prometheus']['target-heap-size'],
1257# 'config.file' => "#{node['gitlab']['prometheus']['home']}/prometheus.yml"
1258# }
1259
1260##! Advanced settings. Should be changed only if absolutely needed.
1261# prometheus['listen_address'] = 'localhost:9090'
1262
1263################################################################################
1264## Prometheus Node Exporter
1265##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/node_exporter.html
1266################################################################################
1267
1268# node_exporter['enable'] = true
1269# node_exporter['home'] = '/var/opt/gitlab/node-exporter'
1270# node_exporter['log_directory'] = '/var/log/gitlab/node-exporter'
1271# node_exporter['flags'] = {
1272# 'collector.textfile.directory' => "#{node['gitlab']['node-exporter']['home']}/textfile_collector"
1273# }
1274
1275##! Advanced settings. Should be changed only if absolutely needed.
1276# node_exporter['listen_address'] = 'localhost:9100'
1277
1278################################################################################
1279## Prometheus Redis exporter
1280##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/redis_exporter.html
1281################################################################################
1282
1283# redis_exporter['enable'] = true
1284# redis_exporter['log_directory'] = '/var/log/gitlab/redis-exporter'
1285# redis_exporter['flags'] = {
1286# 'redis.addr' => "unix://#{node['gitlab']['gitlab-rails']['redis_socket']}",
1287# }
1288
1289##! Advanced settings. Should be changed only if absolutely needed.
1290# redis_exporter['listen_address'] = 'localhost:9121'
1291
1292################################################################################
1293## Prometheus Postgres exporter
1294##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/postgres_exporter.html
1295################################################################################
1296
1297# postgres_exporter['enable'] = true
1298# postgres_exporter['home'] = '/var/opt/gitlab/postgres-exporter'
1299# postgres_exporter['log_directory'] = '/var/log/gitlab/postgres-exporter'
1300# postgres_exporter['flags'] = {}
1301# postgres_exporter['listen_address'] = 'localhost:9187'
1302
1303################################################################################
1304## Prometheus Gitlab monitor
1305##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/gitlab_monitor_exporter.html
1306################################################################################
1307
1308
1309# gitlab_monitor['enable'] = true
1310# gitlab_monitor['log_directory'] = "/var/log/gitlab/gitlab-monitor"
1311# gitlab_monitor['home'] = "/var/opt/gitlab/gitlab-monitor"
1312
1313##! Advanced settings. Should be changed only if absolutely needed.
1314# gitlab_monitor['listen_address'] = 'localhost'
1315# gitlab_monitor['listen_port'] = '9168'
1316
1317# To completely disable prometheus, and all of it's exporters, set to false
1318# prometheus_monitoring['enable'] = true
1319
1320################################################################################
1321## Gitaly
1322##! Docs:
1323################################################################################
1324
1325
1326# gitaly['enable'] = false
1327# gitaly['dir'] = "/var/opt/gitlab/gitaly"
1328# gitaly['log_directory'] = "/var/log/gitlab/gitaly"
1329# gitaly['bin_path'] = "/opt/gitlab/embedded/bin/gitaly"
1330# gitaly['env_directory'] = "/opt/gitlab/etc/gitaly"
1331# gitaly['env'] = {
1332# 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
1333# 'HOME' => '/var/opt/gitlab'
1334# }
1335# gitaly['socket_path'] = "/var/opt/gitlab/gitaly/gitaly.socket"
1336# gitaly['listen_addr'] = "localhost:8075"
1337# gitaly['prometheus_listen_addr'] = "localhost:9175"
1338# gitaly['logging_format'] = "json"
1339# gitaly['logging_sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
1340# 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]"
1341# gitaly['auth_token'] = '<secret>'
1342# gitaly['auth_transitioning'] = false # When true, auth is logged to Prometheus but NOT enforced
1343
1344
1345################################################################################
1346################################################################################
1347## Configuration Settings for GitLab EE only ##
1348################################################################################
1349################################################################################
1350
1351
1352################################################################################
1353## Auxiliary cron jobs applicable to GitLab EE only
1354################################################################################
1355#
1356# gitlab_rails['geo_bulk_notify_worker_cron'] = "*/10 * * * * *"
1357# gitlab_rails['geo_file_download_dispatch_worker_cron'] = "*/10 * * * *"
1358# gitlab_rails['geo_repository_sync_worker_cron'] = "*/5 * * * *"
1359# gitlab_rails['ldap_sync_worker_cron'] = "30 1 * * *"
1360# gitlab_rails['ldap_group_sync_worker_cron'] = "0 * * * *"
1361# gitlab_rails['historical_data_worker_cron'] = "0 12 * * *"
1362
1363################################################################################
1364## Kerberos (EE Only)
1365##! Docs: https://docs.gitlab.com/ee/integration/kerberos.html#http-git-access
1366################################################################################
1367
1368# gitlab_rails['kerberos_enabled'] = true
1369# gitlab_rails['kerberos_keytab'] = /etc/http.keytab
1370# gitlab_rails['kerberos_service_principal_name'] = HTTP/gitlab.example.com@EXAMPLE.COM
1371# gitlab_rails['kerberos_use_dedicated_port'] = true
1372# gitlab_rails['kerberos_port'] = 8443
1373# gitlab_rails['kerberos_https'] = true
1374
1375################################################################################
1376## GitLab Sentinel (EE Only)
1377##! Docs: http://docs.gitlab.com/ce/administration/high_availability/redis.html#high-availability-with-sentinel
1378################################################################################
1379
1380##! **Make sure you configured all redis['master_*'] keys above before
1381##! continuing.**
1382
1383##! To enable Sentinel and disable all other services in this machine,
1384##! uncomment the line below (if you've enabled Redis role, it will keep it).
1385##! Docs: https://docs.gitlab.com/ce/administration/high_availability/redis.html
1386# redis_sentinel_role['enable'] = true
1387
1388# sentinel['enable'] = true
1389
1390##! Bind to all interfaces, uncomment to specify an IP and bind to a single one
1391# sentinel['bind'] = '0.0.0.0'
1392
1393##! Uncomment to change default port
1394# sentinel['port'] = 26379
1395
1396##! Quorum must reflect the amount of voting sentinels it take to start a
1397##! failover.
1398##! **Value must NOT be greater then the amount of sentinels.**
1399##! The quorum can be used to tune Sentinel in two ways:
1400##! 1. If a the quorum is set to a value smaller than the majority of Sentinels
1401##! we deploy, we are basically making Sentinel more sensible to master
1402##! failures, triggering a failover as soon as even just a minority of
1403##! Sentinels is no longer able to talk with the master.
1404##! 2. If a quorum is set to a value greater than the majority of Sentinels, we
1405##! are making Sentinel able to failover only when there are a very large
1406##! number (larger than majority) of well connected Sentinels which agree
1407##! about the master being down.
1408# sentinel['quorum'] = 1
1409
1410### Consider unresponsive server down after x amount of ms.
1411# sentinel['down_after_milliseconds'] = 10000
1412
1413### Specifies the failover timeout in milliseconds.
1414##! It is used in many ways:
1415##!
1416##! - The time needed to re-start a failover after a previous failover was
1417##! already tried against the same master by a given Sentinel, is two
1418##! times the failover timeout.
1419##!
1420##! - The time needed for a slave replicating to a wrong master according
1421##! to a Sentinel current configuration, to be forced to replicate
1422##! with the right master, is exactly the failover timeout (counting since
1423##! the moment a Sentinel detected the misconfiguration).
1424##!
1425##! - The time needed to cancel a failover that is already in progress but
1426##! did not produced any configuration change (SLAVEOF NO ONE yet not
1427##! acknowledged by the promoted slave).
1428##!
1429##! - The maximum time a failover in progress waits for all the slaves to be
1430##! reconfigured as slaves of the new master. However even after this time
1431##! the slaves will be reconfigured by the Sentinels anyway, but not with
1432##! the exact parallel-syncs progression as specified.
1433# sentinel['failover_timeout'] = 60000
1434
1435################################################################################
1436## Logging (Additional, EE Only features)
1437##! Docs: http://docs.gitlab.com/omnibus/settings/logs.html#udp-log-shipping-gitlab-enterprise-edition-only-
1438################################################################################
1439
1440##! remote host to ship log messages to via UDP
1441# logging['udp_log_shipping_host'] = nil
1442
1443##! remote port to ship log messages to via UDP
1444# logging['udp_log_shipping_port'] = 514
1445
1446################################################################################
1447## GitLab Sidekiq Cluster (EE only)
1448################################################################################
1449
1450##! GitLab Enterprise Edition allows one to start an extra set of Sidekiq processes
1451##! besides the default one. These processes can be used to consume a dedicated set
1452##! of queues. This can be used to ensure certain queues always have dedicated
1453##! workers, no matter the amount of jobs that need to be processed.
1454
1455# sidekiq_cluster['enable'] = false
1456# sidekiq_cluster['ha'] = false
1457# sidekiq_cluster['log_directory'] = "/var/log/gitlab/sidekiq-cluster"
1458# sidekiq_cluster['interval'] = 5 # The number of seconds to wait between worker checks
1459
1460##! Each entry in the queue_groups array denotes a group of queues that have to be processed by a
1461##! Sidekiq process. Multiple queues can be processed by the same process by
1462##! separating them with a comma within the group entry
1463
1464# sidekiq_cluster['queue_groups'] = [
1465# "process_commit,post_receive",
1466# "gitlab_shell"
1467# ]
1468#
1469
1470################################################################################
1471## Additional Database Settings (EE only)
1472##! Docs: https://docs.gitlab.com/ee/administration/database_load_balancing.html
1473################################################################################
1474# gitlab_rails['db_load_balancing'] = { 'hosts' => ['secondary1.example.com'] }
1475
1476################################################################################
1477## GitLab Geo
1478##! Docs: https://docs.gitlab.com/ee/gitlab-geo
1479################################################################################
1480# geo_primary_role['enable'] = false
1481# geo_secondary_role['enable'] = false
1482
1483################################################################################
1484## GitLab Geo Secondary (EE only)
1485################################################################################
1486# geo_secondary['auto_migrate'] = true
1487# geo_secondary['db_adapter'] = "postgresql"
1488# geo_secondary['db_encoding'] = "unicode"
1489# geo_secondary['db_collation'] = nil
1490# geo_secondary['db_database'] = "gitlabhq_geo_production"
1491# geo_secondary['db_pool'] = 10
1492# geo_secondary['db_username'] = "gitlab_geo"
1493# geo_secondary['db_password'] = nil
1494# geo_secondary['db_host'] = "/var/opt/gitlab/geo-postgresql"
1495# geo_secondary['db_port'] = 5431
1496# geo_secondary['db_socket'] = nil
1497# geo_secondary['db_sslmode'] = nil
1498# geo_secondary['db_sslrootcert'] = nil
1499# geo_secondary['db_sslca'] = nil
1500
1501################################################################################
1502## GitLab Geo Secondary Tracking Database (EE only)
1503################################################################################
1504
1505# geo_postgresql['enable'] = false
1506# geo_postgresql['ha'] = false
1507# geo_postgresql['dir'] = '/var/opt/gitlab/geo-postgresql'
1508# geo_postgresql['data_dir'] = '/var/opt/gitlab/geo-postgresql/data'
1509
1510################################################################################
1511# Pgbouncer (EE only)
1512# See [GitLab PgBouncer documentation](http://docs.gitlab.com/omnibus/settings/database.html#enabling-pgbouncer-ee-only)
1513# See the [PgBouncer page](https://pgbouncer.github.io/config.html) for details
1514################################################################################
1515# pgbouncer['enable'] = false
1516# pgbouncer['log_directory'] = '/var/log/gitlab/pgbouncer'
1517# pgbouncer['data_directory'] = '/var/opt/gitlab/pgbouncer'
1518# pgbouncer['listen_addr'] = '0.0.0.0'
1519# pgbouncer['listen_port'] = '6432'
1520# pgbouncer['pool_mode'] = 'session'
1521# pgbouncer['server_reset_query'] = 'DISCARD ALL'
1522# pgbouncer['max_client_conn'] = '100'
1523# pgbouncer['default_pool_size'] = '20'
1524# pgbouncer['min_pool_size'] = '0'
1525# pgbouncer['reserve_pool_size'] = '0'
1526# pgbouncer['reserve_pool_timeout'] = '5.0'
1527# pgbouncer['server_round_robin'] = '0'
1528# pgbouncer['log_connections'] = '0'
1529# pgbouncer['server_idle_timeout'] = '600.0'
1530# pgbouncer['dns_max_ttl'] = '15.0'
1531# pgbouncer['dns_zone_check_period'] = '0'
1532# pgbouncer['dns_nxdomain_ttl'] = '15.0'
1533# pgbouncer['admin_users'] = %w(gitlab-psql postgres pgbouncer)
1534# pgbouncer['stats_users'] = %w(gitlab-psql postgres pgbouncer)
1535# pgbouncer['ignore_startup_parameters'] = 'extra_float_digits'
1536# pgbouncer['databases'] = {
1537# DATABASE_NAME: {
1538# host: HOSTNAME,
1539# port: PORT
1540# user: USERNAME,
1541# password: PASSWORD
1542###! generate this with `echo -n '$password + $username' | md5sum`
1543# }
1544# ...
1545# }
1546# pgbouncer['auth_type'] = 'md5'
1547# pgbouncer['auth_hba_file'] = nil
1548# pgbouncer['auth_query'] = 'SELECT username, password FROM public.pg_shadow_lookup($1)'
1549# postgresql['pgbouncer_user'] = nil
1550# postgresql['pgbouncer_user_password'] = nil
1551#
1552
1553################################################################################
1554# Repmgr (EE only)
1555################################################################################
1556# repmgr['cluster'] = 'gitlab_cluster'
1557# repmgr['database'] = 'gitlab_repmgr'
1558# repmgr['host'] = nil
1559# repmgr['node_number'] = nil
1560# repmgr['port'] = 5432
1561# repmgr['trust_auth_cidr_addresses'] = []
1562# repmgr['user'] = 'gitlab_repmgr'