Advertisement
Matancy

Untitled

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