Advertisement
Guest User

Untitled

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