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