当前位置:   article > 正文

gitlab 吃内存。调整gitlab配置_gitlab 内存

gitlab 内存

背景:

时间2022年11月,一台2核4g的阿里云服务安装了最新的gitlab,安装教程可以看之前的文章。

问题:

这台服务器只装了一个程序即gitlab,但是内存吃的所剩无几。看图说话

解决办法:无非是修改配置文件然后重启。

命令如下:

vim /etc/gitlab/gitlab.rb
gitlab-ctl reconfigure

配置文件如下:

  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, when they were introduced and why:
  6. ##! https://gitlab.com/gitlab-org/omnibus-gitlab/blame/master/files/gitlab-config-template/gitlab.rb.template
  7. ##! Locally, the complete template corresponding to the installed version can be found at:
  8. ##! /opt/gitlab/etc/gitlab.rb.template
  9. ##! You can run `gitlab-ctl diff-config` to compare the contents of the current gitlab.rb with
  10. ##! the gitlab.rb.template from the currently running version.
  11. ##! You can run `gitlab-ctl show-config` to display the configuration that will be generated by
  12. ##! running `gitlab-ctl reconfigure`
  13. ##! In general, the values specified here should reflect what the default value of the attribute will be.
  14. ##! There are instances where this behavior is not possible or desired. For example, when providing passwords,
  15. ##! or connecting to third party services.
  16. ##! In those instances, we endeavour to provide an example configuration.
  17. ## GitLab URL
  18. ##! URL on which GitLab will be reachable.
  19. ##! For more details on configuring external_url see:
  20. ##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
  21. ##!
  22. ##! Note: During installation/upgrades, the value of the environment variable
  23. ##! EXTERNAL_URL will be used to populate/replace this value.
  24. ##! On AWS EC2 instances, we also attempt to fetch the public hostname/IP
  25. ##! address from AWS. For more details, see:
  26. ##! https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
  27. # external_url 'http://gitlab.example.com'
  28. ## Roles for multi-instance GitLab
  29. ##! The default is to have no roles enabled, which results in GitLab running as an all-in-one instance.
  30. ##! Options:
  31. ##! redis_sentinel_role redis_master_role redis_replica_role geo_primary_role geo_secondary_role
  32. ##! postgres_role consul_role application_role monitoring_role
  33. ##! For more details on each role, see:
  34. ##! https://docs.gitlab.com/omnibus/roles/index.html#roles
  35. ##!
  36. # roles ['redis_sentinel_role', 'redis_master_role']
  37. ## Legend
  38. ##! The following notations at the beginning of each line may be used to
  39. ##! differentiate between components of this file and to easily select them using
  40. ##! a regex.
  41. ##! ## Titles, subtitles etc
  42. ##! ##! More information - Description, Docs, Links, Issues etc.
  43. ##! Configuration settings have a single # followed by a single space at the
  44. ##! beginning; Remove them to enable the setting.
  45. ##! **Configuration settings below are optional.**
  46. ################################################################################
  47. ################################################################################
  48. ## Configuration Settings for GitLab CE and EE ##
  49. ################################################################################
  50. ################################################################################
  51. ################################################################################
  52. ## gitlab.yml configuration
  53. ##! Docs: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/gitlab.yml.md
  54. ################################################################################
  55. # gitlab_rails['gitlab_ssh_host'] = 'ssh.host_example.com'
  56. # gitlab_rails['gitlab_ssh_user'] = ''
  57. gitlab_rails['time_zone'] = 'Asia/Shanghai'
  58. ### Rails asset / CDN host
  59. ###! Defines a url for a host/cdn to use for the Rails assets
  60. ###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#set-a-content-delivery-network-url
  61. # gitlab_rails['cdn_host'] = 'https://mycdnsubdomain.fictional-cdn.com'
  62. ### Request duration
  63. ###! Tells the rails application how long it has to complete a request
  64. ###! This value needs to be lower than the worker timeout set in puma.
  65. ###! By default, we'll allow 95% of the the worker timeout
  66. # gitlab_rails['max_request_duration_seconds'] = 57
  67. ### GitLab email server settings
  68. ###! Docs: https://docs.gitlab.com/omnibus/settings/smtp.html
  69. ###! **Use smtp instead of sendmail/postfix.**
  70. # gitlab_rails['smtp_enable'] = true
  71. # gitlab_rails['smtp_address'] = "smtp.server"
  72. # gitlab_rails['smtp_port'] = 465
  73. # gitlab_rails['smtp_user_name'] = "smtp user"
  74. # gitlab_rails['smtp_password'] = "smtp password"
  75. # gitlab_rails['smtp_domain'] = "example.com"
  76. # gitlab_rails['smtp_authentication'] = "login"
  77. # gitlab_rails['smtp_enable_starttls_auto'] = true
  78. # gitlab_rails['smtp_tls'] = false
  79. # gitlab_rails['smtp_pool'] = false
  80. ###! **Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert'**
  81. ###! Docs: http://api.rubyonrails.org/classes/ActionMailer/Base.html
  82. # gitlab_rails['smtp_openssl_verify_mode'] = 'none'
  83. # gitlab_rails['smtp_ca_path'] = "/etc/ssl/certs"
  84. # gitlab_rails['smtp_ca_file'] = "/etc/ssl/certs/ca-certificates.crt"
  85. ### Email Settings
  86. # gitlab_rails['gitlab_email_enabled'] = true
  87. ##! If your SMTP server does not like the default 'From: gitlab@gitlab.example.com'
  88. ##! can change the 'From' with this setting.
  89. # gitlab_rails['gitlab_email_from'] = 'example@example.com'
  90. # gitlab_rails['gitlab_email_display_name'] = 'Example'
  91. # gitlab_rails['gitlab_email_reply_to'] = 'noreply@example.com'
  92. # gitlab_rails['gitlab_email_subject_suffix'] = ''
  93. # gitlab_rails['gitlab_email_smime_enabled'] = false
  94. # gitlab_rails['gitlab_email_smime_key_file'] = '/etc/gitlab/ssl/gitlab_smime.key'
  95. # gitlab_rails['gitlab_email_smime_cert_file'] = '/etc/gitlab/ssl/gitlab_smime.crt'
  96. # gitlab_rails['gitlab_email_smime_ca_certs_file'] = '/etc/gitlab/ssl/gitlab_smime_cas.crt'
  97. ### GitLab user privileges
  98. # gitlab_rails['gitlab_default_can_create_group'] = true
  99. # gitlab_rails['gitlab_username_changing_enabled'] = true
  100. ### Default Theme
  101. ### Available values:
  102. ##! `1` for Indigo
  103. ##! `2` for Dark
  104. ##! `3` for Light
  105. ##! `4` for Blue
  106. ##! `5` for Green
  107. ##! `6` for Light Indigo
  108. ##! `7` for Light Blue
  109. ##! `8` for Light Green
  110. ##! `9` for Red
  111. ##! `10` for Light Red
  112. # gitlab_rails['gitlab_default_theme'] = 2
  113. ### Default project feature settings
  114. # gitlab_rails['gitlab_default_projects_features_issues'] = true
  115. # gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
  116. # gitlab_rails['gitlab_default_projects_features_wiki'] = true
  117. # gitlab_rails['gitlab_default_projects_features_snippets'] = true
  118. # gitlab_rails['gitlab_default_projects_features_builds'] = true
  119. # gitlab_rails['gitlab_default_projects_features_container_registry'] = true
  120. ### Automatic issue closing
  121. ###! See https://docs.gitlab.com/ee/customization/issue_closing.html for more
  122. ###! information about this pattern.
  123. # gitlab_rails['gitlab_issue_closing_pattern'] = "\b((?:[Cc]los(?:e[sd]?|ing)|\b[Ff]ix(?:e[sd]|ing)?|\b[Rr]esolv(?:e[sd]?|ing)|\b[Ii]mplement(?:s|ed|ing)?)(:?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?)|([A-Z][A-Z0-9_]+-\d+))+)"
  124. ### Download location
  125. ###! When a user clicks e.g. 'Download zip' on a project, a temporary zip file
  126. ###! is created in the following directory.
  127. ###! Should not be the same path, or a sub directory of any of the `git_data_dirs`
  128. # gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
  129. ### Gravatar Settings
  130. # gitlab_rails['gravatar_plain_url'] = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
  131. # gitlab_rails['gravatar_ssl_url'] = 'https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
  132. gitlab_rails['gravatar_plain_url'] = 'http://sdn.geekzu.org/avatar/%{hash}?s=%{size}&d=identicon'
  133. ### Auxiliary jobs
  134. ###! Periodically executed jobs, to self-heal Gitlab, do external
  135. ###! synchronizations, etc.
  136. ###! Docs: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job
  137. ###! https://docs.gitlab.com/ee/ci/yaml/index.html#artifactsexpire_in
  138. # gitlab_rails['stuck_ci_jobs_worker_cron'] = "0 0 * * *"
  139. # gitlab_rails['expire_build_artifacts_worker_cron'] = "*/7 * * * *"
  140. # gitlab_rails['environments_auto_stop_cron_worker_cron'] = "24 * * * *"
  141. # gitlab_rails['pipeline_schedule_worker_cron'] = "19 * * * *"
  142. # gitlab_rails['ci_archive_traces_cron_worker_cron'] = "17 * * * *"
  143. # gitlab_rails['repository_check_worker_cron'] = "20 * * * *"
  144. # gitlab_rails['admin_email_worker_cron'] = "0 0 * * 0"
  145. # gitlab_rails['personal_access_tokens_expiring_worker_cron'] = "0 1 * * *"
  146. # gitlab_rails['personal_access_tokens_expired_notification_worker_cron'] = "0 2 * * *"
  147. # gitlab_rails['repository_archive_cache_worker_cron'] = "0 * * * *"
  148. # gitlab_rails['pages_domain_verification_cron_worker'] = "*/15 * * * *"
  149. # gitlab_rails['pages_domain_ssl_renewal_cron_worker'] = "*/10 * * * *"
  150. # gitlab_rails['pages_domain_removal_cron_worker'] = "47 0 * * *"
  151. # gitlab_rails['remove_unaccepted_member_invites_cron_worker'] = "10 15 * * *"
  152. # gitlab_rails['schedule_migrate_external_diffs_worker_cron'] = "15 * * * *"
  153. # gitlab_rails['ci_platform_metrics_update_cron_worker'] = '47 9 * * *'
  154. # gitlab_rails['analytics_usage_trends_count_job_trigger_worker_cron'] = "50 23 */1 * *"
  155. # gitlab_rails['member_invitation_reminder_emails_worker_cron'] = "0 0 * * *"
  156. # gitlab_rails['user_status_cleanup_batch_worker_cron'] = "* * * * *"
  157. # gitlab_rails['namespaces_in_product_marketing_emails_worker_cron'] = "0 9 * * *"
  158. # gitlab_rails['ssh_keys_expired_notification_worker_cron'] = "0 2 * * *"
  159. # gitlab_rails['ssh_keys_expiring_soon_notification_worker_cron'] = "0 1 * * *"
  160. # gitlab_rails['loose_foreign_keys_cleanup_worker_cron'] = "*/5 * * * *"
  161. # gitlab_rails['ci_runner_versions_reconciliation_worker_cron'] = "20 * * * *"
  162. ### Webhook Settings
  163. ###! Number of seconds to wait for HTTP response after sending webhook HTTP POST
  164. ###! request (default: 10)
  165. # gitlab_rails['webhook_timeout'] = 10
  166. ### GraphQL Settings
  167. ###! Tells the rails application how long it has to complete a GraphQL request.
  168. ###! We suggest this value to be higher than the database timeout value
  169. ###! and lower than the worker timeout set in puma. (default: 30)
  170. # gitlab_rails['graphql_timeout'] = 30
  171. ### Trusted proxies
  172. ###! Customize if you have GitLab behind a reverse proxy which is running on a
  173. ###! different machine.
  174. ###! **Add the IP address for your reverse proxy to the list, otherwise users
  175. ###! will appear signed in from that address.**
  176. # gitlab_rails['trusted_proxies'] = []
  177. ### Content Security Policy
  178. ####! Customize if you want to enable the Content-Security-Policy header, which
  179. ####! can help thwart JavaScript cross-site scripting (XSS) attacks.
  180. ####! See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
  181. # gitlab_rails['content_security_policy'] = {
  182. # 'enabled' => false,
  183. # 'report_only' => false,
  184. # # Each directive is a String (e.g. "'self'").
  185. # 'directives' => {
  186. # 'base_uri' => nil,
  187. # 'child_src' => nil,
  188. # 'connect_src' => nil,
  189. # 'default_src' => nil,
  190. # 'font_src' => nil,
  191. # 'form_action' => nil,
  192. # 'frame_ancestors' => nil,
  193. # 'frame_src' => nil,
  194. # 'img_src' => nil,
  195. # 'manifest_src' => nil,
  196. # 'media_src' => nil,
  197. # 'object_src' => nil,
  198. # 'script_src' => nil,
  199. # 'style_src' => nil,
  200. # 'worker_src' => nil,
  201. # 'report_uri' => nil,
  202. # }
  203. # }
  204. ### Allowed hosts
  205. ###! Customize the `host` headers that should be catered by the Rails
  206. ###! application. By default, everything is allowed.
  207. # gitlab_rails['allowed_hosts'] = []
  208. ### Monitoring settings
  209. ###! IP whitelist controlling access to monitoring endpoints
  210. # gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8', '::1/128']
  211. ### Shutdown settings
  212. ###! Defines an interval to block healthcheck,
  213. ###! but continue accepting application requests.
  214. # gitlab_rails['shutdown_blackout_seconds'] = 10
  215. ### Microsoft Graph Mailer
  216. ###! Allows delivery of emails using Microsoft Graph API with OAuth 2.0 client
  217. ###! credentials flow.
  218. ###! Docs: https://docs.gitlab.com/omnibus/settings/microsoft_graph_mailer.html
  219. # gitlab_rails['microsoft_graph_mailer_enabled'] = false
  220. # gitlab_rails['microsoft_graph_mailer_user_id'] = "YOUR-USER-ID"
  221. # gitlab_rails['microsoft_graph_mailer_tenant'] = "YOUR-TENANT-ID"
  222. # gitlab_rails['microsoft_graph_mailer_client_id'] = "YOUR-CLIENT-ID"
  223. # gitlab_rails['microsoft_graph_mailer_client_secret'] = "YOUR-CLIENT-SECRET-ID"
  224. # gitlab_rails['microsoft_graph_mailer_azure_ad_endpoint'] = "https://login.microsoftonline.com"
  225. # gitlab_rails['microsoft_graph_mailer_graph_endpoint'] = "https://graph.microsoft.com"
  226. ### Reply by email
  227. ###! Allow users to comment on issues and merge requests by replying to
  228. ###! notification emails.
  229. ###! Docs: https://docs.gitlab.com/ee/administration/reply_by_email.html
  230. # gitlab_rails['incoming_email_enabled'] = true
  231. #### Incoming Email Address
  232. ####! The email address including the `%{key}` placeholder that will be replaced
  233. ####! to reference the item being replied to.
  234. ####! **The placeholder can be omitted but if present, it must appear in the
  235. ####! "user" part of the address (before the `@`).**
  236. # gitlab_rails['incoming_email_address'] = "gitlab-incoming+%{key}@gmail.com"
  237. #### Email account username
  238. ####! **With third party providers, this is usually the full email address.**
  239. ####! **With self-hosted email servers, this is usually the user part of the
  240. ####! email address.**
  241. # gitlab_rails['incoming_email_email'] = "gitlab-incoming@gmail.com"
  242. #### Email account password
  243. # gitlab_rails['incoming_email_password'] = "[REDACTED]"
  244. #### IMAP Settings
  245. # gitlab_rails['incoming_email_host'] = "imap.gmail.com"
  246. # gitlab_rails['incoming_email_port'] = 993
  247. # gitlab_rails['incoming_email_ssl'] = true
  248. # gitlab_rails['incoming_email_start_tls'] = false
  249. #### Incoming Mailbox Settings (via `mail_room`)
  250. ####! The mailbox where incoming mail will end up. Usually "inbox".
  251. # gitlab_rails['incoming_email_mailbox_name'] = "inbox"
  252. ####! The IDLE command timeout.
  253. # gitlab_rails['incoming_email_idle_timeout'] = 60
  254. ####! The file name for internal `mail_room` JSON logfile
  255. # gitlab_rails['incoming_email_log_file'] = "/var/log/gitlab/mailroom/mail_room_json.log"
  256. ####! Permanently remove messages from the mailbox when they are marked as deleted after delivery
  257. # gitlab_rails['incoming_email_expunge_deleted'] = false
  258. #### Inbox options (for Microsoft Graph)
  259. # gitlab_rails['incoming_email_inbox_method'] = 'microsoft_graph'
  260. # gitlab_rails['incoming_email_inbox_options'] = {
  261. # 'tenant_id': 'YOUR-TENANT-ID',
  262. # 'client_id': 'YOUR-CLIENT-ID',
  263. # 'client_secret': 'YOUR-CLIENT-SECRET',
  264. # 'poll_interval': 60 # Optional
  265. # }
  266. #### How incoming emails are delivered to Rails process. Accept either sidekiq
  267. #### or webhook. The default config is webhook.
  268. # gitlab_rails['incoming_email_delivery_method'] = "webhook"
  269. #### Token to authenticate webhook requests. The token must be exactly 32 bytes,
  270. #### encoded with base64
  271. # gitlab_rails['incoming_email_auth_token'] = nil
  272. ####! The format of mail_room crash logs
  273. # mailroom['exit_log_format'] = "plain"
  274. ### Consolidated (simplified) object storage configuration
  275. ###! This uses a single credential for object storage with multiple buckets.
  276. ###! It also enables Workhorse to upload files directly with its own S3 client
  277. ###! instead of using pre-signed URLs.
  278. ###!
  279. ###! This configuration will only take effect if the object_store
  280. ###! sections are not defined within the types. For example, enabling
  281. ###! gitlab_rails['artifacts_object_store_enabled'] or
  282. ###! gitlab_rails['lfs_object_store_enabled'] will prevent the
  283. ###! consolidated settings from being used.
  284. ###!
  285. ###! Be sure to use different buckets for each type of object.
  286. ###! Docs: https://docs.gitlab.com/ee/administration/object_storage.html
  287. # gitlab_rails['object_store']['enabled'] = false
  288. # gitlab_rails['object_store']['connection'] = {}
  289. # gitlab_rails['object_store']['storage_options'] = {}
  290. # gitlab_rails['object_store']['proxy_download'] = false
  291. # gitlab_rails['object_store']['objects']['artifacts']['bucket'] = nil
  292. # gitlab_rails['object_store']['objects']['external_diffs']['bucket'] = nil
  293. # gitlab_rails['object_store']['objects']['lfs']['bucket'] = nil
  294. # gitlab_rails['object_store']['objects']['uploads']['bucket'] = nil
  295. # gitlab_rails['object_store']['objects']['packages']['bucket'] = nil
  296. # gitlab_rails['object_store']['objects']['dependency_proxy']['bucket'] = nil
  297. # gitlab_rails['object_store']['objects']['terraform_state']['bucket'] = nil
  298. # gitlab_rails['object_store']['objects']['ci_secure_files']['bucket'] = nil
  299. ### Job Artifacts
  300. # gitlab_rails['artifacts_enabled'] = true
  301. # gitlab_rails['artifacts_path'] = "/var/opt/gitlab/gitlab-rails/shared/artifacts"
  302. ####! Job artifacts Object Store
  303. ####! Docs: https://docs.gitlab.com/ee/administration/job_artifacts.html#using-object-storage
  304. # gitlab_rails['artifacts_object_store_enabled'] = false
  305. # gitlab_rails['artifacts_object_store_proxy_download'] = false
  306. # gitlab_rails['artifacts_object_store_remote_directory'] = "artifacts"
  307. # gitlab_rails['artifacts_object_store_connection'] = {
  308. # 'provider' => 'AWS',
  309. # 'region' => 'eu-west-1',
  310. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  311. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  312. # # # The below options configure an S3 compatible host instead of AWS
  313. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  314. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  315. # # 'host' => 's3.amazonaws.com',
  316. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  317. # }
  318. ### External merge request diffs
  319. # gitlab_rails['external_diffs_enabled'] = false
  320. # gitlab_rails['external_diffs_when'] = nil
  321. # gitlab_rails['external_diffs_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/external-diffs"
  322. # gitlab_rails['external_diffs_object_store_enabled'] = false
  323. # gitlab_rails['external_diffs_object_store_proxy_download'] = false
  324. # gitlab_rails['external_diffs_object_store_remote_directory'] = "external-diffs"
  325. # gitlab_rails['external_diffs_object_store_connection'] = {
  326. # 'provider' => 'AWS',
  327. # 'region' => 'eu-west-1',
  328. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  329. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  330. # # # The below options configure an S3 compatible host instead of AWS
  331. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  332. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  333. # # 'host' => 's3.amazonaws.com',
  334. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  335. # }
  336. ### Git LFS
  337. # gitlab_rails['lfs_enabled'] = true
  338. # gitlab_rails['lfs_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/lfs-objects"
  339. # gitlab_rails['lfs_object_store_enabled'] = false
  340. # gitlab_rails['lfs_object_store_proxy_download'] = false
  341. # gitlab_rails['lfs_object_store_remote_directory'] = "lfs-objects"
  342. # gitlab_rails['lfs_object_store_connection'] = {
  343. # 'provider' => 'AWS',
  344. # 'region' => 'eu-west-1',
  345. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  346. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  347. # # # The below options configure an S3 compatible host instead of AWS
  348. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  349. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  350. # # 'host' => 's3.amazonaws.com',
  351. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  352. # }
  353. ### GitLab uploads
  354. ###! Docs: https://docs.gitlab.com/ee/administration/uploads.html
  355. # gitlab_rails['uploads_directory'] = "/var/opt/gitlab/gitlab-rails/uploads"
  356. # gitlab_rails['uploads_storage_path'] = "/opt/gitlab/embedded/service/gitlab-rails/public"
  357. # gitlab_rails['uploads_base_dir'] = "uploads/-/system"
  358. # gitlab_rails['uploads_object_store_enabled'] = false
  359. # gitlab_rails['uploads_object_store_proxy_download'] = false
  360. # gitlab_rails['uploads_object_store_remote_directory'] = "uploads"
  361. # gitlab_rails['uploads_object_store_connection'] = {
  362. # 'provider' => 'AWS',
  363. # 'region' => 'eu-west-1',
  364. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  365. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  366. # # # The below options configure an S3 compatible host instead of AWS
  367. # # 'host' => 's3.amazonaws.com',
  368. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  369. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  370. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  371. # }
  372. ### Terraform state
  373. ###! Docs: https://docs.gitlab.com/ee/administration/terraform_state
  374. # gitlab_rails['terraform_state_enabled'] = true
  375. # gitlab_rails['terraform_state_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/terraform_state"
  376. # gitlab_rails['terraform_state_object_store_enabled'] = false
  377. # gitlab_rails['terraform_state_object_store_remote_directory'] = "terraform"
  378. # gitlab_rails['terraform_state_object_store_connection'] = {
  379. # 'provider' => 'AWS',
  380. # 'region' => 'eu-west-1',
  381. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  382. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  383. # # # The below options configure an S3 compatible host instead of AWS
  384. # # 'host' => 's3.amazonaws.com',
  385. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  386. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  387. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  388. # }
  389. ### CI Secure Files
  390. # gitlab_rails['ci_secure_files_enabled'] = false
  391. # gitlab_rails['ci_secure_files_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/ci_secure_files"
  392. # gitlab_rails['ci_secure_files_object_store_enabled'] = false
  393. # gitlab_rails['ci_secure_files_object_store_remote_directory'] = "ci-secure-files"
  394. # gitlab_rails['ci_secure_files_object_store_connection'] = {
  395. # 'provider' => 'AWS',
  396. # 'region' => 'eu-west-1',
  397. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  398. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  399. # # # The below options configure an S3 compatible host instead of AWS
  400. # # 'host' => 's3.amazonaws.com',
  401. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  402. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  403. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  404. # }
  405. ### GitLab Pages
  406. # gitlab_rails['pages_object_store_enabled'] = false
  407. # gitlab_rails['pages_object_store_remote_directory'] = "pages"
  408. # gitlab_rails['pages_object_store_connection'] = {
  409. # 'provider' => 'AWS',
  410. # 'region' => 'eu-west-1',
  411. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  412. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  413. # # # The below options configure an S3 compatible host instead of AWS
  414. # # 'host' => 's3.amazonaws.com',
  415. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  416. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  417. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  418. # }
  419. # gitlab_rails['pages_local_store_enabled'] = true
  420. # gitlab_rails['pages_local_store_path'] = "/var/opt/gitlab/gitlab-rails/shared/pages"
  421. ### Impersonation settings
  422. # gitlab_rails['impersonation_enabled'] = true
  423. ### Application settings cache expiry in seconds. (default: 60)
  424. # gitlab_rails['application_settings_cache_seconds'] = 60
  425. ### Usage Statistics
  426. # gitlab_rails['usage_ping_enabled'] = true
  427. ### GitLab Mattermost
  428. ###! These settings are void if Mattermost is installed on the same omnibus
  429. ###! install
  430. # gitlab_rails['mattermost_host'] = "https://mattermost.example.com"
  431. ### LDAP Settings
  432. ###! Docs: https://docs.gitlab.com/omnibus/settings/ldap.html
  433. ###! **Be careful not to break the indentation in the ldap_servers block. It is
  434. ###! in yaml format and the spaces must be retained. Using tabs will not work.**
  435. # gitlab_rails['ldap_enabled'] = false
  436. # gitlab_rails['prevent_ldap_sign_in'] = false
  437. ###! **remember to close this block with 'EOS' below**
  438. # gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
  439. # main: # 'main' is the GitLab 'provider ID' of this LDAP server
  440. # label: 'LDAP'
  441. # host: '_your_ldap_server'
  442. # port: 389
  443. # uid: 'sAMAccountName'
  444. # bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  445. # password: '_the_password_of_the_bind_user'
  446. # encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
  447. # verify_certificates: true
  448. # smartcard_auth: false
  449. # active_directory: true
  450. # allow_username_or_email_login: false
  451. # lowercase_usernames: false
  452. # block_auto_created_users: false
  453. # base: ''
  454. # user_filter: ''
  455. # ## EE only
  456. # group_base: ''
  457. # admin_group: ''
  458. # sync_ssh_keys: false
  459. #
  460. # secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
  461. # label: 'LDAP'
  462. # host: '_your_ldap_server'
  463. # port: 389
  464. # uid: 'sAMAccountName'
  465. # bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  466. # password: '_the_password_of_the_bind_user'
  467. # encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
  468. # verify_certificates: true
  469. # smartcard_auth: false
  470. # active_directory: true
  471. # allow_username_or_email_login: false
  472. # lowercase_usernames: false
  473. # block_auto_created_users: false
  474. # base: ''
  475. # user_filter: ''
  476. # ## EE only
  477. # group_base: ''
  478. # admin_group: ''
  479. # sync_ssh_keys: false
  480. # EOS
  481. ### Smartcard authentication settings
  482. ###! Docs: https://docs.gitlab.com/ee/administration/auth/smartcard.html
  483. # gitlab_rails['smartcard_enabled'] = false
  484. # gitlab_rails['smartcard_ca_file'] = "/etc/gitlab/ssl/CA.pem"
  485. # gitlab_rails['smartcard_client_certificate_required_host'] = 'smartcard.gitlab.example.com'
  486. # gitlab_rails['smartcard_client_certificate_required_port'] = 3444
  487. # gitlab_rails['smartcard_required_for_git_access'] = false
  488. # gitlab_rails['smartcard_san_extensions'] = false
  489. ### OmniAuth Settings
  490. ###! Docs: https://docs.gitlab.com/ee/integration/omniauth.html
  491. # gitlab_rails['omniauth_enabled'] = nil
  492. # gitlab_rails['omniauth_allow_single_sign_on'] = ['saml']
  493. # gitlab_rails['omniauth_sync_email_from_provider'] = 'saml'
  494. # gitlab_rails['omniauth_sync_profile_from_provider'] = ['saml']
  495. # gitlab_rails['omniauth_sync_profile_attributes'] = ['email']
  496. # gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'saml'
  497. # gitlab_rails['omniauth_block_auto_created_users'] = true
  498. # gitlab_rails['omniauth_auto_link_ldap_user'] = false
  499. # gitlab_rails['omniauth_auto_link_saml_user'] = false
  500. # gitlab_rails['omniauth_auto_link_user'] = ['saml']
  501. # gitlab_rails['omniauth_external_providers'] = ['twitter', 'google_oauth2']
  502. # gitlab_rails['omniauth_allow_bypass_two_factor'] = ['google_oauth2']
  503. # gitlab_rails['omniauth_providers'] = [
  504. # {
  505. # "name" => "google_oauth2",
  506. # "app_id" => "YOUR APP ID",
  507. # "app_secret" => "YOUR APP SECRET",
  508. # "args" => { "access_type" => "offline", "approval_prompt" => "" }
  509. # }
  510. # ]
  511. # gitlab_rails['omniauth_cas3_session_duration'] = 28800
  512. # gitlab_rails['omniauth_saml_message_max_byte_size'] = 250000
  513. ### FortiAuthenticator authentication settings
  514. # gitlab_rails['forti_authenticator_enabled'] = false
  515. # gitlab_rails['forti_authenticator_host'] = 'forti_authenticator.example.com'
  516. # gitlab_rails['forti_authenticator_port'] = 443
  517. # gitlab_rails['forti_authenticator_username'] = 'admin'
  518. # gitlab_rails['forti_authenticator_access_token'] = 's3cr3t'
  519. ### FortiToken Cloud authentication settings
  520. # gitlab_rails['forti_token_cloud_enabled'] = false
  521. # gitlab_rails['forti_token_cloud_client_id'] = 'forti_token_cloud_client_id'
  522. # gitlab_rails['forti_token_cloud_client_secret'] = 's3cr3t'
  523. ### Backup Settings
  524. ###! Docs: https://docs.gitlab.com/omnibus/settings/backups.html
  525. # gitlab_rails['manage_backup_path'] = true
  526. # gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
  527. # gitlab_rails['backup_gitaly_backup_path'] = "/opt/gitlab/embedded/bin/gitaly-backup"
  528. ###! Docs: https://docs.gitlab.com/ee/raketasks/backup_restore.html#backup-archive-permissions
  529. # gitlab_rails['backup_archive_permissions'] = 0644
  530. # gitlab_rails['backup_pg_schema'] = 'public'
  531. ###! The duration in seconds to keep backups before they are allowed to be deleted
  532. # gitlab_rails['backup_keep_time'] = 604800
  533. # gitlab_rails['backup_upload_connection'] = {
  534. # 'provider' => 'AWS',
  535. # 'region' => 'eu-west-1',
  536. # 'aws_access_key_id' => 'AKIAKIAKI',
  537. # 'aws_secret_access_key' => 'secret123',
  538. # # # If IAM profile use is enabled, remove aws_access_key_id and aws_secret_access_key
  539. # 'use_iam_profile' => false
  540. # }
  541. # gitlab_rails['backup_upload_remote_directory'] = 'my.s3.bucket'
  542. # gitlab_rails['backup_multipart_chunk_size'] = 104857600
  543. ###! **Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for
  544. ###! backups**
  545. # gitlab_rails['backup_encryption'] = 'AES256'
  546. ###! The encryption key to use with AWS Server-Side Encryption.
  547. ###! Setting this value will enable Server-Side Encryption with customer provided keys;
  548. ###! otherwise S3-managed keys are used.
  549. # gitlab_rails['backup_encryption_key'] = '<base64-encoded encryption key>'
  550. ###! **Turns on AWS Server-Side Encryption with Amazon SSE-KMS (AWS managed but customer-master key)
  551. # gitlab_rails['backup_upload_storage_options'] = {
  552. # 'server_side_encryption' => 'aws:kms',
  553. # 'server_side_encryption_kms_key_id' => 'arn:aws:kms:YOUR-KEY-ID-HERE'
  554. # }
  555. ###! **Specifies Amazon S3 storage class to use for backups. Valid values
  556. ###! include 'STANDARD', 'STANDARD_IA', and 'REDUCED_REDUNDANCY'**
  557. # gitlab_rails['backup_storage_class'] = 'STANDARD'
  558. ###! Skip parts of the backup. Comma separated.
  559. ###! Docs: https://docs.gitlab.com/ee/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup
  560. #gitlab_rails['env'] = {
  561. # "SKIP" => "db,uploads,repositories,builds,artifacts,lfs,registry,pages"
  562. #}
  563. ### For setting up different data storing directory
  564. ###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#store-git-data-in-an-alternative-directory
  565. ###! **If you want to use a single non-default directory to store git data use a
  566. ###! path that doesn't contain symlinks.**
  567. # git_data_dirs({
  568. # "default" => {
  569. # "path" => "/mnt/nfs-01/git-data"
  570. # }
  571. # })
  572. ### Gitaly settings
  573. # gitlab_rails['gitaly_token'] = 'secret token'
  574. ### For storing GitLab application uploads, eg. LFS objects, build artifacts
  575. ###! Docs: https://docs.gitlab.com/ee/development/shared_files.html
  576. # gitlab_rails['shared_path'] = '/var/opt/gitlab/gitlab-rails/shared'
  577. ### For storing encrypted configuration files
  578. ###! Docs: https://docs.gitlab.com/ee/administration/encrypted_configuration.html
  579. # gitlab_rails['encrypted_settings_path'] = '/var/opt/gitlab/gitlab-rails/shared/encrypted_settings'
  580. ### Wait for file system to be mounted
  581. ###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#only-start-omnibus-gitlab-services-after-a-given-file-system-is-mounted
  582. # high_availability['mountpoint'] = ["/var/opt/gitlab/git-data", "/var/opt/gitlab/gitlab-rails/shared"]
  583. ### GitLab Shell settings for GitLab
  584. # gitlab_rails['gitlab_shell_ssh_port'] = 22
  585. # gitlab_rails['gitlab_shell_git_timeout'] = 800
  586. ### Extra customization
  587. # gitlab_rails['extra_google_analytics_id'] = '_your_tracking_id'
  588. # gitlab_rails['extra_google_tag_manager_id'] = '_your_tracking_id'
  589. # gitlab_rails['extra_one_trust_id'] = '_your_one_trust_id'
  590. # gitlab_rails['extra_google_tag_manager_nonce_id'] = '_your_google_tag_manager_id'
  591. # gitlab_rails['extra_bizible'] = false
  592. # gitlab_rails['extra_matomo_url'] = '_your_matomo_url'
  593. # gitlab_rails['extra_matomo_site_id'] = '_your_matomo_site_id'
  594. # gitlab_rails['extra_matomo_disable_cookies'] = false
  595. ##! Docs: https://docs.gitlab.com/omnibus/settings/environment-variables.html
  596. # gitlab_rails['env'] = {
  597. # 'BUNDLE_GEMFILE' => "/opt/gitlab/embedded/service/gitlab-rails/Gemfile",
  598. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
  599. # }
  600. # gitlab_rails['rack_attack_git_basic_auth'] = {
  601. # 'enabled' => false,
  602. # 'ip_whitelist' => ["127.0.0.1"],
  603. # 'maxretry' => 10,
  604. # 'findtime' => 60,
  605. # 'bantime' => 3600
  606. # }
  607. # gitlab_rails['dir'] = "/var/opt/gitlab/gitlab-rails"
  608. # gitlab_rails['log_directory'] = "/var/log/gitlab/gitlab-rails"
  609. #### Change the initial default admin password and shared runner registration tokens.
  610. ####! **Only applicable on initial setup, changing these settings after database
  611. ####! is created and seeded won't yield any change.**
  612. # gitlab_rails['initial_root_password'] = "password"
  613. # gitlab_rails['initial_shared_runners_registration_token'] = "token"
  614. #### Toggle if root password should be printed to STDOUT during initialization
  615. # gitlab_rails['display_initial_root_password'] = false
  616. #### Toggle if initial root password should be written to /etc/gitlab/initial_root_password
  617. # gitlab_rails['store_initial_root_password'] = true
  618. #### Set path to an initial license to be used while bootstrapping GitLab.
  619. ####! **Only applicable on initial setup, future license updations need to be done via UI.
  620. ####! Updating the file specified in this path won't yield any change after the first reconfigure run.
  621. # gitlab_rails['initial_license_file'] = '/etc/gitlab/company.gitlab-license'
  622. #### Enable or disable automatic database migrations
  623. # gitlab_rails['auto_migrate'] = true
  624. #### This is advanced feature used by large gitlab deployments where loading
  625. #### whole RAILS env takes a lot of time.
  626. # gitlab_rails['rake_cache_clear'] = true
  627. ### GitLab database settings
  628. ###! Docs: https://docs.gitlab.com/omnibus/settings/database.html
  629. ###! **Only needed if you use an external database.**
  630. # gitlab_rails['db_adapter'] = "postgresql"
  631. # gitlab_rails['db_encoding'] = "unicode"
  632. # gitlab_rails['db_collation'] = nil
  633. # gitlab_rails['db_database'] = "gitlabhq_production"
  634. # gitlab_rails['db_username'] = "gitlab"
  635. # gitlab_rails['db_password'] = nil
  636. # gitlab_rails['db_host'] = nil
  637. # gitlab_rails['db_port'] = 5432
  638. # gitlab_rails['db_socket'] = nil
  639. # gitlab_rails['db_sslmode'] = nil
  640. # gitlab_rails['db_sslcompression'] = 0
  641. # gitlab_rails['db_sslrootcert'] = nil
  642. # gitlab_rails['db_sslcert'] = nil
  643. # gitlab_rails['db_sslkey'] = nil
  644. # gitlab_rails['db_prepared_statements'] = false
  645. # gitlab_rails['db_statements_limit'] = 1000
  646. # gitlab_rails['db_connect_timeout'] = nil
  647. # gitlab_rails['db_keepalives'] = nil
  648. # gitlab_rails['db_keepalives_idle'] = nil
  649. # gitlab_rails['db_keepalives_interval'] = nil
  650. # gitlab_rails['db_keepalives_count'] = nil
  651. # gitlab_rails['db_tcp_user_timeout'] = nil
  652. # gitlab_rails['db_application_name'] = nil
  653. # gitlab_rails['db_database_tasks'] = true
  654. ### GitLab Redis settings
  655. ###! Connect to your own Redis instance
  656. ###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
  657. #### Redis TCP connection
  658. # gitlab_rails['redis_host'] = "127.0.0.1"
  659. # gitlab_rails['redis_port'] = 6379
  660. # gitlab_rails['redis_ssl'] = false
  661. # gitlab_rails['redis_password'] = nil
  662. # gitlab_rails['redis_database'] = 0
  663. # gitlab_rails['redis_enable_client'] = true
  664. #### Redis local UNIX socket (will be disabled if TCP method is used)
  665. # gitlab_rails['redis_socket'] = "/var/opt/gitlab/redis/redis.socket"
  666. #### Sentinel support
  667. ####! To have Sentinel working, you must enable Redis TCP connection support
  668. ####! above and define a few Sentinel hosts below (to get a reliable setup
  669. ####! at least 3 hosts).
  670. ####! **You don't need to list every sentinel host, but the ones not listed will
  671. ####! not be used in a fail-over situation to query for the new master.**
  672. # gitlab_rails['redis_sentinels'] = [
  673. # {'host' => '127.0.0.1', 'port' => 26379},
  674. # ]
  675. #### Separate instances support
  676. ###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html#running-with-multiple-redis-instances
  677. # gitlab_rails['redis_cache_instance'] = nil
  678. # gitlab_rails['redis_cache_sentinels'] = nil
  679. # gitlab_rails['redis_queues_instance'] = nil
  680. # gitlab_rails['redis_queues_sentinels'] = nil
  681. # gitlab_rails['redis_shared_state_instance'] = nil
  682. # gitlab_rails['redis_shared_state_sentinels'] = nil
  683. # gitlab_rails['redis_trace_chunks_instance'] = nil
  684. # gitlab_rails['redis_trace_chunks_sentinels'] = nil
  685. # gitlab_rails['redis_actioncable_instance'] = nil
  686. # gitlab_rails['redis_actioncable_sentinels'] = nil
  687. # gitlab_rails['redis_rate_limiting_instance'] = nil
  688. # gitlab_rails['redis_rate_limiting_sentinels'] = nil
  689. # gitlab_rails['redis_sessions_instance'] = nil
  690. # gitlab_rails['redis_sessions_sentinels'] = nil
  691. ################################################################################
  692. ## Container Registry settings
  693. ##! Docs: https://docs.gitlab.com/ee/administration/packages/container_registry.html
  694. ################################################################################
  695. # registry_external_url 'https://registry.example.com'
  696. ### Settings used by GitLab application
  697. # gitlab_rails['registry_enabled'] = true
  698. # gitlab_rails['registry_host'] = "registry.gitlab.example.com"
  699. # gitlab_rails['registry_port'] = "5005"
  700. # gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
  701. # Notification secret, it's used to authenticate notification requests to GitLab application
  702. # You only need to change this when you use external Registry service, otherwise
  703. # it will be taken directly from notification settings of your Registry
  704. # gitlab_rails['registry_notification_secret'] = nil
  705. ###! **Do not change the following 3 settings unless you know what you are
  706. ###! doing**
  707. # gitlab_rails['registry_api_url'] = "http://127.0.0.1:5000"
  708. # gitlab_rails['registry_key_path'] = "/var/opt/gitlab/gitlab-rails/certificate.key"
  709. # gitlab_rails['registry_issuer'] = "omnibus-gitlab-issuer"
  710. ### Settings used by Registry application
  711. # registry['enable'] = true
  712. # registry['username'] = "registry"
  713. # registry['group'] = "registry"
  714. # registry['uid'] = nil
  715. # registry['gid'] = nil
  716. # registry['dir'] = "/var/opt/gitlab/registry"
  717. # registry['registry_http_addr'] = "127.0.0.1:5000"
  718. # registry['debug_addr'] = "localhost:5001"
  719. # registry['log_directory'] = "/var/log/gitlab/registry"
  720. # registry['env_directory'] = "/opt/gitlab/etc/registry/env"
  721. # registry['env'] = {
  722. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  723. # }
  724. # registry['log_level'] = "info"
  725. # registry['log_formatter'] = "text"
  726. # registry['rootcertbundle'] = "/var/opt/gitlab/registry/certificate.crt"
  727. # registry['health_storagedriver_enabled'] = true
  728. # registry['middleware'] = nil
  729. # registry['storage_delete_enabled'] = true
  730. # registry['validation_enabled'] = false
  731. # registry['autoredirect'] = false
  732. # registry['compatibility_schema1_enabled'] = false
  733. ### Registry backend storage
  734. ###! Docs: https://docs.gitlab.com/ee/administration/packages/container_registry.html#configure-storage-for-the-container-registry
  735. # registry['storage'] = {
  736. # 's3' => {
  737. # 'accesskey' => 's3-access-key',
  738. # 'secretkey' => 's3-secret-key-for-access-key',
  739. # 'bucket' => 'your-s3-bucket',
  740. # 'region' => 'your-s3-region',
  741. # 'regionendpoint' => 'your-s3-regionendpoint'
  742. # },
  743. # 'redirect' => {
  744. # 'disable' => false
  745. # }
  746. # }
  747. ### Registry notifications endpoints
  748. # registry['notifications'] = [
  749. # {
  750. # 'name' => 'test_endpoint',
  751. # 'url' => 'https://gitlab.example.com/notify2',
  752. # 'timeout' => '500ms',
  753. # 'threshold' => 5,
  754. # 'backoff' => '1s',
  755. # 'headers' => {
  756. # "Authorization" => ["AUTHORIZATION_EXAMPLE_TOKEN"]
  757. # }
  758. # }
  759. # ]
  760. ### Default registry notifications
  761. # registry['default_notifications_timeout'] = "500ms"
  762. # registry['default_notifications_threshold'] = 5
  763. # registry['default_notifications_backoff'] = "1s"
  764. # registry['default_notifications_headers'] = {}
  765. ################################################################################
  766. ## Error Reporting and Logging with Sentry
  767. ################################################################################
  768. # gitlab_rails['sentry_enabled'] = false
  769. # gitlab_rails['sentry_dsn'] = 'https://<key>@sentry.io/<project>'
  770. # gitlab_rails['sentry_clientside_dsn'] = 'https://<key>@sentry.io/<project>'
  771. # gitlab_rails['sentry_environment'] = 'production'
  772. ################################################################################
  773. ## CI_JOB_JWT
  774. ################################################################################
  775. ##! RSA private key used to sign CI_JOB_JWT
  776. # gitlab_rails['ci_jwt_signing_key'] = nil # Will be generated if not set.
  777. ################################################################################
  778. ## GitLab Workhorse
  779. ##! Docs: https://gitlab.com/gitlab-org/gitlab/-/blob/master/workhorse/README.md
  780. ################################################################################
  781. # gitlab_workhorse['enable'] = true
  782. # gitlab_workhorse['ha'] = false
  783. # gitlab_workhorse['alt_document_root'] = nil
  784. ##! Duration to wait for all requests to finish (e.g. "10s" for 10
  785. ##! seconds). By default this is disabled to preserve the existing
  786. ##! behavior of fast shutdown. This should not be set higher than 30
  787. ##! seconds, since gitlab-ctl will wait up to 30 seconds (as defined by
  788. ##! the SVWAIT variable) and report a timeout error if the process has
  789. ##! not shut down.
  790. # gitlab_workhorse['shutdown_timeout'] = nil
  791. # gitlab_workhorse['listen_network'] = "unix"
  792. # gitlab_workhorse['listen_umask'] = 000
  793. # gitlab_workhorse['listen_addr'] = "/var/opt/gitlab/gitlab-workhorse/sockets/socket"
  794. # gitlab_workhorse['auth_backend'] = "http://localhost:8080"
  795. ##! Enable Redis keywatcher, if this setting is not present it defaults to true
  796. # gitlab_workhorse['workhorse_keywatcher'] = true
  797. ##! the empty string is the default in gitlab-workhorse option parser
  798. # gitlab_workhorse['auth_socket'] = "''"
  799. ##! put an empty string on the command line
  800. # gitlab_workhorse['pprof_listen_addr'] = "''"
  801. # gitlab_workhorse['prometheus_listen_addr'] = "localhost:9229"
  802. # gitlab_workhorse['dir'] = "/var/opt/gitlab/gitlab-workhorse"
  803. # gitlab_workhorse['log_directory'] = "/var/log/gitlab/gitlab-workhorse"
  804. # gitlab_workhorse['proxy_headers_timeout'] = "1m0s"
  805. ##! limit number of concurrent API requests, defaults to 0 which is unlimited
  806. # gitlab_workhorse['api_limit'] = 0
  807. ##! limit number of API requests allowed to be queued, defaults to 0 which
  808. ##! disables queuing
  809. # gitlab_workhorse['api_queue_limit'] = 0
  810. ##! duration after which we timeout requests if they sit too long in the queue
  811. # gitlab_workhorse['api_queue_duration'] = "30s"
  812. ##! Long polling duration for job requesting for runners
  813. # gitlab_workhorse['api_ci_long_polling_duration'] = "60s"
  814. ##! Propagate X-Request-Id if available. Workhorse will generate a random value otherwise.
  815. # gitlab_workhorse['propagate_correlation_id'] = false
  816. ##! A list of CIDR blocks to allow for propagation of correlation ID.
  817. ##! propagate_correlation_id should also be set to true.
  818. ##! For example: %w(127.0.0.1/32 192.168.0.1/32)
  819. # gitlab_workhorse['trusted_cidrs_for_propagation'] = nil
  820. ##! A list of CIDR blocks that must match remote IP addresses to use
  821. ##! X-Forwarded-For HTTP header for the actual client IP. Used in
  822. ##! conjuction with propagate_correlation_id and
  823. ##! trusted_cidrs_for_propagation.
  824. ##! For example: %w(127.0.0.1/32 192.168.0.1/32)
  825. # gitlab_workhorse['trusted_cidrs_for_x_forwarded_for'] = nil
  826. ##! Log format: default is json, can also be text or none.
  827. # gitlab_workhorse['log_format'] = "json"
  828. # gitlab_workhorse['env_directory'] = "/opt/gitlab/etc/gitlab-workhorse/env"
  829. # gitlab_workhorse['env'] = {
  830. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
  831. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  832. # }
  833. ##! Resource limitations for the dynamic image scaler.
  834. ##! Exceeding these thresholds will cause Workhorse to serve images in their original size.
  835. ##!
  836. ##! Maximum number of scaler processes that are allowed to execute concurrently.
  837. ##! It is recommended for this not to exceed the number of CPUs available.
  838. # gitlab_workhorse['image_scaler_max_procs'] = 4
  839. ##!
  840. ##! Maximum file size in bytes for an image to be considered eligible for rescaling
  841. # gitlab_workhorse['image_scaler_max_filesize'] = 250000
  842. ##! Service name used to register GitLab Workhorse as a Consul service
  843. # gitlab_workhorse['consul_service_name'] = 'workhorse'
  844. ##! Semantic metadata used when registering GitLab Workhorse as a Consul service
  845. # gitlab_workhorse['consul_service_meta'] = {}
  846. ################################################################################
  847. ## GitLab User Settings
  848. ##! Modify default git user.
  849. ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#changing-the-name-of-the-git-user-group
  850. ################################################################################
  851. # user['username'] = "git"
  852. # user['group'] = "git"
  853. # user['uid'] = nil
  854. # user['gid'] = nil
  855. ##! The shell for the git user
  856. # user['shell'] = "/bin/sh"
  857. ##! The home directory for the git user
  858. # user['home'] = "/var/opt/gitlab"
  859. # user['git_user_name'] = "GitLab"
  860. # user['git_user_email'] = "gitlab@#{node['fqdn']}"
  861. ################################################################################
  862. ## GitLab Puma
  863. ##! Tweak puma settings.
  864. ##! Docs: https://docs.gitlab.com/ee/administration/operations/puma.html
  865. ################################################################################
  866. # puma['enable'] = true
  867. # puma['ha'] = false
  868. puma['worker_timeout'] = 30
  869. puma['worker_processes'] = 2
  870. # puma['min_threads'] = 4
  871. # puma['max_threads'] = 4
  872. ### Advanced settings
  873. # puma['listen'] = '127.0.0.1'
  874. # puma['port'] = 8080
  875. # puma['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  876. # puma['somaxconn'] = 1024
  877. ### SSL settings
  878. # puma['ssl_listen'] = nil
  879. # puma['ssl_port'] = nil
  880. # puma['ssl_certificate'] = nil
  881. # puma['ssl_certificate_key'] = nil
  882. # puma['ssl_client_certificate'] = nil
  883. # puma['ssl_cipher_filter'] = nil
  884. # puma['ssl_verify_mode'] = 'none'
  885. # puma['pidfile'] = '/opt/gitlab/var/puma/puma.pid'
  886. # puma['state_path'] = '/opt/gitlab/var/puma/puma.state'
  887. ###! **We do not recommend changing this setting**
  888. # puma['log_directory'] = "/var/log/gitlab/puma"
  889. ### **Only change these settings if you understand well what they mean**
  890. ###! Docs: https://github.com/schneems/puma_worker_killer
  891. puma['per_worker_max_memory_mb'] = 600
  892. # puma['exporter_enabled'] = false
  893. # puma['exporter_address'] = "127.0.0.1"
  894. # puma['exporter_port'] = 8083
  895. # puma['exporter_tls_enabled'] = false
  896. # puma['exporter_tls_cert_path'] = ""
  897. # puma['exporter_tls_key_path'] = ""
  898. # puma['prometheus_scrape_scheme'] = 'http'
  899. # puma['prometheus_scrape_tls_server_name'] = 'localhost'
  900. # puma['prometheus_scrape_tls_skip_verification'] = false
  901. ##! Service name used to register Puma as a Consul service
  902. # puma['consul_service_name'] = 'rails'
  903. ##! Semantic metadata used when registering Puma as a Consul service
  904. # puma['consul_service_meta'] = {}
  905. ################################################################################
  906. ## GitLab Sidekiq
  907. ################################################################################
  908. ##! GitLab allows one to start multiple sidekiq processes. These
  909. ##! processes can be used to consume a dedicated set of queues. This
  910. ##! can be used to ensure certain queues are able to handle additional workload.
  911. ##! https://docs.gitlab.com/ee/administration/operations/extra_sidekiq_processes.html
  912. # sidekiq['log_directory'] = "/var/log/gitlab/sidekiq"
  913. # sidekiq['log_format'] = "json"
  914. # sidekiq['shutdown_timeout'] = 4
  915. # sidekiq['queue_selector'] = false
  916. # sidekiq['interval'] = nil
  917. sidekiq['max_concurrency'] = 8
  918. # sidekiq['min_concurrency'] = nil
  919. ##! GitLab allows route a job to a particular queue determined by an array of ##! routing rules.
  920. ##! Each routing rule is a tuple of queue selector query and corresponding queue. By default,
  921. ##! the routing rules are not configured (empty array)
  922. # sidekiq['routing_rules'] = []
  923. ##! Each entry in the queue_groups array denotes a group of queues that have to be processed by a
  924. ##! Sidekiq process. Multiple queues can be processed by the same process by
  925. ##! separating them with a comma within the group entry, a `*` will process all queues
  926. # sidekiq['queue_groups'] = ['*']
  927. ##! If negate is enabled then Sidekiq will process all the queues that
  928. ##! don't match those in queue_groups.
  929. # sidekiq['negate'] = false
  930. ##! Specifies where Prometheus metrics endpoints should be made available for Sidekiq processes.
  931. # sidekiq['metrics_enabled'] = true
  932. # sidekiq['exporter_log_enabled'] = false
  933. # sidekiq['exporter_tls_enabled'] = false
  934. # sidekiq['exporter_tls_cert_path'] = ""
  935. # sidekiq['exporter_tls_key_path'] = ""
  936. # sidekiq['listen_address'] = "localhost"
  937. # sidekiq['listen_port'] = 8082
  938. ##! Specifies where health-check endpoints should be made available for Sidekiq processes.
  939. ##! Defaults to the same settings as for Prometheus metrics (see above).
  940. # sidekiq['health_checks_enabled'] = true
  941. # sidekiq['health_checks_listen_address'] = "localhost"
  942. # sidekiq['health_checks_listen_port'] = 8092
  943. ##! Service name used to register Sidekiq as a Consul service
  944. # sidekiq['consul_service_name'] = 'sidekiq'
  945. ##! Semantic metadata used when registering Sidekiq as a Consul service
  946. # sidekiq['consul_service_meta'] = {}
  947. ################################################################################
  948. ## gitlab-shell
  949. ################################################################################
  950. # gitlab_shell['audit_usernames'] = false
  951. # gitlab_shell['log_level'] = 'INFO'
  952. # gitlab_shell['log_format'] = 'json'
  953. # gitlab_shell['http_settings'] = { user: 'username', password: 'password', ca_file: '/etc/ssl/cert.pem', ca_path: '/etc/pki/tls/certs'}
  954. # gitlab_shell['log_directory'] = "/var/log/gitlab/gitlab-shell/"
  955. # gitlab_shell['auth_file'] = "/var/opt/gitlab/.ssh/authorized_keys"
  956. ### Migration to Go feature flags
  957. ###! Docs: https://gitlab.com/gitlab-org/gitlab-shell#migration-to-go-feature-flags
  958. # gitlab_shell['migration'] = { enabled: true, features: [] }
  959. ### Git trace log file.
  960. ###! If set, git commands receive GIT_TRACE* environment variables
  961. ###! Docs: https://git-scm.com/book/es/v2/Git-Internals-Environment-Variables#Debugging
  962. ###! An absolute path starting with / – the trace output will be appended to
  963. ###! that file. It needs to exist so we can check permissions and avoid
  964. ###! throwing warnings to the users.
  965. # gitlab_shell['git_trace_log_file'] = "/var/log/gitlab/gitlab-shell/gitlab-shell-git-trace.log"
  966. ##! **We do not recommend changing this directory.**
  967. # gitlab_shell['dir'] = "/var/opt/gitlab/gitlab-shell"
  968. ################################################################
  969. ## GitLab PostgreSQL
  970. ################################################################
  971. ###! Changing any of these settings requires a restart of postgresql.
  972. ###! By default, reconfigure reloads postgresql if it is running. If you
  973. ###! change any of these settings, be sure to run `gitlab-ctl restart postgresql`
  974. ###! after reconfigure in order for the changes to take effect.
  975. # postgresql['enable'] = true
  976. # postgresql['listen_address'] = nil
  977. # postgresql['port'] = 5432
  978. ## Only used when Patroni is enabled. This is the port that PostgreSQL responds to other
  979. ## cluster members. This port is used by Patroni to advertize the PostgreSQL connection
  980. ## endpoint to the cluster. By default it is the same as postgresql['port'].
  981. # postgresql['connect_port'] = 5432
  982. ##! **recommend value is 1/4 of total RAM, up to 14GB.**
  983. postgresql['shared_buffers'] = "256MB"
  984. ### Advanced settings
  985. # postgresql['ha'] = false
  986. # postgresql['dir'] = "/var/opt/gitlab/postgresql"
  987. # postgresql['log_directory'] = "/var/log/gitlab/postgresql"
  988. # postgresql['log_destination'] = nil
  989. # postgresql['logging_collector'] = nil
  990. # postgresql['log_truncate_on_rotation'] = nil
  991. # postgresql['log_rotation_age'] = nil
  992. # postgresql['log_rotation_size'] = nil
  993. ##! 'username' affects the system and PostgreSQL user accounts created during installation and cannot be changed
  994. ##! on an existing installation. See https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/3606 for more details.
  995. # postgresql['username'] = "gitlab-psql"
  996. # postgresql['group'] = "gitlab-psql"
  997. ##! `SQL_USER_PASSWORD_HASH` can be generated using the command `gitlab-ctl pg-password-md5 gitlab`
  998. # postgresql['sql_user_password'] = 'SQL_USER_PASSWORD_HASH'
  999. # postgresql['uid'] = nil
  1000. # postgresql['gid'] = nil
  1001. # postgresql['shell'] = "/bin/sh"
  1002. # postgresql['home'] = "/var/opt/gitlab/postgresql"
  1003. # postgresql['user_path'] = "/opt/gitlab/embedded/bin:/opt/gitlab/bin:$PATH"
  1004. # postgresql['sql_user'] = "gitlab"
  1005. # postgresql['max_connections'] = 200
  1006. # postgresql['md5_auth_cidr_addresses'] = []
  1007. # postgresql['trust_auth_cidr_addresses'] = []
  1008. # postgresql['wal_buffers'] = "-1"
  1009. # postgresql['autovacuum_max_workers'] = "3"
  1010. # postgresql['autovacuum_freeze_max_age'] = "200000000"
  1011. # postgresql['log_statement'] = nil
  1012. # postgresql['track_activity_query_size'] = "1024"
  1013. # postgresql['shared_preload_libraries'] = nil
  1014. # postgresql['dynamic_shared_memory_type'] = nil
  1015. # postgresql['hot_standby'] = "off"
  1016. ### SSL settings
  1017. # See https://www.postgresql.org/docs/12/static/runtime-config-connection.html#GUC-SSL-CERT-FILE for more details
  1018. # postgresql['ssl'] = 'on'
  1019. # postgresql['hostssl'] = false
  1020. # postgresql['ssl_ciphers'] = 'HIGH:MEDIUM:+3DES:!aNULL:!SSLv3:!TLSv1'
  1021. # postgresql['ssl_cert_file'] = 'server.crt'
  1022. # postgresql['ssl_key_file'] = 'server.key'
  1023. # postgresql['ssl_ca_file'] = '/opt/gitlab/embedded/ssl/certs/cacert.pem'
  1024. # postgresql['ssl_crl_file'] = nil
  1025. # postgresql['cert_auth_addresses'] = {
  1026. # 'ADDRESS' => {
  1027. # database: 'gitlabhq_production',
  1028. # user: 'gitlab'
  1029. # }
  1030. # }
  1031. ### Replication settings
  1032. ###! Note, some replication settings do not require a full restart. They are documented below.
  1033. # postgresql['wal_level'] = "hot_standby"
  1034. # postgresql['wal_log_hints'] = 'off'
  1035. # postgresql['max_wal_senders'] = 5
  1036. # postgresql['max_replication_slots'] = 0
  1037. # postgresql['max_locks_per_transaction'] = 128
  1038. # Backup/Archive settings
  1039. # postgresql['archive_mode'] = "off"
  1040. ###! Changing any of these settings only requires a reload of postgresql. You do not need to
  1041. ###! restart postgresql if you change any of these and run reconfigure.
  1042. # postgresql['work_mem'] = "16MB"
  1043. # postgresql['maintenance_work_mem'] = "16MB"
  1044. # postgresql['checkpoint_timeout'] = "5min"
  1045. # postgresql['checkpoint_completion_target'] = 0.9
  1046. # postgresql['effective_io_concurrency'] = 1
  1047. # postgresql['checkpoint_warning'] = "30s"
  1048. # postgresql['effective_cache_size'] = "1MB"
  1049. # postgresql['shmmax'] = 17179869184 # or 4294967295
  1050. # postgresql['shmall'] = 4194304 # or 1048575
  1051. # postgresql['autovacuum'] = "on"
  1052. # postgresql['log_autovacuum_min_duration'] = "-1"
  1053. # postgresql['autovacuum_naptime'] = "1min"
  1054. # postgresql['autovacuum_vacuum_threshold'] = "50"
  1055. # postgresql['autovacuum_analyze_threshold'] = "50"
  1056. # postgresql['autovacuum_vacuum_scale_factor'] = "0.02"
  1057. # postgresql['autovacuum_analyze_scale_factor'] = "0.01"
  1058. # postgresql['autovacuum_vacuum_cost_delay'] = "20ms"
  1059. # postgresql['autovacuum_vacuum_cost_limit'] = "-1"
  1060. # postgresql['statement_timeout'] = "60000"
  1061. # postgresql['idle_in_transaction_session_timeout'] = "60000"
  1062. # postgresql['log_line_prefix'] = "%a"
  1063. postgresql['max_worker_processes'] = 4
  1064. # postgresql['max_parallel_workers_per_gather'] = 0
  1065. # postgresql['log_lock_waits'] = 1
  1066. # postgresql['deadlock_timeout'] = '5s'
  1067. # postgresql['track_io_timing'] = 0
  1068. # postgresql['default_statistics_target'] = 1000
  1069. ### Available in PostgreSQL 9.6 and later
  1070. # postgresql['min_wal_size'] = "80MB"
  1071. # postgresql['max_wal_size'] = "1GB"
  1072. # Backup/Archive settings
  1073. # postgresql['archive_command'] = nil
  1074. # postgresql['archive_timeout'] = "0"
  1075. ### Replication settings
  1076. # postgresql['sql_replication_user'] = "gitlab_replicator"
  1077. # postgresql['sql_replication_password'] = "md5 hash of postgresql password" # You can generate with `gitlab-ctl pg-password-md5 <dbuser>`
  1078. # postgresql['wal_keep_segments'] = 10
  1079. # postgresql['max_standby_archive_delay'] = "30s"
  1080. # postgresql['max_standby_streaming_delay'] = "30s"
  1081. # postgresql['synchronous_commit'] = on
  1082. # postgresql['synchronous_standby_names'] = ''
  1083. # postgresql['hot_standby_feedback'] = 'off'
  1084. # postgresql['random_page_cost'] = 2.0
  1085. # postgresql['log_temp_files'] = -1
  1086. # postgresql['log_checkpoints'] = 'off'
  1087. # To add custom entries to pg_hba.conf use the following
  1088. # postgresql['custom_pg_hba_entries'] = {
  1089. # APPLICATION: [ # APPLICATION should identify what the settings are used for
  1090. # {
  1091. # type: example,
  1092. # database: example,
  1093. # user: example,
  1094. # cidr: example,
  1095. # method: example,
  1096. # option: example
  1097. # }
  1098. # ]
  1099. # }
  1100. # See https://www.postgresql.org/docs/12/static/auth-pg-hba-conf.html for an explanation
  1101. # of the values
  1102. ### Version settings
  1103. # Set this if you have disabled the bundled PostgreSQL but still want to use the backup rake tasks
  1104. # postgresql['version'] = 10
  1105. ##! Automatically restart PostgreSQL service when version changes.
  1106. # postgresql['auto_restart_on_version_change'] = true
  1107. ################################################################################
  1108. ## GitLab Redis
  1109. ##! **Can be disabled if you are using your own Redis instance.**
  1110. ##! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
  1111. ################################################################################
  1112. # redis['enable'] = true
  1113. # redis['ha'] = false
  1114. # redis['hz'] = 10
  1115. # redis['dir'] = "/var/opt/gitlab/redis"
  1116. # redis['log_directory'] = "/var/log/gitlab/redis"
  1117. # redis['username'] = "gitlab-redis"
  1118. # redis['group'] = "gitlab-redis"
  1119. # redis['maxclients'] = "10000"
  1120. # redis['maxmemory'] = "0"
  1121. # redis['maxmemory_policy'] = "noeviction"
  1122. # redis['maxmemory_samples'] = "5"
  1123. # redis['stop_writes_on_bgsave_error'] = true
  1124. # redis['tcp_backlog'] = 511
  1125. # redis['tcp_timeout'] = "60"
  1126. # redis['tcp_keepalive'] = "300"
  1127. # redis['uid'] = nil
  1128. # redis['gid'] = nil
  1129. ### Redis TLS settings
  1130. ###! To run Redis over TLS, specify values for the following settings
  1131. # redis['tls_port'] = nil
  1132. # redis['tls_cert_file'] = nil
  1133. # redis['tls_key_file'] = nil
  1134. ###! Other TLS related optional settings
  1135. # redis['tls_dh_params_file'] = nil
  1136. # redis['tls_ca_cert_dir'] = '/opt/gitlab/embedded/ssl/certs/'
  1137. # redis['tls_ca_cert_file'] = '/opt/gitlab/embedded/ssl/certs/cacert.pem'
  1138. # redis['tls_auth_clients'] = 'optional'
  1139. # redis['tls_replication'] = nil
  1140. # redis['tls_cluster'] = nil
  1141. # redis['tls_protocols'] = nil
  1142. # redis['tls_ciphers'] = nil
  1143. # redis['tls_ciphersuites'] = nil
  1144. # redis['tls_prefer_server_ciphers'] = nil
  1145. # redis['tls_session_caching'] = nil
  1146. # redis['tls_session_cache_size'] = nil
  1147. # redis['tls_session_cache_timeout'] = nil
  1148. ### Disable or obfuscate unnecessary redis command names
  1149. ### Uncomment and edit this block to add or remove entries.
  1150. ### See https://docs.gitlab.com/omnibus/settings/redis.html#renamed-commands
  1151. ### for detailed usage
  1152. ###
  1153. # redis['rename_commands'] = {
  1154. # 'KEYS': ''
  1155. #}
  1156. #
  1157. ###! **To enable only Redis service in this machine, uncomment
  1158. ###! one of the lines below (choose master or replica instance types).**
  1159. ###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
  1160. ###! https://docs.gitlab.com/ee/administration/high_availability/redis.html
  1161. # redis_master_role['enable'] = true
  1162. # redis_replica_role['enable'] = true
  1163. ### Redis TCP support (will disable UNIX socket transport)
  1164. # redis['bind'] = '0.0.0.0' # or specify an IP to bind to a single one
  1165. # redis['port'] = 6379
  1166. # redis['password'] = 'redis-password-goes-here'
  1167. ### Redis Sentinel support
  1168. ###! **You need a master replica Redis replication to be able to do failover**
  1169. ###! **Please read the documentation before enabling it to understand the
  1170. ###! caveats:**
  1171. ###! Docs: https://docs.gitlab.com/ee/administration/high_availability/redis.html
  1172. ### Replication support
  1173. #### Replica Redis instance
  1174. # redis['master'] = false # by default this is true
  1175. #### Replica and Sentinel shared configuration
  1176. ####! **Both need to point to the master Redis instance to get replication and
  1177. ####! heartbeat monitoring**
  1178. # redis['master_name'] = 'gitlab-redis'
  1179. # redis['master_ip'] = nil
  1180. # redis['master_port'] = 6379
  1181. #### Support to run redis replicas in a Docker or NAT environment
  1182. ####! Docs: https://redis.io/topics/replication#configuring-replication-in-docker-and-nat
  1183. # redis['announce_ip'] = nil
  1184. # redis['announce_port'] = nil
  1185. # redis['announce_ip_from_hostname'] = false
  1186. ####! **Master password should have the same value defined in
  1187. ####! redis['password'] to enable the instance to transition to/from
  1188. ####! master/replica in a failover event.**
  1189. # redis['master_password'] = 'redis-password-goes-here'
  1190. ####! Increase these values when your replicas can't catch up with master
  1191. # redis['client_output_buffer_limit_normal'] = '0 0 0'
  1192. # redis['client_output_buffer_limit_replica'] = '256mb 64mb 60'
  1193. # redis['client_output_buffer_limit_pubsub'] = '32mb 8mb 60'
  1194. #####! Redis snapshotting frequency
  1195. #####! Set to [] to disable
  1196. #####! Set to [''] to clear previously set values
  1197. # redis['save'] = [ '900 1', '300 10', '60 10000' ]
  1198. #####! Redis lazy freeing
  1199. #####! Defaults to false
  1200. # redis['lazyfree_lazy_eviction'] = true
  1201. # redis['lazyfree_lazy_expire'] = true
  1202. # redis['lazyfree_lazy_server_del'] = true
  1203. # redis['replica_lazy_flush'] = true
  1204. #####! Redis threaded I/O
  1205. #####! Defaults to disabled
  1206. # redis['io_threads'] = 4
  1207. # redis['io_threads_do_reads'] = true
  1208. ################################################################################
  1209. ## GitLab Web server
  1210. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#using-a-non-bundled-web-server
  1211. ################################################################################
  1212. ##! When bundled nginx is disabled we need to add the external webserver user to
  1213. ##! the GitLab webserver group.
  1214. # web_server['external_users'] = []
  1215. # web_server['username'] = 'gitlab-www'
  1216. # web_server['group'] = 'gitlab-www'
  1217. # web_server['uid'] = nil
  1218. # web_server['gid'] = nil
  1219. # web_server['shell'] = '/bin/false'
  1220. # web_server['home'] = '/var/opt/gitlab/nginx'
  1221. ################################################################################
  1222. ## GitLab NGINX
  1223. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html
  1224. ################################################################################
  1225. # nginx['enable'] = true
  1226. # nginx['client_max_body_size'] = '250m'
  1227. # nginx['redirect_http_to_https'] = false
  1228. # nginx['redirect_http_to_https_port'] = 80
  1229. ##! Most root CA's are included by default
  1230. # nginx['ssl_client_certificate'] = "/etc/gitlab/ssl/ca.crt"
  1231. ##! enable/disable 2-way SSL client authentication
  1232. # nginx['ssl_verify_client'] = "off"
  1233. ##! if ssl_verify_client on, verification depth in the client certificates chain
  1234. # nginx['ssl_verify_depth'] = "1"
  1235. # nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
  1236. # nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
  1237. # nginx['ssl_ciphers'] = "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384"
  1238. # nginx['ssl_prefer_server_ciphers'] = "off"
  1239. ##! **Recommended by: https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
  1240. ##! https://cipherli.st/**
  1241. # nginx['ssl_protocols'] = "TLSv1.2 TLSv1.3"
  1242. ##! **Recommended in: https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
  1243. # nginx['ssl_session_cache'] = "shared:SSL:10m"
  1244. ##! **Recommended in: https://ssl-config.mozilla.org/#server=nginx&version=1.17.7&config=intermediate&openssl=1.1.1d&ocsp=false&guideline=5.6**
  1245. # nginx['ssl_session_tickets'] = "off"
  1246. ##! **Default according to https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
  1247. # nginx['ssl_session_timeout'] = "1d"
  1248. # nginx['ssl_dhparam'] = nil # Path to dhparams.pem, eg. /etc/gitlab/ssl/dhparams.pem
  1249. # nginx['ssl_password_file'] = nil # Path to file with passphrases for ssl certificate secret keys
  1250. # nginx['listen_addresses'] = ['*', '[::]']
  1251. ##! **Defaults to forcing web browsers to always communicate using only HTTPS**
  1252. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-http-strict-transport-security
  1253. # nginx['hsts_max_age'] = 63072000
  1254. # nginx['hsts_include_subdomains'] = false
  1255. ##! Defaults to stripping path information when making cross-origin requests
  1256. # nginx['referrer_policy'] = 'strict-origin-when-cross-origin'
  1257. ##! **Docs: http://nginx.org/en/docs/http/ngx_http_gzip_module.html**
  1258. # nginx['gzip_enabled'] = true
  1259. ##! **Override only if you use a reverse proxy**
  1260. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-the-nginx-listen-port
  1261. # nginx['listen_port'] = nil
  1262. ##! **Override only if your reverse proxy internally communicates over HTTP**
  1263. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#supporting-proxied-ssl
  1264. # nginx['listen_https'] = nil
  1265. ##! **Override only if you use a reverse proxy with proxy protocol enabled**
  1266. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#configuring-proxy-protocol
  1267. # nginx['proxy_protocol'] = false
  1268. # nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
  1269. # nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;"
  1270. # nginx['proxy_read_timeout'] = 3600
  1271. # nginx['proxy_connect_timeout'] = 300
  1272. # nginx['proxy_set_headers'] = {
  1273. # "Host" => "$http_host_with_default",
  1274. # "X-Real-IP" => "$remote_addr",
  1275. # "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
  1276. # "X-Forwarded-Proto" => "https",
  1277. # "X-Forwarded-Ssl" => "on",
  1278. # "Upgrade" => "$http_upgrade",
  1279. # "Connection" => "$connection_upgrade"
  1280. # }
  1281. # nginx['proxy_cache_path'] = 'proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2'
  1282. # nginx['proxy_cache'] = 'gitlab'
  1283. # nginx['proxy_custom_buffer_size'] = '4k'
  1284. # nginx['http2_enabled'] = true
  1285. # nginx['real_ip_trusted_addresses'] = []
  1286. # nginx['real_ip_header'] = nil
  1287. # nginx['real_ip_recursive'] = nil
  1288. # nginx['custom_error_pages'] = {
  1289. # '404' => {
  1290. # 'title' => 'Example title',
  1291. # 'header' => 'Example header',
  1292. # 'message' => 'Example message'
  1293. # }
  1294. # }
  1295. ### Advanced settings
  1296. # nginx['dir'] = "/var/opt/gitlab/nginx"
  1297. # nginx['log_directory'] = "/var/log/gitlab/nginx"
  1298. # nginx['error_log_level'] = "error"
  1299. nginx['worker_processes'] = 2
  1300. # nginx['worker_connections'] = 10240
  1301. # nginx['log_format'] = '$remote_addr - $remote_user [$time_local] "$request_method $filtered_request_uri $server_protocol" $status $body_bytes_sent "$filtered_http_referer" "$http_user_agent" $gzip_ratio'
  1302. # nginx['sendfile'] = 'on'
  1303. # nginx['tcp_nopush'] = 'on'
  1304. # nginx['tcp_nodelay'] = 'on'
  1305. # nginx['hide_server_tokens'] = 'off'
  1306. # nginx['gzip_http_version'] = "1.0"
  1307. # nginx['gzip_comp_level'] = "2"
  1308. # nginx['gzip_proxied'] = "any"
  1309. # nginx['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ]
  1310. # nginx['keepalive_timeout'] = 65
  1311. # nginx['keepalive_time'] = '1h'
  1312. # nginx['cache_max_size'] = '5000m'
  1313. # nginx['server_names_hash_bucket_size'] = 64
  1314. ##! These paths have proxy_request_buffering disabled
  1315. # nginx['request_buffering_off_path_regex'] = "/api/v\\d/jobs/\\d+/artifacts$|/import/gitlab_project$|\\.git/git-receive-pack$|\\.git/gitlab-lfs/objects|\\.git/info/lfs/objects/batch$"
  1316. ### Nginx status
  1317. # nginx['status'] = {
  1318. # "enable" => true,
  1319. # "listen_addresses" => ["127.0.0.1"],
  1320. # "fqdn" => "dev.example.com",
  1321. # "port" => 9999,
  1322. # "vts_enable" => true,
  1323. # "options" => {
  1324. # "server_tokens" => "off", # Don't show the version of NGINX
  1325. # "access_log" => "off", # Disable logs for stats
  1326. # "allow" => "127.0.0.1", # Only allow access from localhost
  1327. # "deny" => "all" # Deny access to anyone else
  1328. # }
  1329. # }
  1330. ##! Service name used to register Nginx as a Consul service
  1331. # nginx['consul_service_name'] = 'nginx'
  1332. ##! Semantic metadata used when registering NGINX as a Consul service
  1333. # nginx['consul_service_meta'] = {}
  1334. ################################################################################
  1335. ## GitLab Logging
  1336. ##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html
  1337. ################################################################################
  1338. # logging['svlogd_size'] = 200 * 1024 * 1024 # rotate after 200 MB of log data
  1339. # logging['svlogd_num'] = 30 # keep 30 rotated log files
  1340. # logging['svlogd_timeout'] = 24 * 60 * 60 # rotate after 24 hours
  1341. # logging['svlogd_filter'] = "gzip" # compress logs with gzip
  1342. # logging['svlogd_udp'] = nil # transmit log messages via UDP
  1343. # logging['svlogd_prefix'] = nil # custom prefix for log messages
  1344. # logging['logrotate_frequency'] = "daily" # rotate logs daily
  1345. # logging['logrotate_maxsize'] = nil # rotate logs when they grow bigger than size bytes even before the specified time interval (daily, weekly, monthly, or yearly)
  1346. # logging['logrotate_size'] = nil # do not rotate by size by default
  1347. # logging['logrotate_rotate'] = 30 # keep 30 rotated logs
  1348. # logging['logrotate_compress'] = "compress" # see 'man logrotate'
  1349. # logging['logrotate_method'] = "copytruncate" # see 'man logrotate'
  1350. # logging['logrotate_postrotate'] = nil # no postrotate command by default
  1351. # 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
  1352. ### UDP log forwarding
  1353. ##! Docs: http://docs.gitlab.com/omnibus/settings/logs.html#udp-log-forwarding
  1354. ##! remote host to ship log messages to via UDP
  1355. # logging['udp_log_shipping_host'] = nil
  1356. ##! override the hostname used when logs are shipped via UDP,
  1357. ## by default the system hostname will be used.
  1358. # logging['udp_log_shipping_hostname'] = nil
  1359. ##! remote port to ship log messages to via UDP
  1360. # logging['udp_log_shipping_port'] = 514
  1361. ################################################################################
  1362. ## Logrotate
  1363. ##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html#logrotate
  1364. ##! You can disable built in logrotate feature.
  1365. ################################################################################
  1366. # logrotate['enable'] = true
  1367. # logrotate['log_directory'] = "/var/log/gitlab/logrotate"
  1368. ################################################################################
  1369. ## Users and groups accounts
  1370. ##! Disable management of users and groups accounts.
  1371. ##! **Set only if creating accounts manually**
  1372. ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-user-and-group-account-management
  1373. ################################################################################
  1374. # manage_accounts['enable'] = true
  1375. ################################################################################
  1376. ## Storage directories
  1377. ##! Disable managing storage directories
  1378. ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-storage-directories-management
  1379. ################################################################################
  1380. ##! **Set only if the select directories are created manually**
  1381. # manage_storage_directories['enable'] = false
  1382. # manage_storage_directories['manage_etc'] = false
  1383. ################################################################################
  1384. ## Runtime directory
  1385. ##! Docs: https://docs.gitlab.com//omnibus/settings/configuration.html#configuring-runtime-directory
  1386. ################################################################################
  1387. # runtime_dir '/run'
  1388. ################################################################################
  1389. ## Git
  1390. ##! Advanced setting for configuring git system settings for omnibus-gitlab
  1391. ##! internal git
  1392. ################################################################################
  1393. ##! For multiple options under one header use array of comma separated values,
  1394. ##! eg.:
  1395. ##! { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] }
  1396. # omnibus_gitconfig['system'] = {
  1397. # "pack" => ["threads = 1"],
  1398. # "receive" => ["fsckObjects = true", "advertisePushOptions = true"],
  1399. # "repack" => ["writeBitmaps = true"],
  1400. # "transfer" => ["hideRefs=^refs/tmp/", "hideRefs=^refs/keep-around/", "hideRefs=^refs/remotes/"],
  1401. # "core" => [
  1402. # 'alternateRefsCommand="exit 0 #"',
  1403. # "fsyncObjectFiles = true"
  1404. # ],
  1405. # "fetch" => ["writeCommitGraph = true"]
  1406. # }
  1407. ################################################################################
  1408. ## GitLab Pages
  1409. ##! Docs: https://docs.gitlab.com/ee/administration/pages/
  1410. ################################################################################
  1411. ##! Define to enable GitLab Pages
  1412. # pages_external_url "http://pages.example.com/"
  1413. # gitlab_pages['enable'] = false
  1414. ##! Configure to expose GitLab Pages on external IP address, serving the HTTP
  1415. # gitlab_pages['external_http'] = []
  1416. ##! Configure to expose GitLab Pages on external IP address, serving the HTTPS
  1417. # gitlab_pages['external_https'] = []
  1418. ##! Configure to expose GitLab Pages on external IP address, serving the HTTPS over PROXYv2
  1419. # gitlab_pages['external_https_proxyv2'] = []
  1420. ##! Configure cert when using external IP address
  1421. # gitlab_pages['cert'] = "/etc/gitlab/ssl/#{Gitlab['gitlab_pages']['domain']}.crt"
  1422. # gitlab_pages['cert_key'] = "/etc/gitlab/ssl/#{Gitlab['gitlab_pages']['domain']}.key"
  1423. ##! Configure to use the default list of cipher suites
  1424. # gitlab_pages['insecure_ciphers'] = false
  1425. ##! Configure to enable health check endpoint on GitLab Pages
  1426. # gitlab_pages['status_uri'] = "/@status"
  1427. ##! Tune the maximum number of concurrent connections GitLab Pages will handle.
  1428. ##! Default to 0 for unlimited connections.
  1429. # gitlab_pages['max_connections'] = 0
  1430. ##! Configure the maximum length of URIs accepted by GitLab Pages
  1431. ##! By default is limited for security reasons. Set 0 for unlimited
  1432. # gitlab_pages['max_uri_length'] = 1024
  1433. ##! Setting the propagate_correlation_id to true allows installations behind a reverse proxy
  1434. ##! generate and set a correlation ID to requests sent to GitLab Pages. If a reverse proxy
  1435. ##! sets the header value X-Request-ID, the value will be propagated in the request chain.
  1436. # gitlab_pages['propagate_correlation_id'] = false
  1437. ##! Configure to use JSON structured logging in GitLab Pages
  1438. # gitlab_pages['log_format'] = "json"
  1439. ##! Configure verbose logging for GitLab Pages
  1440. # gitlab_pages['log_verbose'] = false
  1441. ##! Error Reporting and Logging with Sentry
  1442. # gitlab_pages['sentry_enabled'] = false
  1443. # gitlab_pages['sentry_dsn'] = 'https://<key>@sentry.io/<project>'
  1444. # gitlab_pages['sentry_environment'] = 'production'
  1445. ##! Listen for requests forwarded by reverse proxy
  1446. # gitlab_pages['listen_proxy'] = "localhost:8090"
  1447. # gitlab_pages['redirect_http'] = true
  1448. # gitlab_pages['use_http2'] = true
  1449. # gitlab_pages['dir'] = "/var/opt/gitlab/gitlab-pages"
  1450. # gitlab_pages['log_directory'] = "/var/log/gitlab/gitlab-pages"
  1451. # gitlab_pages['artifacts_server'] = true
  1452. # gitlab_pages['artifacts_server_url'] = nil # Defaults to external_url + '/api/v4'
  1453. # gitlab_pages['artifacts_server_timeout'] = 10
  1454. ##! Prometheus metrics for Pages docs: https://gitlab.com/gitlab-org/gitlab-pages/#enable-prometheus-metrics
  1455. # gitlab_pages['metrics_address'] = ":9235"
  1456. ##! Specifies the minimum TLS version ("tls1.2" or "tls1.3")
  1457. # gitlab_pages['tls_min_version'] = "tls1.2"
  1458. ##! Specifies the maximum TLS version ("tls1.2" or "tls1.3")
  1459. # gitlab_pages['tls_max_version'] = "tls1.3"
  1460. ##! Pages access control
  1461. # gitlab_pages['access_control'] = false
  1462. # gitlab_pages['gitlab_id'] = nil # Automatically generated if not present
  1463. # gitlab_pages['gitlab_secret'] = nil # Generated if not present
  1464. # gitlab_pages['auth_redirect_uri'] = nil # Defaults to projects subdomain of pages_external_url and + '/auth'
  1465. # gitlab_pages['gitlab_server'] = nil # Defaults to external_url
  1466. # gitlab_pages['internal_gitlab_server'] = nil # Defaults to gitlab_server, can be changed to internal load balancer
  1467. # gitlab_pages['auth_secret'] = nil # Generated if not present
  1468. # gitlab_pages['auth_scope'] = nil # Defaults to api, can be changed to read_api to increase security
  1469. # gitlab_pages['auth_cookie_session_timeout'] = "10m" # Authentication cookie session timeout (truncated to seconds). A zero value means the cookie will be deleted after the browser session ends
  1470. ##! GitLab Pages Server Shutdown Timeout
  1471. ##! Duration ("30s" for 30 seconds)
  1472. # gitlab_pages['server_shutdown_timeout'] = "30s"
  1473. ##! GitLab API HTTP client connection timeout
  1474. # gitlab_pages['gitlab_client_http_timeout'] = "10s"
  1475. ##! GitLab API JWT Token expiry time
  1476. # gitlab_pages['gitlab_client_jwt_expiry'] = "30s"
  1477. ##! Advanced settings for API-based configuration for GitLab Pages.
  1478. ##! The recommended default values are set inside GitLab Pages.
  1479. ##! Should be changed only if absolutely needed.
  1480. ##! The maximum time a domain's configuration is stored in the cache.
  1481. # gitlab_pages['gitlab_cache_expiry'] = "600s"
  1482. ##! The interval at which a domain's configuration is set to be due to refresh (default: 60s).
  1483. # gitlab_pages['gitlab_cache_refresh'] = "60s"
  1484. ##! The interval at which expired items are removed from the cache (default: 60s).
  1485. # gitlab_pages['gitlab_cache_cleanup'] = "60s"
  1486. ##! The maximum time to wait for a response from the GitLab API per request.
  1487. # gitlab_pages['gitlab_retrieval_timeout'] = "30s"
  1488. ##! The interval to wait before retrying to resolve a domain's configuration via the GitLab API.
  1489. # gitlab_pages['gitlab_retrieval_interval'] = "1s"
  1490. ##! The maximum number of times to retry to resolve a domain's configuration via the API
  1491. # gitlab_pages['gitlab_retrieval_retries'] = 3
  1492. ##! Define custom gitlab-pages HTTP headers for the whole instance
  1493. # gitlab_pages['headers'] = []
  1494. ##! Shared secret used for authentication between Pages and GitLab
  1495. # gitlab_pages['api_secret_key'] = nil # Will be generated if not set. Base64 encoded and exactly 32 bytes long.
  1496. ##! Advanced settings for serving GitLab Pages from zip archives.
  1497. ##! The recommended default values are set inside GitLab Pages.
  1498. ##! Should be changed only if absolutely needed.
  1499. ##! The maximum time an archive will be cached in memory.
  1500. # gitlab_pages['zip_cache_expiration'] = "60s"
  1501. ##! Zip archive cache cleaning interval.
  1502. # gitlab_pages['zip_cache_cleanup'] = "30s"
  1503. ##! The interval to refresh a cache archive if accessed before expiring.
  1504. # gitlab_pages['zip_cache_refresh'] = "30s"
  1505. ##! The maximum amount of time it takes to open a zip archive from the file system or object storage.
  1506. # gitlab_pages['zip_open_timeout'] = "30s"
  1507. ##! Zip HTTP Client timeout
  1508. # gitlab_pages['zip_http_client_timeout'] = "30m"
  1509. ##! ReadTimeout is the maximum duration for reading the entire request, including the body. A zero or negative value means there will be no timeout.
  1510. # gitlab_pages['server_read_timeout'] = "5s"
  1511. ##! ReadHeaderTimeout is the amount of time allowed to read request headers. A zero or negative value means there will be no timeout.
  1512. # gitlab_pages['server_read_header_timeout'] = "1s"
  1513. ##! WriteTimeout is the maximum duration before timing out writes of the response. A zero or negative value means there will be no timeout.
  1514. # gitlab_pages['server_write_timeout'] = "5m"
  1515. ##! KeepAlive specifies the keep-alive period for network connections accepted by this listener. If zero, keep-alives are enabled if supported by the protocol and operating system. If negative, keep-alives are disabled.
  1516. # gitlab_pages['server_keep_alive'] = "15s"
  1517. ##! Enable serving content from disk instead of Object Storage
  1518. # gitlab_pages['enable_disk'] = nil
  1519. ##! Rate-limiting options below work in report-only mode:
  1520. ##! they only count rejected requests, but don't reject them
  1521. ##! enable `FF_ENABLE_RATE_LIMITER=true` environment variable to
  1522. ##! reject requests.
  1523. ##! Rate limits as described in https://docs.gitlab.com/ee/administration/pages/#rate-limits
  1524. ##! Rate limit HTTP requests per second from a single IP, 0 means is disabled
  1525. # gitlab_pages['rate_limit_source_ip'] = 50.0
  1526. ##! Rate limit HTTP requests from a single IP, maximum burst allowed per second
  1527. # gitlab_pages['rate_limit_source_ip_burst'] = 600
  1528. ##! Rate limit HTTP requests per second to a single domain, 0 means is disabled
  1529. # gitlab_pages['rate_limit_domain'] = 0
  1530. ##! Rate limit HTTP requests to a single domain, maximum burst allowed per second
  1531. # gitlab_pages['rate_limit_domain_burst'] = 10000
  1532. ##! Rate limit new TLS connections per second from a single IP, 0 means is disabled
  1533. # gitlab_pages['rate_limit_tls_source_ip'] = 50.0
  1534. ##! Rate limit new TLS connections from a single IP, maximum burst allowed per second
  1535. # gitlab_pages['rate_limit_tls_source_ip_burst'] = 600
  1536. ##!Rate limit new TLS connections per second from to a single domain, 0 means is disabled
  1537. # gitlab_pages['rate_limit_tls_domain'] = 0
  1538. ##! Rate limit new TLS connections to a single domain, maximum burst allowed per second
  1539. # gitlab_pages['rate_limit_tls_domain_burst'] = 10000
  1540. ##! The maximum size of the _redirects file, in bytes
  1541. # gitlab_pages['redirects_max_config_size'] = 65536
  1542. ##! The maximum number of path segments allowed in _redirects rules URLs
  1543. # gitlab_pages['redirects_max_path_segments'] = 25
  1544. ##! The maximum number of rules allowed in _redirects
  1545. # gitlab_pages['redirects_max_rule_count'] = 1000
  1546. # gitlab_pages['env_directory'] = "/opt/gitlab/etc/gitlab-pages/env"
  1547. # gitlab_pages['env'] = {
  1548. # 'SSL_CERT_DIR' => "#{node['package']['install-dir']}/embedded/ssl/certs/"
  1549. # }
  1550. ################################################################################
  1551. ## GitLab Pages NGINX
  1552. ################################################################################
  1553. # All the settings defined in the "GitLab Nginx" section are also available in
  1554. # this "GitLab Pages NGINX" section, using the key `pages_nginx`. However,
  1555. # those settings should be explicitly set. That is, settings given as
  1556. # `nginx['some_setting']` WILL NOT be automatically replicated as
  1557. # `pages_nginx['some_setting']` and should be set separately.
  1558. # Below you can find settings that are exclusive to "GitLab Pages NGINX"
  1559. # pages_nginx['enable'] = true
  1560. # gitlab_rails['pages_path'] = "/var/opt/gitlab/gitlab-rails/shared/pages"
  1561. ################################################################################
  1562. ## GitLab CI
  1563. ##! Docs: https://docs.gitlab.com/ee/ci/quick_start/
  1564. ################################################################################
  1565. # gitlab_ci['gitlab_ci_all_broken_builds'] = true
  1566. # gitlab_ci['gitlab_ci_add_pusher'] = true
  1567. # gitlab_ci['builds_directory'] = '/var/opt/gitlab/gitlab-ci/builds'
  1568. ################################################################################
  1569. ## GitLab Kubernetes Agent Server
  1570. ##! Docs: https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/blob/master/README.md
  1571. ################################################################################
  1572. ##! Settings used by the GitLab application
  1573. # gitlab_rails['gitlab_kas_enabled'] = true
  1574. # gitlab_rails['gitlab_kas_external_url'] = 'ws://gitlab.example.com/-/kubernetes-agent/'
  1575. # gitlab_rails['gitlab_kas_internal_url'] = 'grpc://localhost:8153'
  1576. # gitlab_rails['gitlab_kas_external_k8s_proxy_url'] = 'https://gitlab.example.com/-/kubernetes-agent/'
  1577. ##! Enable GitLab KAS
  1578. # gitlab_kas['enable'] = true
  1579. ##! Agent configuration for GitLab KAS
  1580. # gitlab_kas['agent_configuration_poll_period'] = 20
  1581. # gitlab_kas['agent_gitops_poll_period'] = 20
  1582. # gitlab_kas['agent_gitops_project_info_cache_ttl'] = 300
  1583. # gitlab_kas['agent_gitops_project_info_cache_error_ttl'] = 60
  1584. # gitlab_kas['agent_info_cache_ttl'] = 300
  1585. # gitlab_kas['agent_info_cache_error_ttl'] = 60
  1586. ##! Shared secret used for authentication between KAS and GitLab
  1587. # gitlab_kas['api_secret_key'] = nil # Will be generated if not set. Base64 encoded and exactly 32 bytes long.
  1588. ##! Shared secret used for authentication between different KAS instances in a multi-node setup
  1589. # gitlab_kas['private_api_secret_key'] = nil # Will be generated if not set. Base64 encoded and exactly 32 bytes long.
  1590. ##! Listen configuration for GitLab KAS
  1591. # gitlab_kas['listen_address'] = 'localhost:8150'
  1592. # gitlab_kas['listen_network'] = 'tcp'
  1593. # gitlab_kas['listen_websocket'] = true
  1594. # gitlab_kas['certificate_file'] = "/path/to/certificate.pem"
  1595. # gitlab_kas['key_file'] = "/path/to/key.pem"
  1596. # gitlab_kas['observability_listen_network'] = 'tcp'
  1597. # gitlab_kas['observability_listen_address'] = 'localhost:8151'
  1598. # gitlab_kas['internal_api_listen_network'] = 'tcp'
  1599. # gitlab_kas['internal_api_listen_address'] = 'localhost:8153'
  1600. # gitlab_kas['internal_api_certificate_file'] = "/path/to/certificate.pem"
  1601. # gitlab_kas['internal_api_key_file'] = "/path/to/key.pem"
  1602. # gitlab_kas['kubernetes_api_listen_address'] = 'localhost:8154'
  1603. # gitlab_kas['kubernetes_api_certificate_file'] = "/path/to/certificate.pem"
  1604. # gitlab_kas['kubernetes_api_key_file'] = "/path/to/key.pem"
  1605. # gitlab_kas['private_api_listen_network'] = 'tcp'
  1606. # gitlab_kas['private_api_listen_address'] = 'localhost:8155'
  1607. # gitlab_kas['private_api_certificate_file'] = "/path/to/certificate.pem"
  1608. # gitlab_kas['private_api_key_file'] = "/path/to/key.pem"
  1609. ##! Metrics configuration for GitLab KAS
  1610. # gitlab_kas['metrics_usage_reporting_period'] = 60
  1611. ##! Log configuration for GitLab KAS
  1612. # gitlab_kas['log_level'] = 'info'
  1613. ##! Environment variables for GitLab KAS
  1614. # gitlab_kas['env'] = {
  1615. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/",
  1616. # # In a multi-node setup, this address MUST be reachable from other KAS instances. In a single-node setup, it can be on localhost for simplicity
  1617. # 'OWN_PRIVATE_API_URL' => 'grpc://localhost:8155'
  1618. # }
  1619. ##! Error Reporting and Logging with Sentry
  1620. # gitlab_kas['sentry_dsn'] = 'https://<key>@sentry.io/<project>'
  1621. # gitlab_kas['sentry_environment'] = 'production'
  1622. ##! Directories for GitLab KAS
  1623. # gitlab_kas['dir'] = '/var/opt/gitlab/gitlab-kas'
  1624. # gitlab_kas['log_directory'] = '/var/log/gitlab/gitlab-kas'
  1625. # gitlab_kas['env_directory'] = '/opt/gitlab/etc/gitlab-kas/env'
  1626. ################################################################################
  1627. ## GitLab Mattermost
  1628. ##! Docs: https://docs.gitlab.com/omnibus/gitlab-mattermost
  1629. ################################################################################
  1630. # mattermost_external_url 'http://mattermost.example.com'
  1631. # mattermost['enable'] = false
  1632. # mattermost['username'] = 'mattermost'
  1633. # mattermost['group'] = 'mattermost'
  1634. # mattermost['uid'] = nil
  1635. # mattermost['gid'] = nil
  1636. # mattermost['home'] = '/var/opt/gitlab/mattermost'
  1637. # mattermost['database_name'] = 'mattermost_production'
  1638. # mattermost['env'] = {
  1639. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1640. # }
  1641. # mattermost['service_address'] = "127.0.0.1"
  1642. # mattermost['service_port'] = "8065"
  1643. # mattermost['service_site_url'] = nil
  1644. # mattermost['service_allowed_untrusted_internal_connections'] = ""
  1645. # mattermost['service_enable_api_team_deletion'] = true
  1646. # mattermost['team_site_name'] = "GitLab Mattermost"
  1647. # mattermost['sql_driver_name'] = 'mysql'
  1648. # mattermost['sql_data_source'] = "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8"
  1649. # mattermost['log_file_directory'] = '/var/log/gitlab/mattermost/'
  1650. # mattermost['gitlab_enable'] = false
  1651. # mattermost['gitlab_id'] = "12345656"
  1652. # mattermost['gitlab_secret'] = "123456789"
  1653. # mattermost['gitlab_scope'] = ""
  1654. # mattermost['gitlab_auth_endpoint'] = "http://gitlab.example.com/oauth/authorize"
  1655. # mattermost['gitlab_token_endpoint'] = "http://gitlab.example.com/oauth/token"
  1656. # mattermost['gitlab_user_api_endpoint'] = "http://gitlab.example.com/api/v4/user"
  1657. # mattermost['file_directory'] = "/var/opt/gitlab/mattermost/data"
  1658. # mattermost['plugin_directory'] = "/var/opt/gitlab/mattermost/plugins"
  1659. # mattermost['plugin_client_directory'] = "/var/opt/gitlab/mattermost/client-plugins"
  1660. ################################################################################
  1661. ## Mattermost NGINX
  1662. ################################################################################
  1663. # All the settings defined in the "GitLab Nginx" section are also available in
  1664. # this "Mattermost NGINX" section, using the key `mattermost_nginx`. However,
  1665. # those settings should be explicitly set. That is, settings given as
  1666. # `nginx['some_setting']` WILL NOT be automatically replicated as
  1667. # `mattermost_nginx['some_setting']` and should be set separately.
  1668. # Below you can find settings that are exclusive to "Mattermost NGINX"
  1669. # mattermost_nginx['enable'] = false
  1670. # mattermost_nginx['custom_gitlab_mattermost_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
  1671. # mattermost_nginx['proxy_set_headers'] = {
  1672. # "Host" => "$http_host",
  1673. # "X-Real-IP" => "$remote_addr",
  1674. # "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
  1675. # "X-Frame-Options" => "SAMEORIGIN",
  1676. # "X-Forwarded-Proto" => "https",
  1677. # "X-Forwarded-Ssl" => "on",
  1678. # "Upgrade" => "$http_upgrade",
  1679. # "Connection" => "$connection_upgrade"
  1680. # }
  1681. ################################################################################
  1682. ## Registry NGINX
  1683. ################################################################################
  1684. # All the settings defined in the "GitLab Nginx" section are also available in
  1685. # this "Registry NGINX" section, using the key `registry_nginx`. However, those
  1686. # settings should be explicitly set. That is, settings given as
  1687. # `nginx['some_setting']` WILL NOT be automatically replicated as
  1688. # `registry_nginx['some_setting']` and should be set separately.
  1689. # Below you can find settings that are exclusive to "Registry NGINX"
  1690. # registry_nginx['enable'] = false
  1691. # registry_nginx['proxy_set_headers'] = {
  1692. # "Host" => "$http_host",
  1693. # "X-Real-IP" => "$remote_addr",
  1694. # "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
  1695. # "X-Forwarded-Proto" => "https",
  1696. # "X-Forwarded-Ssl" => "on"
  1697. # }
  1698. # When the registry is automatically enabled using the same domain as `external_url`,
  1699. # it listens on this port
  1700. # registry_nginx['listen_port'] = 5050
  1701. ################################################################################
  1702. ## Prometheus
  1703. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/
  1704. ################################################################################
  1705. ###! **To enable only Monitoring service in this machine, uncomment
  1706. ###! the line below.**
  1707. ###! Docs: https://docs.gitlab.com/ee/administration/high_availability
  1708. # monitoring_role['enable'] = true
  1709. # prometheus['enable'] = true
  1710. # prometheus['monitor_kubernetes'] = true
  1711. # prometheus['username'] = 'gitlab-prometheus'
  1712. # prometheus['group'] = 'gitlab-prometheus'
  1713. # prometheus['uid'] = nil
  1714. # prometheus['gid'] = nil
  1715. # prometheus['shell'] = '/bin/sh'
  1716. # prometheus['home'] = '/var/opt/gitlab/prometheus'
  1717. # prometheus['log_directory'] = '/var/log/gitlab/prometheus'
  1718. # prometheus['rules_files'] = ['/var/opt/gitlab/prometheus/rules/*.rules']
  1719. # prometheus['scrape_interval'] = 15
  1720. # prometheus['scrape_timeout'] = 15
  1721. # prometheus['external_labels'] = { }
  1722. # prometheus['env_directory'] = '/opt/gitlab/etc/prometheus/env'
  1723. # prometheus['env'] = {
  1724. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1725. # }
  1726. #
  1727. ### Custom scrape configs
  1728. #
  1729. # Prometheus can scrape additional jobs via scrape_configs. The default automatically
  1730. # includes all of the exporters supported by the omnibus config.
  1731. #
  1732. # See: https://prometheus.io/docs/operating/configuration/#<scrape_config>
  1733. #
  1734. # Example:
  1735. #
  1736. # prometheus['scrape_configs'] = [
  1737. # {
  1738. # 'job_name': 'example',
  1739. # 'static_configs' => [
  1740. # 'targets' => ['hostname:port'],
  1741. # ],
  1742. # },
  1743. # ]
  1744. #
  1745. ### Custom alertmanager config
  1746. #
  1747. # To configure external alertmanagers, create an alertmanager config.
  1748. #
  1749. # See: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config
  1750. #
  1751. # prometheus['alertmanagers'] = [
  1752. # {
  1753. # 'static_configs' => [
  1754. # {
  1755. # 'targets' => [
  1756. # 'hostname:port'
  1757. # ]
  1758. # }
  1759. # ]
  1760. # }
  1761. # ]
  1762. #
  1763. ### Custom Prometheus flags
  1764. #
  1765. # prometheus['flags'] = {
  1766. # 'storage.tsdb.path' => "/var/opt/gitlab/prometheus/data",
  1767. # 'storage.tsdb.retention.time' => "15d",
  1768. # 'config.file' => "/var/opt/gitlab/prometheus/prometheus.yml"
  1769. # }
  1770. ##! Advanced settings. Should be changed only if absolutely needed.
  1771. # prometheus['listen_address'] = 'localhost:9090'
  1772. #
  1773. ##! Service name used to register Prometheus as a Consul service
  1774. # prometheus['consul_service_name'] = 'prometheus'
  1775. ##! Semantic metadata used when registering Prometheus as a Consul service
  1776. # prometheus['consul_service_meta'] = {}
  1777. ################################################################################
  1778. ###! **Only needed if Prometheus and Rails are not on the same server.**
  1779. ### For example, in a multi-node architecture, Prometheus will be installed on the monitoring node, while Rails will be on the Rails node.
  1780. ### https://docs.gitlab.com/ee/administration/monitoring/prometheus/index.html#using-an-external-prometheus-server
  1781. ### This value should be the address at which Prometheus is available to a GitLab Rails(Puma, Sidekiq) node.
  1782. ################################################################################
  1783. # gitlab_rails['prometheus_address'] = 'your.prom:9090'
  1784. ################################################################################
  1785. ## Prometheus Alertmanager
  1786. ################################################################################
  1787. # alertmanager['enable'] = true
  1788. # alertmanager['home'] = '/var/opt/gitlab/alertmanager'
  1789. # alertmanager['log_directory'] = '/var/log/gitlab/alertmanager'
  1790. # alertmanager['admin_email'] = 'admin@example.com'
  1791. # alertmanager['flags'] = {
  1792. # 'web.listen-address' => "localhost:9093",
  1793. # 'storage.path' => "/var/opt/gitlab/alertmanager/data",
  1794. # 'config.file' => "/var/opt/gitlab/alertmanager/alertmanager.yml"
  1795. # }
  1796. # alertmanager['env_directory'] = '/opt/gitlab/etc/alertmanager/env'
  1797. # alertmanager['env'] = {
  1798. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1799. # }
  1800. ##! Advanced settings. Should be changed only if absolutely needed.
  1801. # alertmanager['listen_address'] = 'localhost:9093'
  1802. # alertmanager['global'] = {}
  1803. ################################################################################
  1804. ## Prometheus Node Exporter
  1805. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/node_exporter.html
  1806. ################################################################################
  1807. # node_exporter['enable'] = true
  1808. # node_exporter['home'] = '/var/opt/gitlab/node-exporter'
  1809. # node_exporter['log_directory'] = '/var/log/gitlab/node-exporter'
  1810. # node_exporter['flags'] = {
  1811. # 'collector.textfile.directory' => "/var/opt/gitlab/node-exporter/textfile_collector"
  1812. # }
  1813. # node_exporter['env_directory'] = '/opt/gitlab/etc/node-exporter/env'
  1814. # node_exporter['env'] = {
  1815. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1816. # }
  1817. ##! Advanced settings. Should be changed only if absolutely needed.
  1818. # node_exporter['listen_address'] = 'localhost:9100'
  1819. ##! Service name used to register Node Exporter as a Consul service
  1820. # node_exporter['consul_service_name'] = 'node-exporter'
  1821. ##! Semantic metadata used when registering Node Exporter as a Consul service
  1822. # node_exporter['consul_service_meta'] = {}
  1823. ################################################################################
  1824. ## Prometheus Redis exporter
  1825. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/redis_exporter.html
  1826. ################################################################################
  1827. # redis_exporter['enable'] = true
  1828. # redis_exporter['log_directory'] = '/var/log/gitlab/redis-exporter'
  1829. # redis_exporter['flags'] = {
  1830. # 'redis.addr' => "unix:///var/opt/gitlab/redis/redis.socket",
  1831. # }
  1832. # redis_exporter['env_directory'] = '/opt/gitlab/etc/redis-exporter/env'
  1833. # redis_exporter['env'] = {
  1834. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1835. # }
  1836. ##! Advanced settings. Should be changed only if absolutely needed.
  1837. # redis_exporter['listen_address'] = 'localhost:9121'
  1838. ##! Service name used to register Redis Exporter as a Consul service
  1839. # redis_exporter['consul_service_name'] = 'redis-exporter'
  1840. ##! Semantic metadata used when registering Redis Exporter as a Consul service
  1841. # redis_exporter['consul_service_meta'] = {}
  1842. ################################################################################
  1843. ## Prometheus Postgres exporter
  1844. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/postgres_exporter.html
  1845. ################################################################################
  1846. # postgres_exporter['enable'] = true
  1847. # postgres_exporter['home'] = '/var/opt/gitlab/postgres-exporter'
  1848. # postgres_exporter['log_directory'] = '/var/log/gitlab/postgres-exporter'
  1849. # postgres_exporter['flags'] = {}
  1850. # postgres_exporter['listen_address'] = 'localhost:9187'
  1851. # postgres_exporter['env_directory'] = '/opt/gitlab/etc/postgres-exporter/env'
  1852. # postgres_exporter['env'] = {
  1853. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1854. # }
  1855. # postgres_exporter['sslmode'] = nil
  1856. # postgres_exporter['per_table_stats'] = false
  1857. ##! Service name used to register Postgres Exporter as a Consul service
  1858. # postgres_exporter['consul_service_name'] = 'postgres-exporter'
  1859. ##! Semantic metadata used when registering Postgres Exporter as a Consul service
  1860. # postgres_exporter['consul_service_meta'] = {}
  1861. ################################################################################
  1862. ## Prometheus PgBouncer exporter (EE only)
  1863. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/pgbouncer_exporter.html
  1864. ################################################################################
  1865. # pgbouncer_exporter['enable'] = false
  1866. # pgbouncer_exporter['log_directory'] = "/var/log/gitlab/pgbouncer-exporter"
  1867. # pgbouncer_exporter['listen_address'] = 'localhost:9188'
  1868. # pgbouncer_exporter['env_directory'] = '/opt/gitlab/etc/pgbouncer-exporter/env'
  1869. # pgbouncer_exporter['env'] = {
  1870. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1871. # }
  1872. ################################################################################
  1873. ## Prometheus Gitlab exporter
  1874. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/gitlab_exporter.html
  1875. ################################################################################
  1876. # gitlab_exporter['enable'] = true
  1877. # gitlab_exporter['log_directory'] = "/var/log/gitlab/gitlab-exporter"
  1878. # gitlab_exporter['home'] = "/var/opt/gitlab/gitlab-exporter"
  1879. ##! Advanced settings. Should be changed only if absolutely needed.
  1880. # gitlab_exporter['server_name'] = 'webrick'
  1881. # gitlab_exporter['listen_address'] = 'localhost'
  1882. # gitlab_exporter['listen_port'] = '9168'
  1883. ##! TLS settings.
  1884. # gitlab_exporter['tls_enabled'] = false
  1885. # gitlab_exporter['tls_cert_path'] = '/etc/gitlab/ssl/gitlab-exporter.crt'
  1886. # gitlab_exporter['tls_key_path'] = '/etc/gitlab/ssl/gitlab-exporter.key'
  1887. ##! Prometheus scrape related configs
  1888. # gitlab_exporter['prometheus_scrape_scheme'] = 'http'
  1889. # gitlab_exporter['prometheus_scrape_tls_server_name'] = 'localhost'
  1890. # gitlab_exporter['prometheus_scrape_tls_skip_verification'] = false
  1891. ##! Manage gitlab-exporter sidekiq probes. false by default when Sentinels are
  1892. ##! found.
  1893. # gitlab_exporter['probe_sidekiq'] = true
  1894. ##! Manage gitlab-exporter elasticsearch probes. Add authorization header if security
  1895. ##! is enabled.
  1896. # gitlab_exporter['probe_elasticsearch'] = false
  1897. # gitlab_exporter['elasticsearch_url'] = 'http://localhost:9200'
  1898. # gitlab_exporter['elasticsearch_authorization'] = 'Basic <yourbase64encodedcredentials>'
  1899. ##! Service name used to register GitLab Exporter as a Consul service
  1900. # gitlab_exporter['consul_service_name'] = 'gitlab-exporter'
  1901. ##! Semantic metadata used when registering GitLab Exporter as a Consul service
  1902. # gitlab_exporter['consul_service_meta'] = {}
  1903. # To completely disable prometheus, and all of it's exporters, set to false
  1904. prometheus_monitoring['enable'] = false
  1905. ################################################################################
  1906. ## Grafana Dashboards
  1907. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/#prometheus-as-a-grafana-data-source
  1908. ################################################################################
  1909. # grafana['enable'] = false
  1910. # grafana['log_directory'] = '/var/log/gitlab/grafana'
  1911. # grafana['home'] = '/var/opt/gitlab/grafana'
  1912. # grafana['admin_password'] = 'admin'
  1913. # grafana['allow_user_sign_up'] = false
  1914. # grafana['basic_auth_enabled'] = false
  1915. # grafana['disable_login_form'] = true
  1916. # grafana['gitlab_application_id'] = 'GITLAB_APPLICATION_ID'
  1917. # grafana['gitlab_secret'] = 'GITLAB_SECRET'
  1918. # grafana['env_directory'] = '/opt/gitlab/etc/grafana/env'
  1919. # grafana['allowed_groups'] = []
  1920. # grafana['gitlab_auth_sign_up'] = true
  1921. # grafana['env'] = {
  1922. # 'SSL_CERT_DIR' => "#{node['package']['install-dir']}/embedded/ssl/certs/"
  1923. # }
  1924. # grafana['metrics_enabled'] = false
  1925. # grafana['metrics_basic_auth_username'] = 'grafana_metrics' # default: nil
  1926. # grafana['metrics_basic_auth_password'] = 'please_set_a_unique_password' # default: nil
  1927. # grafana['alerting_enabled'] = false
  1928. ### SMTP Configuration
  1929. #
  1930. # See: http://docs.grafana.org/administration/configuration/#smtp
  1931. #
  1932. # grafana['smtp'] = {
  1933. # 'enabled' => true,
  1934. # 'host' => 'localhost:25',
  1935. # 'user' => nil,
  1936. # 'password' => nil,
  1937. # 'cert_file' => nil,
  1938. # 'key_file' => nil,
  1939. # 'skip_verify' => false,
  1940. # 'from_address' => 'admin@grafana.localhost',
  1941. # 'from_name' => 'Grafana',
  1942. # 'ehlo_identity' => 'dashboard.example.com',
  1943. # 'startTLS_policy' => nil
  1944. # }
  1945. # Grafana usage reporting defaults to gitlab_rails['usage_ping_enabled']
  1946. # grafana['reporting_enabled'] = true
  1947. ### Dashboards
  1948. #
  1949. # See: http://docs.grafana.org/administration/provisioning/#dashboards
  1950. #
  1951. # NOTE: Setting this will override the default.
  1952. #
  1953. # grafana['dashboards'] = [
  1954. # {
  1955. # 'name' => 'GitLab Omnibus',
  1956. # 'orgId' => 1,
  1957. # 'folder' => 'GitLab Omnibus',
  1958. # 'type' => 'file',
  1959. # 'disableDeletion' => true,
  1960. # 'updateIntervalSeconds' => 600,
  1961. # 'options' => {
  1962. # 'path' => '/opt/gitlab/embedded/service/grafana-dashboards',
  1963. # }
  1964. # }
  1965. # ]
  1966. ### Datasources
  1967. #
  1968. # See: http://docs.grafana.org/administration/provisioning/#example-datasource-config-file
  1969. #
  1970. # NOTE: Setting this will override the default.
  1971. #
  1972. # grafana['datasources'] = [
  1973. # {
  1974. # 'name' => 'GitLab Omnibus',
  1975. # 'type' => 'prometheus',
  1976. # 'access' => 'proxy',
  1977. # 'url' => 'http://localhost:9090'
  1978. # }
  1979. # ]
  1980. ##! Advanced settings. Should be changed only if absolutely needed.
  1981. # grafana['http_addr'] = 'localhost'
  1982. # grafana['http_port'] = 3000
  1983. ################################################################################
  1984. ## Gitaly
  1985. ##! Docs:
  1986. ################################################################################
  1987. # The gitaly['enable'] option exists for the purpose of cluster
  1988. # deployments, see https://docs.gitlab.com/ee/administration/gitaly/index.html .
  1989. # gitaly['enable'] = true
  1990. # gitaly['dir'] = "/var/opt/gitlab/gitaly"
  1991. # gitaly['log_directory'] = "/var/log/gitlab/gitaly"
  1992. # gitaly['bin_path'] = "/opt/gitlab/embedded/bin/gitaly"
  1993. # gitaly['env_directory'] = "/opt/gitlab/etc/gitaly/env"
  1994. # gitaly['env'] = {
  1995. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
  1996. # 'HOME' => '/var/opt/gitlab',
  1997. # 'TZ' => ':/etc/localtime',
  1998. # 'PYTHONPATH' => "/opt/gitlab/embedded/lib/python3.9/site-packages",
  1999. # 'ICU_DATA' => "/opt/gitlab/embedded/share/icu/current",
  2000. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/",
  2001. # 'WRAPPER_JSON_LOGGING' => true
  2002. # }
  2003. # gitaly['runtime_dir'] = "/var/opt/gitlab/gitaly/run"
  2004. # gitaly['socket_path'] = "/var/opt/gitlab/gitaly/gitaly.socket"
  2005. # gitaly['listen_addr'] = "localhost:8075"
  2006. # gitaly['tls_listen_addr'] = "localhost:9075"
  2007. # gitaly['certificate_path'] = "/var/opt/gitlab/gitaly/certificate.pem"
  2008. # gitaly['key_path'] = "/var/opt/gitlab/gitaly/key.pem"
  2009. # gitaly['gpg_signing_key_path'] = "/var/opt/gitlab/gitaly/signing_key.gpg"
  2010. # gitaly['prometheus_listen_addr'] = "localhost:9236"
  2011. # gitaly['logging_level'] = "warn"
  2012. # gitaly['logging_format'] = "json"
  2013. # gitaly['logging_sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
  2014. # gitaly['logging_ruby_sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
  2015. # gitaly['logging_sentry_environment'] = "production"
  2016. # 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]"
  2017. # gitaly['auth_token'] = '<secret>'
  2018. # gitaly['auth_transitioning'] = false # When true, auth is logged to Prometheus but NOT enforced
  2019. # gitaly['graceful_restart_timeout'] = '1m' # Grace time for a gitaly process to finish ongoing requests
  2020. # gitaly['git_catfile_cache_size'] = 100 # Number of 'git cat-file' processes kept around for re-use
  2021. # gitaly['git_bin_path'] = "/opt/gitlab/embedded/bin/git" # A custom path for the 'git' executable
  2022. # gitaly['use_bundled_git'] = true # Whether to use bundled Git.
  2023. # gitaly['open_files_ulimit'] = 15000 # Maximum number of open files allowed for the gitaly process
  2024. # gitaly['ruby_max_rss'] = 300000000 # RSS threshold in bytes for triggering a gitaly-ruby restart
  2025. # gitaly['ruby_graceful_restart_timeout'] = '10m' # Grace time for a gitaly-ruby process to finish ongoing requests
  2026. # gitaly['ruby_restart_delay'] = '5m' # Period of sustained high RSS that needs to be observed before restarting gitaly-ruby
  2027. # gitaly['ruby_num_workers'] = 3 # Number of gitaly-ruby worker processes. Minimum 2, default 2.
  2028. # gitaly['concurrency'] = [
  2029. # {
  2030. # 'rpc' => "/gitaly.SmartHTTPService/PostReceivePack",
  2031. # 'max_per_repo' => 20
  2032. # }, {
  2033. # 'rpc' => "/gitaly.SSHService/SSHUploadPack",
  2034. # 'max_per_repo' => 5
  2035. # }
  2036. # ]
  2037. # gitaly['rate_limiting'] = [
  2038. # {
  2039. # 'rpc' => "/gitaly.SmartHTTPService/PostReceivePack",
  2040. # 'interval' => '1m',
  2041. # 'burst' => 10
  2042. # }, {
  2043. # 'rpc' => "/gitaly.SSHService/SSHUploadPack",
  2044. # 'interval' => '1m',
  2045. # 'burst' => 5
  2046. # }
  2047. # ]
  2048. #
  2049. # gitaly['daily_maintenance_start_hour'] = 22
  2050. # gitaly['daily_maintenance_start_minute'] = 30
  2051. # gitaly['daily_maintenance_duration'] = '30m'
  2052. # gitaly['daily_maintenance_storages'] = ["default"]
  2053. # gitaly['daily_maintenance_disabled'] = false
  2054. # gitaly['cgroups_mountpoint'] = '/sys/fs/cgroup'
  2055. # gitaly['cgroups_hierarchy_root'] = 'gitaly'
  2056. # gitaly['cgroups_memory_bytes'] = 1048576
  2057. # gitaly['cgroups_cpu_shares'] = 512
  2058. # gitaly['cgroups_repositories_count'] = 1000
  2059. # gitaly['cgroups_repositories_memory_bytes'] = 12884901888
  2060. # gitaly['cgroups_repositories_cpu_shares'] = 128
  2061. # gitaly['pack_objects_cache_enabled'] = true
  2062. # gitaly['pack_objects_cache_dir'] = '/var/opt/gitlab/git-data/repositories/+gitaly/PackObjectsCache'
  2063. # gitaly['pack_objects_cache_max_age'] = '5m'
  2064. # gitaly['custom_hooks_dir'] = "/var/opt/gitlab/gitaly/custom_hooks"
  2065. ##! Service name used to register Gitaly as a Consul service
  2066. # gitaly['consul_service_name'] = 'gitaly'
  2067. ##! Semantic metadata used when registering Gitaly as a Consul service
  2068. # gitaly['consul_service_meta'] = {}
  2069. ################################################################################
  2070. ## Praefect
  2071. ##! Docs: https://gitlab.com/gitlab-org/gitaly/blob/master/doc/design_ha.md
  2072. ################################################################################
  2073. # praefect['enable'] = false
  2074. # praefect['dir'] = "/var/opt/gitlab/praefect"
  2075. # praefect['log_directory'] = "/var/log/gitlab/praefect"
  2076. # praefect['env_directory'] = "/opt/gitlab/etc/praefect/env"
  2077. # praefect['env'] = {
  2078. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/",
  2079. # 'GITALY_PID_FILE' => "/var/opt/gitlab/praefect/praefect.pid",
  2080. # 'WRAPPER_JSON_LOGGING' => true
  2081. # }
  2082. # praefect['wrapper_path'] = "/opt/gitlab/embedded/bin/gitaly-wrapper"
  2083. # praefect['failover_enabled'] = true
  2084. # praefect['failover_timeout'] = "10s"
  2085. # praefect['auth_token'] = ""
  2086. # praefect['auth_transitioning'] = false
  2087. # praefect['listen_addr'] = "localhost:2305"
  2088. # praefect['tls_listen_addr'] = "localhost:3305"
  2089. # praefect['certificate_path'] = "/var/opt/gitlab/prafect/certificate.pem"
  2090. # praefect['key_path'] = "/var/opt/gitlab/prafect/key.pem"
  2091. # praefect['prometheus_listen_addr'] = "localhost:9652"
  2092. # praefect['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]"
  2093. # praefect['logging_level'] = "warn"
  2094. # praefect['logging_format'] = "json"
  2095. # praefect['virtual_storages'] = {
  2096. # 'default' => {
  2097. # 'default_replication_factor' => 3,
  2098. # 'nodes' => {
  2099. # 'praefect-internal-0' => {
  2100. # 'address' => 'tcp://10.23.56.78:8075',
  2101. # 'token' => 'abc123'
  2102. # },
  2103. # 'praefect-internal-1' => {
  2104. # 'address' => 'tcp://10.76.23.31:8075',
  2105. # 'token' => 'xyz456'
  2106. # }
  2107. # }
  2108. # },
  2109. # 'alternative' => {
  2110. # 'nodes' => {
  2111. # 'praefect-internal-2' => {
  2112. # 'address' => 'tcp://10.34.1.16:8075',
  2113. # 'token' => 'abc321'
  2114. # },
  2115. # 'praefect-internal-3' => {
  2116. # 'address' => 'tcp://10.23.18.6:8075',
  2117. # 'token' => 'xyz890'
  2118. # }
  2119. # }
  2120. # }
  2121. # }
  2122. # praefect['background_verification_verification_interval'] = "72h"
  2123. # praefect['background_verification_delete_invalid_records'] = false
  2124. # praefect['sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
  2125. # praefect['sentry_environment'] = "production"
  2126. # praefect['auto_migrate'] = true
  2127. # praefect['database_host'] = 'postgres.external'
  2128. # praefect['database_port'] = 6432
  2129. # praefect['database_user'] = 'praefect'
  2130. # praefect['database_password'] = 'secret'
  2131. # praefect['database_dbname'] = 'praefect_production'
  2132. # praefect['database_sslmode'] = 'disable'
  2133. # praefect['database_sslcert'] = '/path/to/client-cert'
  2134. # praefect['database_sslkey'] = '/path/to/client-key'
  2135. # praefect['database_sslrootcert'] = '/path/to/rootcert'
  2136. # praefect['reconciliation_scheduling_interval'] = '5m'
  2137. # praefect['reconciliation_histogram_buckets'] = '[0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0]'
  2138. # praefect['database_direct_host'] = 'postgres.internal'
  2139. # praefect['database_direct_port'] = 5432
  2140. # praefect['database_direct_user'] = 'praefect'
  2141. # praefect['database_direct_password'] = 'secret'
  2142. # praefect['database_direct_dbname'] = 'praefect_production_direct'
  2143. # praefect['database_direct_sslmode'] = 'disable'
  2144. # praefect['database_direct_sslcert'] = '/path/to/client-cert'
  2145. # praefect['database_direct_sslkey'] = '/path/to/client-key'
  2146. # praefect['database_direct_sslrootcert'] = '/path/to/rootcert'
  2147. ##! Service name used to register Praefect as a Consul service
  2148. # praefect['consul_service_name'] = 'praefect'
  2149. ##! Semantic metadata used when registering Praefect as a Consul service
  2150. # praefect['consul_service_meta'] = {}
  2151. ################################################################################
  2152. # Storage check
  2153. ################################################################################
  2154. # storage_check['enable'] = false
  2155. # storage_check['target'] = 'unix:///var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  2156. # storage_check['log_directory'] = '/var/log/gitlab/storage-check'
  2157. ################################################################################
  2158. # Let's Encrypt integration
  2159. ################################################################################
  2160. # letsencrypt['enable'] = nil
  2161. # letsencrypt['contact_emails'] = [] # This should be an array of email addresses to add as contacts
  2162. # letsencrypt['group'] = 'root'
  2163. # letsencrypt['key_size'] = 2048
  2164. # letsencrypt['owner'] = 'root'
  2165. # letsencrypt['wwwroot'] = '/var/opt/gitlab/nginx/www'
  2166. # See http://docs.gitlab.com/omnibus/settings/ssl.html#automatic-renewal for more on these sesttings
  2167. # letsencrypt['auto_renew'] = true
  2168. # letsencrypt['auto_renew_hour'] = 0
  2169. # letsencrypt['auto_renew_minute'] = nil # Should be a number or cron expression, if specified.
  2170. # letsencrypt['auto_renew_day_of_month'] = "*/4"
  2171. # letsencrypt['auto_renew_log_directory'] = '/var/log/gitlab/lets-encrypt'
  2172. ##! Turn off automatic init system detection. To skip init detection in
  2173. ##! non-docker containers. Recommended not to change.
  2174. # package['detect_init'] = true
  2175. ##! Attempt to modify kernel paramaters. To skip this in containers where the
  2176. ##! relevant file system is read-only, set the value to false.
  2177. # package['modify_kernel_parameters'] = true
  2178. ##! Specify maximum number of tasks that can be created by the systemd unit
  2179. ##! Will be populated as TasksMax value to the unit file if user is on a systemd
  2180. ##! version that supports it (>= 227). Will be a no-op if user is not on systemd.
  2181. # package['systemd_tasks_max'] = 4915
  2182. ##! Settings to configure order of GitLab's systemd unit.
  2183. ##! Note: We do not recommend changing these values unless absolutely necessary
  2184. # package['systemd_after'] = 'multi-user.target'
  2185. # package['systemd_wanted_by'] = 'multi-user.target'
  2186. ################################################################################
  2187. ################################################################################
  2188. ## Configuration Settings for GitLab EE only ##
  2189. ################################################################################
  2190. ################################################################################
  2191. ################################################################################
  2192. ## Auxiliary cron jobs applicable to GitLab EE only
  2193. ################################################################################
  2194. #
  2195. # gitlab_rails['geo_repository_sync_worker_cron'] = "*/5 * * * *"
  2196. # gitlab_rails['geo_secondary_registry_consistency_worker'] = "* * * * *"
  2197. # gitlab_rails['geo_secondary_usage_data_cron_worker'] = "0 0 * * 0"
  2198. # gitlab_rails['geo_prune_event_log_worker_cron'] = "*/5 * * * *"
  2199. # gitlab_rails['geo_repository_verification_primary_batch_worker_cron'] = "*/5 * * * *"
  2200. # gitlab_rails['geo_repository_verification_secondary_scheduler_worker_cron'] = "*/5 * * * *"
  2201. # gitlab_rails['ldap_sync_worker_cron'] = "30 1 * * *"
  2202. # gitlab_rails['ldap_group_sync_worker_cron'] = "0 * * * *"
  2203. # gitlab_rails['historical_data_worker_cron'] = "0 12 * * *"
  2204. # gitlab_rails['elastic_index_bulk_cron'] = "*/1 * * * *"
  2205. # gitlab_rails['analytics_devops_adoption_create_all_snapshots_worker_cron'] = "0 4 * * 0"
  2206. # gitlab_rails['ci_runners_stale_group_runners_prune_worker_cron'] = "30 * * * *"
  2207. ################################################################################
  2208. ## Kerberos (EE Only)
  2209. ##! Docs: https://docs.gitlab.com/ee/integration/kerberos.html#http-git-access
  2210. ################################################################################
  2211. # gitlab_rails['kerberos_enabled'] = true
  2212. # gitlab_rails['kerberos_keytab'] = /etc/http.keytab
  2213. # gitlab_rails['kerberos_service_principal_name'] = HTTP/gitlab.example.com@EXAMPLE.COM
  2214. # gitlab_rails['kerberos_simple_ldap_linking_allowed_realms'] = ['example.com','kerberos.example.com']
  2215. # gitlab_rails['kerberos_use_dedicated_port'] = true
  2216. # gitlab_rails['kerberos_port'] = 8443
  2217. # gitlab_rails['kerberos_https'] = true
  2218. ################################################################################
  2219. ## Package repository
  2220. ##! Docs: https://docs.gitlab.com/ee/administration/packages/
  2221. ################################################################################
  2222. # gitlab_rails['packages_enabled'] = true
  2223. # gitlab_rails['packages_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/packages"
  2224. # gitlab_rails['packages_object_store_enabled'] = false
  2225. # gitlab_rails['packages_object_store_proxy_download'] = false
  2226. # gitlab_rails['packages_object_store_remote_directory'] = "packages"
  2227. # gitlab_rails['packages_object_store_connection'] = {
  2228. # 'provider' => 'AWS',
  2229. # 'region' => 'eu-west-1',
  2230. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  2231. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  2232. # # # The below options configure an S3 compatible host instead of AWS
  2233. # # 'host' => 's3.amazonaws.com',
  2234. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  2235. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  2236. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  2237. # }
  2238. ################################################################################
  2239. ## Dependency proxy
  2240. ##! Docs: https://docs.gitlab.com/ee/administration/packages/dependency_proxy.html
  2241. ################################################################################
  2242. # gitlab_rails['dependency_proxy_enabled'] = true
  2243. # gitlab_rails['dependency_proxy_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/dependency_proxy"
  2244. # gitlab_rails['dependency_proxy_object_store_enabled'] = false
  2245. # gitlab_rails['dependency_proxy_object_store_proxy_download'] = false
  2246. # gitlab_rails['dependency_proxy_object_store_remote_directory'] = "dependency_proxy"
  2247. # gitlab_rails['dependency_proxy_object_store_connection'] = {
  2248. # 'provider' => 'AWS',
  2249. # 'region' => 'eu-west-1',
  2250. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  2251. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  2252. # # # The below options configure an S3 compatible host instead of AWS
  2253. # # 'host' => 's3.amazonaws.com',
  2254. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  2255. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  2256. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  2257. # }
  2258. ################################################################################
  2259. ## GitLab Sentinel (EE Only)
  2260. ##! Docs: http://docs.gitlab.com/ce/administration/high_availability/redis.html#high-availability-with-sentinel
  2261. ################################################################################
  2262. ##! **Make sure you configured all redis['master_*'] keys above before
  2263. ##! continuing.**
  2264. ##! To enable Sentinel and disable all other services in this machine,
  2265. ##! uncomment the line below (if you've enabled Redis role, it will keep it).
  2266. ##! Docs: https://docs.gitlab.com/ee/administration/high_availability/redis.html
  2267. # redis_sentinel_role['enable'] = true
  2268. # sentinel['enable'] = true
  2269. ##! Bind to all interfaces, uncomment to specify an IP and bind to a single one
  2270. # sentinel['bind'] = '0.0.0.0'
  2271. ##! Uncomment to change default port
  2272. # sentinel['port'] = 26379
  2273. #### Support to run sentinels in a Docker or NAT environment
  2274. #####! Docs: https://redis.io/topics/sentinel#sentinel-docker-nat-and-possible-issues
  2275. # 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
  2276. # Only define these values if it is needed to announce for Sentinel a differen IP service than Redis
  2277. # sentinel['announce_ip'] = nil # If not defined, its value will be taken from redis['announce_ip'] or nil if not present
  2278. # sentinel['announce_port'] = nil # If not defined, its value will be taken from sentinel['port'] or nil if redis['announce_ip'] not present
  2279. ##! Quorum must reflect the amount of voting sentinels it take to start a
  2280. ##! failover.
  2281. ##! **Value must NOT be greater then the amount of sentinels.**
  2282. ##! The quorum can be used to tune Sentinel in two ways:
  2283. ##! 1. If a the quorum is set to a value smaller than the majority of Sentinels
  2284. ##! we deploy, we are basically making Sentinel more sensible to master
  2285. ##! failures, triggering a failover as soon as even just a minority of
  2286. ##! Sentinels is no longer able to talk with the master.
  2287. ##! 2. If a quorum is set to a value greater than the majority of Sentinels, we
  2288. ##! are making Sentinel able to failover only when there are a very large
  2289. ##! number (larger than majority) of well connected Sentinels which agree
  2290. ##! about the master being down.
  2291. # sentinel['quorum'] = 1
  2292. ### Consider unresponsive server down after x amount of ms.
  2293. # sentinel['down_after_milliseconds'] = 10000
  2294. ### Specifies the failover timeout in milliseconds.
  2295. ##! It is used in many ways:
  2296. ##!
  2297. ##! - The time needed to re-start a failover after a previous failover was
  2298. ##! already tried against the same master by a given Sentinel, is two
  2299. ##! times the failover timeout.
  2300. ##!
  2301. ##! - The time needed for a replica replicating to a wrong master according
  2302. ##! to a Sentinel current configuration, to be forced to replicate
  2303. ##! with the right master, is exactly the failover timeout (counting since
  2304. ##! the moment a Sentinel detected the misconfiguration).
  2305. ##!
  2306. ##! - The time needed to cancel a failover that is already in progress but
  2307. ##! did not produced any configuration change (REPLICAOF NO ONE yet not
  2308. ##! acknowledged by the promoted replica).
  2309. ##!
  2310. ##! - The maximum time a failover in progress waits for all the replicas to be
  2311. ##! reconfigured as replicas of the new master. However even after this time
  2312. ##! the replicas will be reconfigured by the Sentinels anyway, but not with
  2313. ##! the exact parallel-syncs progression as specified.
  2314. # sentinel['failover_timeout'] = 60000
  2315. ### Sentinel TLS settings
  2316. ###! To run Sentinel over TLS, specify values for the following settings
  2317. # sentinel['tls_port'] = nil
  2318. # sentinel['tls_cert_file'] = nil
  2319. # sentinel['tls_key_file'] = nil
  2320. ###! Other TLS related optional settings
  2321. # sentinel['tls_dh_params_file'] = nil
  2322. # sentinel['tls_ca_cert_dir'] = '/opt/gitlab/embedded/ssl/certs/'
  2323. # sentinel['tls_ca_cert_file'] = '/opt/gitlab/embedded/ssl/certs/cacert.pem'
  2324. # sentinel['tls_auth_clients'] = 'optional'
  2325. # sentinel['tls_replication'] = nil
  2326. # sentinel['tls_cluster'] = nil
  2327. # sentinel['tls_protocols'] = nil
  2328. # sentinel['tls_ciphers'] = nil
  2329. # sentinel['tls_ciphersuites'] = nil
  2330. # sentinel['tls_prefer_server_ciphers'] = nil
  2331. # sentinel['tls_session_caching'] = nil
  2332. # sentinel['tls_session_cache_size'] = nil
  2333. # sentinel['tls_session_cache_timeout'] = nil
  2334. ### Sentinel hostname support
  2335. ###! When enabled, Redis will leverage hostname support
  2336. ###! Generally this does not need to be changed as we determine this based on
  2337. ###! the provided input from `redis['announce_ip']`
  2338. ###! * This is configured to `true` when a fully qualified hostname is provided
  2339. ###! * This is configured to `false` when an IP address is provided
  2340. # sentinel['use_hostnames'] = <calculated>
  2341. ################################################################################
  2342. ## Additional Database Settings (EE only)
  2343. ##! Docs: https://docs.gitlab.com/ee/administration/database_load_balancing.html
  2344. ################################################################################
  2345. # gitlab_rails['db_load_balancing'] = { 'hosts' => ['secondary1.example.com'] }
  2346. ################################################################################
  2347. ## GitLab Geo
  2348. ##! Docs: https://docs.gitlab.com/ee/gitlab-geo
  2349. ################################################################################
  2350. ##! Geo roles 'geo_primary_role' and 'geo_secondary_role' are set above with
  2351. ##! other roles. For more information, see: https://docs.gitlab.com/omnibus/roles/index.html#roles.
  2352. # This is an optional identifier which Geo nodes can use to identify themselves.
  2353. # For example, if external_url is the same for two secondaries, you must specify
  2354. # a unique Geo node name for those secondaries.
  2355. #
  2356. # If it is blank, it defaults to external_url.
  2357. # gitlab_rails['geo_node_name'] = nil
  2358. # gitlab_rails['geo_registry_replication_enabled'] = true
  2359. # gitlab_rails['geo_registry_replication_primary_api_url'] = 'https://example.com:5050'
  2360. ################################################################################
  2361. ## GitLab Geo Secondary (EE only)
  2362. ################################################################################
  2363. # geo_secondary['auto_migrate'] = true
  2364. # geo_secondary['db_adapter'] = "postgresql"
  2365. # geo_secondary['db_encoding'] = "unicode"
  2366. # geo_secondary['db_collation'] = nil
  2367. # geo_secondary['db_database'] = "gitlabhq_geo_production"
  2368. # geo_secondary['db_username'] = "gitlab_geo"
  2369. # geo_secondary['db_password'] = nil
  2370. # geo_secondary['db_host'] = "/var/opt/gitlab/geo-postgresql"
  2371. # geo_secondary['db_port'] = 5431
  2372. # geo_secondary['db_socket'] = nil
  2373. # geo_secondary['db_sslmode'] = nil
  2374. # geo_secondary['db_sslcompression'] = 0
  2375. # geo_secondary['db_sslrootcert'] = nil
  2376. # geo_secondary['db_sslca'] = nil
  2377. # geo_secondary['db_prepared_statements'] = false
  2378. # geo_secondary['db_database_tasks'] = true
  2379. ################################################################################
  2380. ## GitLab Geo Secondary Tracking Database (EE only)
  2381. ################################################################################
  2382. # geo_postgresql['enable'] = false
  2383. # geo_postgresql['ha'] = false
  2384. # geo_postgresql['dir'] = '/var/opt/gitlab/geo-postgresql'
  2385. # geo_postgresql['pgbouncer_user'] = nil
  2386. # geo_postgresql['pgbouncer_user_password'] = nil
  2387. ##! `SQL_USER_PASSWORD_HASH` can be generated using the command `gitlab-ctl pg-password-md5 gitlab`
  2388. # geo_postgresql['sql_user_password'] = 'SQL_USER_PASSWORD_HASH'
  2389. # geo_postgresql['log_directory'] = '/var/log/gitlab/geo-postgresql'
  2390. ##! Automatically restart PostgreSQL service when version changes.
  2391. # geo_postgresql['auto_restart_on_version_change'] = true
  2392. ################################################################################
  2393. ## GitLab Geo Log Cursor Daemon (EE only)
  2394. ################################################################################
  2395. # geo_logcursor['log_directory'] = '/var/log/gitlab/geo-logcursor'
  2396. ################################################################################
  2397. ## Unleash
  2398. ##! These settings are for GitLab internal use.
  2399. ##! They are used to control feature flags during GitLab development.
  2400. ##! Docs: https://docs.gitlab.com/ee/development/feature_flags
  2401. ################################################################################
  2402. # gitlab_rails['feature_flags_unleash_enabled'] = false
  2403. # gitlab_rails['feature_flags_unleash_url'] = nil
  2404. # gitlab_rails['feature_flags_unleash_app_name'] = nil
  2405. # gitlab_rails['feature_flags_unleash_instance_id'] = nil
  2406. ################################################################################
  2407. # Pgbouncer (EE only)
  2408. # See [GitLab PgBouncer documentation](http://docs.gitlab.com/omnibus/settings/database.html#enabling-pgbouncer-ee-only)
  2409. # See the [PgBouncer page](https://pgbouncer.github.io/config.html) for details
  2410. ################################################################################
  2411. # pgbouncer['enable'] = false
  2412. # pgbouncer['log_directory'] = '/var/log/gitlab/pgbouncer'
  2413. # pgbouncer['data_directory'] = '/var/opt/gitlab/pgbouncer'
  2414. # pgbouncer['env_directory'] = '/opt/gitlab/etc/pgbouncer/env'
  2415. # pgbouncer['env'] = {
  2416. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  2417. # }
  2418. # pgbouncer['listen_addr'] = '0.0.0.0'
  2419. # pgbouncer['listen_port'] = '6432'
  2420. # pgbouncer['pool_mode'] = 'transaction'
  2421. # pgbouncer['server_reset_query'] = 'DISCARD ALL'
  2422. # pgbouncer['application_name_add_host'] = '1'
  2423. # pgbouncer['max_client_conn'] = '2048'
  2424. # pgbouncer['default_pool_size'] = '100'
  2425. # pgbouncer['min_pool_size'] = '0'
  2426. # pgbouncer['reserve_pool_size'] = '5'
  2427. # pgbouncer['reserve_pool_timeout'] = '5.0'
  2428. # pgbouncer['server_round_robin'] = '0'
  2429. # pgbouncer['log_connections'] = '0'
  2430. # pgbouncer['server_idle_timeout'] = '30'
  2431. # pgbouncer['dns_max_ttl'] = '15.0'
  2432. # pgbouncer['dns_zone_check_period'] = '0'
  2433. # pgbouncer['dns_nxdomain_ttl'] = '15.0'
  2434. # pgbouncer['admin_users'] = %w(gitlab-psql postgres pgbouncer)
  2435. # pgbouncer['stats_users'] = %w(gitlab-psql postgres pgbouncer)
  2436. # pgbouncer['ignore_startup_parameters'] = 'extra_float_digits'
  2437. # pgbouncer['databases'] = {
  2438. # DATABASE_NAME: {
  2439. # host: HOSTNAME,
  2440. # port: PORT
  2441. # user: USERNAME,
  2442. # password: PASSWORD
  2443. ###! generate this with `echo -n '$password + $username' | md5sum`
  2444. # }
  2445. # ...
  2446. # }
  2447. # pgbouncer['logfile'] = nil
  2448. # pgbouncer['unix_socket_dir'] = nil
  2449. # pgbouncer['unix_socket_mode'] = '0777'
  2450. # pgbouncer['unix_socket_group'] = nil
  2451. # pgbouncer['auth_type'] = 'md5'
  2452. # pgbouncer['auth_hba_file'] = nil
  2453. # pgbouncer['auth_query'] = 'SELECT username, password FROM public.pg_shadow_lookup($1)'
  2454. # pgbouncer['users'] = {
  2455. # USERNAME: {
  2456. # 'password': MD5_PASSWORD_HASH,
  2457. # }
  2458. # }
  2459. # postgresql['pgbouncer_user'] = nil
  2460. # postgresql['pgbouncer_user_password'] = nil
  2461. # pgbouncer['server_reset_query_always'] = 0
  2462. # pgbouncer['server_check_query'] = 'select 1'
  2463. # pgbouncer['server_check_delay'] = 30
  2464. # pgbouncer['max_db_connections'] = nil
  2465. # pgbouncer['max_user_connections'] = nil
  2466. # pgbouncer['syslog'] = 0
  2467. # pgbouncer['syslog_facility'] = 'daemon'
  2468. # pgbouncer['syslog_ident'] = 'pgbouncer'
  2469. # pgbouncer['log_disconnections'] = 1
  2470. # pgbouncer['log_pooler_errors'] = 1
  2471. # pgbouncer['stats_period'] = 60
  2472. # pgbouncer['verbose'] = 0
  2473. # pgbouncer['server_lifetime'] = 3600
  2474. # pgbouncer['server_connect_timeout'] = 15
  2475. # pgbouncer['server_login_retry'] = 15
  2476. # pgbouncer['query_timeout'] = 0
  2477. # pgbouncer['query_wait_timeout'] = 120
  2478. # pgbouncer['client_idle_timeout'] = 0
  2479. # pgbouncer['client_login_timeout'] = 60
  2480. # pgbouncer['autodb_idle_timeout'] = 3600
  2481. # pgbouncer['suspend_timeout'] = 10
  2482. # pgbouncer['idle_transaction_timeout'] = 0
  2483. # pgbouncer['pkt_buf'] = 4096
  2484. # pgbouncer['listen_backlog'] = 128
  2485. # pgbouncer['sbuf_loopcnt'] = 5
  2486. # pgbouncer['max_packet_size'] = 2147483647
  2487. # pgbouncer['tcp_defer_accept'] = 0
  2488. # pgbouncer['tcp_socket_buffer'] = 0
  2489. # pgbouncer['tcp_keepalive'] = 1
  2490. # pgbouncer['tcp_keepcnt'] = 0
  2491. # pgbouncer['tcp_keepidle'] = 0
  2492. # pgbouncer['tcp_keepintvl'] = 0
  2493. # pgbouncer['disable_pqexec'] = 0
  2494. ## Pgbouncer client TLS options
  2495. # pgbouncer['client_tls_sslmode'] = 'disable'
  2496. # pgbouncer['client_tls_ca_file'] = nil
  2497. # pgbouncer['client_tls_key_file'] = nil
  2498. # pgbouncer['client_tls_cert_file'] = nil
  2499. # pgbouncer['client_tls_protocols'] = 'all'
  2500. # pgbouncer['client_tls_dheparams'] = 'auto'
  2501. # pgbouncer['client_tls_ecdhcurve'] = 'auto'
  2502. #
  2503. ## Pgbouncer server TLS options
  2504. # pgbouncer['server_tls_sslmode'] = 'disable'
  2505. # pgbouncer['server_tls_ca_file'] = nil
  2506. # pgbouncer['server_tls_key_file'] = nil
  2507. # pgbouncer['server_tls_cert_file'] = nil
  2508. # pgbouncer['server_tls_protocols'] = 'all'
  2509. # pgbouncer['server_tls_ciphers'] = 'fast'
  2510. ################################################################################
  2511. # Patroni (EE only)
  2512. ################################################################################
  2513. # patroni['enable'] = false
  2514. # patroni['dir'] = '/var/opt/gitlab/patroni'
  2515. # patroni['ctl_command'] = '/opt/gitlab/embedded/bin/patronictl'
  2516. ## Patroni dynamic configuration settings
  2517. # patroni['loop_wait'] = 10
  2518. # patroni['ttl'] = 30
  2519. # patroni['retry_timeout'] = 10
  2520. # patroni['maximum_lag_on_failover'] = 1_048_576
  2521. # patroni['max_timelines_history'] = 0
  2522. # patroni['master_start_timeout'] = 300
  2523. # patroni['use_pg_rewind'] = true
  2524. # patroni['remove_data_directory_on_rewind_failure'] = false
  2525. # patroni['remove_data_directory_on_diverged_timelines'] = false
  2526. # patroni['use_slots'] = true
  2527. # patroni['replication_password'] = nil
  2528. # patroni['replication_slots'] = {}
  2529. # patroni['callbacks'] = {}
  2530. # patroni['recovery_conf'] = {}
  2531. # patroni['tags'] = {}
  2532. ## Standby cluster replication settings
  2533. # patroni['standby_cluster']['enable'] = false
  2534. # patroni['standby_cluster']['host'] = nil
  2535. # patroni['standby_cluster']['port'] = 5432
  2536. # patroni['standby_cluster']['primary_slot_name'] = nil
  2537. ## Global/Universal settings
  2538. # patroni['scope'] = 'gitlab-postgresql-ha'
  2539. # patroni['name'] = nil
  2540. ## Log settings
  2541. # patroni['log_directory'] = '/var/log/gitlab/patroni'
  2542. # patroni['log_level'] = 'INFO'
  2543. ## Consul specific settings
  2544. # patroni['consul']['url'] = 'http://127.0.0.1:8500'
  2545. # patroni['consul']['service_check_interval'] = '10s'
  2546. # patroni['consul']['register_service'] = true
  2547. # patroni['consul']['checks'] = []
  2548. ## PostgreSQL configuration override
  2549. # patroni['postgresql']['hot_standby'] = 'on'
  2550. ## The following must hold the same values on all nodes.
  2551. ## Leave unassined to use PostgreSQL's default values.
  2552. # patroni['postgresql']['wal_level'] = 'replica'
  2553. # patroni['postgresql']['wal_log_hints'] = 'on'
  2554. patroni['postgresql']['max_worker_processes'] = 4
  2555. # patroni['postgresql']['max_locks_per_transaction'] = 64
  2556. # patroni['postgresql']['max_connections'] = 200
  2557. # patroni['postgresql']['checkpoint_timeout'] = 30
  2558. ## The following can hold different values on all nodes.
  2559. ## Leave unassined to use PostgreSQL's default values.
  2560. # patroni['postgresql']['wal_keep_segments'] = 8
  2561. # patroni['postgresql']['max_wal_senders'] = 5
  2562. # patroni['postgresql']['max_replication_slots'] = 5
  2563. ## Permanent replication slots for Streaming Replication
  2564. # patroni['replication_slots'] = {
  2565. # 'geo_secondary' => { 'type' => 'physical' }
  2566. # }
  2567. ## The address and port that Patroni API binds to and listens on.
  2568. # patroni['listen_address'] = nil
  2569. # patroni['port'] = '8008'
  2570. ## The address of the Patroni node that is advertized to other cluster
  2571. ## members to communicate with its API and PostgreSQL. If it is not specified,
  2572. ## it tries to use the first available private IP and falls back to the default
  2573. ## network interface.
  2574. # patroni['connect_address'] = nil
  2575. ## The port that Patroni API responds to other cluster members. This port is
  2576. ## advertized and by default is the same as patroni['port'].
  2577. # patroni['connect_port'] = '8008'
  2578. ## Specifies the set of hosts that are allowed to call unsafe REST API endpoints.
  2579. ## Each item can be an hostname, IP address, or CIDR address.
  2580. ## All hosts are allowed if this is unset.
  2581. # patroni['allowlist'] = []
  2582. # patroni['allowlist_include_members'] = false
  2583. ## The username and password to use for basic auth on write commands to the
  2584. ## Patroni API. If not specified then the API does not use basic auth.
  2585. # patroni['username'] = nil
  2586. # patroni['password'] = nil
  2587. ## TLS configuration for Patroni API. Both certificate and key files are
  2588. ## required to enable TLS. If not specified then the API uses plain HTTP.
  2589. # patroni['tls_certificate_file'] = nil
  2590. # patroni['tls_key_file'] = nil
  2591. # patroni['tls_key_password'] = nil
  2592. # patroni['tls_ca_file'] = nil
  2593. # patroni['tls_ciphers'] = nil
  2594. # patroni['tls_client_mode'] = nil
  2595. # patroni['tls_client_certificate_file'] = nil
  2596. # patroni['tls_client_key_file'] = nil
  2597. # patroni['tls_verify'] = true
  2598. ################################################################################
  2599. # Consul (EEP only)
  2600. ################################################################################
  2601. # consul['enable'] = false
  2602. # consul['dir'] = '/var/opt/gitlab/consul'
  2603. # consul['username'] = 'gitlab-consul'
  2604. # consul['group'] = 'gitlab-consul'
  2605. # consul['config_file'] = '/var/opt/gitlab/consul/config.json'
  2606. # consul['config_dir'] = '/var/opt/gitlab/consul/config.d'
  2607. # consul['data_dir'] = '/var/opt/gitlab/consul/data'
  2608. # consul['log_directory'] = '/var/log/gitlab/consul'
  2609. # consul['env_directory'] = '/opt/gitlab/etc/consul/env'
  2610. # consul['env'] = {
  2611. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  2612. # }
  2613. # consul['monitoring_service_discovery'] = false
  2614. # consul['node_name'] = nil
  2615. # consul['script_directory'] = '/var/opt/gitlab/consul/scripts'
  2616. # consul['configuration'] = {
  2617. # 'client_addr' => nil,
  2618. # 'datacenter' => 'gitlab_consul',
  2619. # 'enable_script_checks' => true,
  2620. # 'server' => false
  2621. # }
  2622. # consul['services'] = []
  2623. # consul['service_config'] = {
  2624. # 'postgresql' => {
  2625. # 'service' => {
  2626. # 'name' => "postgresql",
  2627. # 'address' => '',
  2628. # 'port' => 5432,
  2629. # 'checks' => [
  2630. # {
  2631. # 'script' => "/var/opt/gitlab/consul/scripts/check_postgresql",
  2632. # 'interval' => "10s"
  2633. # }
  2634. # ]
  2635. # }
  2636. # }
  2637. # }
  2638. # consul['watchers'] = []
  2639. #
  2640. # consul['custom_config_dir'] = '/path/to/service/configs/directory'
  2641. #
  2642. #### HTTP API ports
  2643. # consul['http_port'] = nil
  2644. # consul['https_port'] = nil
  2645. #### Gossip encryption
  2646. # consul['encryption_key'] = nil
  2647. # consul['encryption_verify_incoming'] = nil
  2648. # consul['encryption_verify_outgoing'] = nil
  2649. #### TLS settings
  2650. # consul['use_tls'] = false
  2651. # consul['tls_ca_file'] = nil
  2652. # consul['tls_certificate_file'] = nil
  2653. # consul['tls_key_file'] = nil
  2654. # consul['tls_verify_client'] = nil
  2655. ################################################################################
  2656. # Service desk email settings
  2657. ################################################################################
  2658. ### Service desk email
  2659. ###! Allow users to create new service desk issues by sending an email to
  2660. ###! service desk address.
  2661. ###! Docs: https://docs.gitlab.com/ee/user/project/service_desk.html
  2662. # gitlab_rails['service_desk_email_enabled'] = false
  2663. #### Service Desk Mailbox Settings (via `mail_room`)
  2664. #### Service Desk Email Address
  2665. ####! The email address including the `%{key}` placeholder that will be replaced
  2666. ####! to reference the item being replied to.
  2667. ####! **The placeholder can be omitted but if present, it must appear in the
  2668. ####! "user" part of the address (before the `@`).**
  2669. # gitlab_rails['service_desk_email_address'] = "contact_project+%{key}@gmail.com"
  2670. #### Service Desk Email account username
  2671. ####! **With third party providers, this is usually the full email address.**
  2672. ####! **With self-hosted email servers, this is usually the user part of the
  2673. ####! email address.**
  2674. # gitlab_rails['service_desk_email_email'] = "contact_project@gmail.com"
  2675. #### Service Desk Email account password
  2676. # gitlab_rails['service_desk_email_password'] = "[REDACTED]"
  2677. ####! The mailbox where service desk mail will end up. Usually "inbox".
  2678. # gitlab_rails['service_desk_email_mailbox_name'] = "inbox"
  2679. ####! The IDLE command timeout.
  2680. # gitlab_rails['service_desk_email_idle_timeout'] = 60
  2681. ####! The file name for internal `mail_room` JSON logfile
  2682. # gitlab_rails['service_desk_email_log_file'] = "/var/log/gitlab/mailroom/mail_room_json.log"
  2683. #### Service Desk IMAP Settings
  2684. # gitlab_rails['service_desk_email_host'] = "imap.gmail.com"
  2685. # gitlab_rails['service_desk_email_port'] = 993
  2686. # gitlab_rails['service_desk_email_ssl'] = true
  2687. # gitlab_rails['service_desk_email_start_tls'] = false
  2688. #### Inbox options (for Microsoft Graph)
  2689. # gitlab_rails['service_desk_email_inbox_method'] = 'microsoft_graph'
  2690. # gitlab_rails['service_desk_email_inbox_options'] = {
  2691. # 'tenant_id': 'YOUR-TENANT-ID',
  2692. # 'client_id': 'YOUR-CLIENT-ID',
  2693. # 'client_secret': 'YOUR-CLIENT-SECRET',
  2694. # 'poll_interval': 60 # Optional
  2695. # }
  2696. #### How service desk emails are delivered to Rails process. Accept either
  2697. #### sidekiq or webhook. The default config is webhook.
  2698. # gitlab_rails['service_desk_email_delivery_method'] = "webhook"
  2699. #### Token to authenticate webhook requests. The token must be exactly 32 bytes,
  2700. #### encoded with base64
  2701. # gitlab_rails['service_desk_email_auth_token'] = nil
  2702. ################################################################################
  2703. ## Spamcheck (EE only)
  2704. #################################################################################
  2705. # spamcheck['enable'] = false
  2706. # spamcheck['dir'] = '/var/opt/gitlab/spamcheck'
  2707. # spamcheck['port'] = 8001
  2708. # spamcheck['external_port'] = nil
  2709. # spamcheck['monitoring_address'] = ':8003'
  2710. # spamcheck['log_level'] = 'info'
  2711. # spamcheck['log_format'] = 'json'
  2712. # spamcheck['log_output'] = 'stdout'
  2713. # spamcheck['monitor_mode'] = false
  2714. # spamcheck['allowlist'] = {}
  2715. # spamcheck['denylist'] = {}
  2716. # spamcheck['log_directory'] = "/var/log/gitlab/spamcheck"
  2717. # spamcheck['env_directory'] = "/opt/gitlab/etc/spamcheck/env"
  2718. # spamcheck['env'] = {
  2719. # 'SSL_CERT_DIR' => '/opt/gitlab/embedded/ssl/cers'
  2720. # }
  2721. # spamcheck['classifier']['log_directory'] = "/var/log/gitlab/spam-classifier"

参考资料

https://blog.csdn.net/sD7O95O/article/details/125903326

https://blog.csdn.net/ouyang_peng/article/details/84066417

https://zhuanlan.zhihu.com/p/389717047 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/816175
推荐阅读
相关标签
  

闽ICP备14008679号