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