gitlab.rb 101 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386
  1. ## GitLab configuration settings
  2. ##! This file is generated during initial installation and **is not** modified
  3. ##! during upgrades.
  4. ##! Check out the latest version of this file to know about the different
  5. ##! settings that can be configured by this file, which may be found at:
  6. ##! https://gitlab.com/gitlab-org/omnibus-gitlab/raw/master/files/gitlab-config-template/gitlab.rb.template
  7. ##! You can run `gitlab-ctl diff-config` to compare the contents of the current gitlab.rb with
  8. ##! the gitlab.rb.template from the currently running version.
  9. ##! You can run `gitlab-ctl show-config` to display the configuration that will be generated by
  10. ##! running `gitlab-ctl reconfigure`
  11. ##! In general, the values specified here should reflect what the default value of the attribute will be.
  12. ##! There are instances where this behavior is not possible or desired. For example, when providing passwords,
  13. ##! or connecting to third party services.
  14. ##! In those instances, we endeavour to provide an example configuration.
  15. ## GitLab URL
  16. ##! URL on which GitLab will be reachable.
  17. ##! For more details on configuring external_url see:
  18. ##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
  19. ##!
  20. ##! Note: During installation/upgrades, the value of the environment variable
  21. ##! EXTERNAL_URL will be used to populate/replace this value.
  22. ##! On AWS EC2 instances, we also attempt to fetch the public hostname/IP
  23. ##! address from AWS. For more details, see:
  24. ##! https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
  25. external_url 'http://gitlab.example.com'
  26. ## Roles for multi-instance GitLab
  27. ##! The default is to have no roles enabled, which results in GitLab running as an all-in-one instance.
  28. ##! Options:
  29. ##! redis_sentinel_role redis_master_role redis_slave_role geo_primary_role geo_secondary_role
  30. ##! For more details on each role, see:
  31. ##! https://docs.gitlab.com/omnibus/roles/README.html#roles
  32. ##!
  33. # roles ['redis_sentinel_role', 'redis_master_role']
  34. ## Legend
  35. ##! The following notations at the beginning of each line may be used to
  36. ##! differentiate between components of this file and to easily select them using
  37. ##! a regex.
  38. ##! ## Titles, subtitles etc
  39. ##! ##! More information - Description, Docs, Links, Issues etc.
  40. ##! Configuration settings have a single # followed by a single space at the
  41. ##! beginning; Remove them to enable the setting.
  42. ##! **Configuration settings below are optional.**
  43. ################################################################################
  44. ################################################################################
  45. ## Configuration Settings for GitLab CE and EE ##
  46. ################################################################################
  47. ################################################################################
  48. ################################################################################
  49. ## gitlab.yml configuration
  50. ##! Docs: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/gitlab.yml.md
  51. ################################################################################
  52. # gitlab_rails['gitlab_ssh_host'] = 'ssh.host_example.com'
  53. # gitlab_rails['gitlab_ssh_user'] = ''
  54. # gitlab_rails['time_zone'] = 'UTC'
  55. ### Request duration
  56. ###! Tells the rails application how long it has to complete a request
  57. ###! This value needs to be lower than the worker timeout set in unicorn/puma.
  58. ###! By default, we'll allow 95% of the the worker timeout
  59. # gitlab_rails['max_request_duration_seconds'] = 57
  60. ### Email Settings
  61. # gitlab_rails['gitlab_email_enabled'] = true
  62. # gitlab_rails['gitlab_email_from'] = 'example@example.com'
  63. # gitlab_rails['gitlab_email_display_name'] = 'Example'
  64. # gitlab_rails['gitlab_email_reply_to'] = 'noreply@example.com'
  65. # gitlab_rails['gitlab_email_subject_suffix'] = ''
  66. # gitlab_rails['gitlab_email_smime_enabled'] = false
  67. # gitlab_rails['gitlab_email_smime_key_file'] = '/etc/gitlab/ssl/gitlab_smime.key'
  68. # gitlab_rails['gitlab_email_smime_cert_file'] = '/etc/gitlab/ssl/gitlab_smime.crt'
  69. ### GitLab user privileges
  70. # gitlab_rails['gitlab_default_can_create_group'] = true
  71. # gitlab_rails['gitlab_username_changing_enabled'] = true
  72. ### Default Theme
  73. # gitlab_rails['gitlab_default_theme'] = 2
  74. ### Default project feature settings
  75. # gitlab_rails['gitlab_default_projects_features_issues'] = true
  76. # gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
  77. # gitlab_rails['gitlab_default_projects_features_wiki'] = true
  78. # gitlab_rails['gitlab_default_projects_features_snippets'] = true
  79. # gitlab_rails['gitlab_default_projects_features_builds'] = true
  80. # gitlab_rails['gitlab_default_projects_features_container_registry'] = true
  81. ### Automatic issue closing
  82. ###! See https://docs.gitlab.com/ee/customization/issue_closing.html for more
  83. ###! information about this pattern.
  84. # 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+))+)"
  85. ### Download location
  86. ###! When a user clicks e.g. 'Download zip' on a project, a temporary zip file
  87. ###! is created in the following directory.
  88. ###! Should not be the same path, or a sub directory of any of the `git_data_dirs`
  89. # gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
  90. ### Gravatar Settings
  91. # gitlab_rails['gravatar_plain_url'] = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
  92. # gitlab_rails['gravatar_ssl_url'] = 'https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
  93. ### Auxiliary jobs
  94. ###! Periodically executed jobs, to self-heal Gitlab, do external
  95. ###! synchronizations, etc.
  96. ###! Docs: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job
  97. ###! https://docs.gitlab.com/ee/ci/yaml/README.html#artifactsexpire_in
  98. # gitlab_rails['stuck_ci_jobs_worker_cron'] = "0 0 * * *"
  99. # gitlab_rails['expire_build_artifacts_worker_cron'] = "50 * * * *"
  100. # gitlab_rails['environments_auto_stop_cron_worker_cron'] = "24 * * * *"
  101. # gitlab_rails['pipeline_schedule_worker_cron'] = "19 * * * *"
  102. # gitlab_rails['ci_archive_traces_cron_worker_cron'] = "17 * * * *"
  103. # gitlab_rails['repository_check_worker_cron'] = "20 * * * *"
  104. # gitlab_rails['admin_email_worker_cron'] = "0 0 * * 0"
  105. # gitlab_rails['personal_access_tokens_expiring_worker_cron'] = "0 1 * * *"
  106. # gitlab_rails['repository_archive_cache_worker_cron'] = "0 * * * *"
  107. # gitlab_rails['pages_domain_verification_cron_worker'] = "*/15 * * * *"
  108. # gitlab_rails['pages_domain_ssl_renewal_cron_worker'] = "*/10 * * * *"
  109. # gitlab_rails['pages_domain_removal_cron_worker'] = "47 0 * * *"
  110. # gitlab_rails['schedule_migrate_external_diffs_worker_cron'] = "15 * * * *"
  111. ### Webhook Settings
  112. ###! Number of seconds to wait for HTTP response after sending webhook HTTP POST
  113. ###! request (default: 10)
  114. # gitlab_rails['webhook_timeout'] = 10
  115. ### GraphQL Settings
  116. ###! Tells the rails application how long it has to complete a GraphQL request.
  117. ###! We suggest this value to be higher than the database timeout value
  118. ###! and lower than the worker timeout set in unicorn/puma. (default: 30)
  119. # gitlab_rails['graphql_timeout'] = 30
  120. ### Trusted proxies
  121. ###! Customize if you have GitLab behind a reverse proxy which is running on a
  122. ###! different machine.
  123. ###! **Add the IP address for your reverse proxy to the list, otherwise users
  124. ###! will appear signed in from that address.**
  125. # gitlab_rails['trusted_proxies'] = []
  126. ### Content Security Policy
  127. ####! Customize if you want to enable the Content-Security-Policy header, which
  128. ####! can help thwart JavaScript cross-site scripting (XSS) attacks.
  129. ####! See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
  130. # gitlab_rails['content_security_policy'] = {
  131. # 'enabled' => false,
  132. # 'report_only' => false,
  133. # # Each directive is a String (e.g. "'self'").
  134. # 'directives' => {
  135. # 'base_uri' => nil,
  136. # 'child_src' => nil,
  137. # 'connect_src' => nil,
  138. # 'default_src' => nil,
  139. # 'font_src' => nil,
  140. # 'form_action' => nil,
  141. # 'frame_ancestors' => nil,
  142. # 'frame_src' => nil,
  143. # 'img_src' => nil,
  144. # 'manifest_src' => nil,
  145. # 'media_src' => nil,
  146. # 'object_src' => nil,
  147. # 'script_src' => nil,
  148. # 'style_src' => nil,
  149. # 'worker_src' => nil,
  150. # 'report_uri' => nil,
  151. # }
  152. # }
  153. ### Monitoring settings
  154. ###! IP whitelist controlling access to monitoring endpoints
  155. # gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8', '::1/128']
  156. ###! Time between sampling of unicorn socket metrics, in seconds
  157. # gitlab_rails['monitoring_unicorn_sampler_interval'] = 10
  158. ### Shutdown settings
  159. ###! Defines an interval to block healthcheck,
  160. ###! but continue accepting application requests.
  161. # gitlab_rails['shutdown_blackout_seconds'] = 10
  162. ### Reply by email
  163. ###! Allow users to comment on issues and merge requests by replying to
  164. ###! notification emails.
  165. ###! Docs: https://docs.gitlab.com/ee/administration/reply_by_email.html
  166. # gitlab_rails['incoming_email_enabled'] = true
  167. #### Incoming Email Address
  168. ####! The email address including the `%{key}` placeholder that will be replaced
  169. ####! to reference the item being replied to.
  170. ####! **The placeholder can be omitted but if present, it must appear in the
  171. ####! "user" part of the address (before the `@`).**
  172. # gitlab_rails['incoming_email_address'] = "gitlab-incoming+%{key}@gmail.com"
  173. #### Email account username
  174. ####! **With third party providers, this is usually the full email address.**
  175. ####! **With self-hosted email servers, this is usually the user part of the
  176. ####! email address.**
  177. # gitlab_rails['incoming_email_email'] = "gitlab-incoming@gmail.com"
  178. #### Email account password
  179. # gitlab_rails['incoming_email_password'] = "[REDACTED]"
  180. #### IMAP Settings
  181. # gitlab_rails['incoming_email_host'] = "imap.gmail.com"
  182. # gitlab_rails['incoming_email_port'] = 993
  183. # gitlab_rails['incoming_email_ssl'] = true
  184. # gitlab_rails['incoming_email_start_tls'] = false
  185. #### Incoming Mailbox Settings (via `mail_room`)
  186. ####! The mailbox where incoming mail will end up. Usually "inbox".
  187. # gitlab_rails['incoming_email_mailbox_name'] = "inbox"
  188. ####! The IDLE command timeout.
  189. # gitlab_rails['incoming_email_idle_timeout'] = 60
  190. ####! The file name for internal `mail_room` JSON logfile
  191. # gitlab_rails['incoming_email_log_file'] = "/var/log/gitlab/mailroom/mail_room_json.log"
  192. ####! The format of mail_room crash logs
  193. # mailroom['exit_log_format'] = "plain"
  194. ### Job Artifacts
  195. # gitlab_rails['artifacts_enabled'] = true
  196. # gitlab_rails['artifacts_path'] = "/var/opt/gitlab/gitlab-rails/shared/artifacts"
  197. ####! Job artifacts Object Store
  198. ####! Docs: https://docs.gitlab.com/ee/administration/job_artifacts.html#using-object-storage
  199. # gitlab_rails['artifacts_object_store_enabled'] = false
  200. # gitlab_rails['artifacts_object_store_direct_upload'] = false
  201. # gitlab_rails['artifacts_object_store_background_upload'] = true
  202. # gitlab_rails['artifacts_object_store_proxy_download'] = false
  203. # gitlab_rails['artifacts_object_store_remote_directory'] = "artifacts"
  204. # gitlab_rails['artifacts_object_store_connection'] = {
  205. # 'provider' => 'AWS',
  206. # 'region' => 'eu-west-1',
  207. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  208. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  209. # # # The below options configure an S3 compatible host instead of AWS
  210. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  211. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  212. # # 'host' => 's3.amazonaws.com',
  213. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  214. # }
  215. ### External merge request diffs
  216. # gitlab_rails['external_diffs_enabled'] = false
  217. # gitlab_rails['external_diffs_when'] = nil
  218. # gitlab_rails['external_diffs_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/external-diffs"
  219. # gitlab_rails['external_diffs_object_store_enabled'] = false
  220. # gitlab_rails['external_diffs_object_store_direct_upload'] = false
  221. # gitlab_rails['external_diffs_object_store_background_upload'] = false
  222. # gitlab_rails['external_diffs_object_store_proxy_download'] = false
  223. # gitlab_rails['external_diffs_object_store_remote_directory'] = "external-diffs"
  224. # gitlab_rails['external_diffs_object_store_connection'] = {
  225. # 'provider' => 'AWS',
  226. # 'region' => 'eu-west-1',
  227. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  228. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  229. # # # The below options configure an S3 compatible host instead of AWS
  230. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  231. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  232. # # 'host' => 's3.amazonaws.com',
  233. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  234. # }
  235. ### Git LFS
  236. # gitlab_rails['lfs_enabled'] = true
  237. # gitlab_rails['lfs_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/lfs-objects"
  238. # gitlab_rails['lfs_object_store_enabled'] = false
  239. # gitlab_rails['lfs_object_store_direct_upload'] = false
  240. # gitlab_rails['lfs_object_store_background_upload'] = true
  241. # gitlab_rails['lfs_object_store_proxy_download'] = false
  242. # gitlab_rails['lfs_object_store_remote_directory'] = "lfs-objects"
  243. # gitlab_rails['lfs_object_store_connection'] = {
  244. # 'provider' => 'AWS',
  245. # 'region' => 'eu-west-1',
  246. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  247. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  248. # # # The below options configure an S3 compatible host instead of AWS
  249. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  250. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  251. # # 'host' => 's3.amazonaws.com',
  252. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  253. # }
  254. ### GitLab uploads
  255. ###! Docs: https://docs.gitlab.com/ee/administration/uploads.html
  256. # gitlab_rails['uploads_storage_path'] = "/opt/gitlab/embedded/service/gitlab-rails/public"
  257. # gitlab_rails['uploads_base_dir'] = "uploads/-/system"
  258. # gitlab_rails['uploads_object_store_enabled'] = false
  259. # gitlab_rails['uploads_object_store_direct_upload'] = false
  260. # gitlab_rails['uploads_object_store_background_upload'] = true
  261. # gitlab_rails['uploads_object_store_proxy_download'] = false
  262. # gitlab_rails['uploads_object_store_remote_directory'] = "uploads"
  263. # gitlab_rails['uploads_object_store_connection'] = {
  264. # 'provider' => 'AWS',
  265. # 'region' => 'eu-west-1',
  266. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  267. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  268. # # # The below options configure an S3 compatible host instead of AWS
  269. # # 'host' => 's3.amazonaws.com',
  270. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  271. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  272. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  273. # }
  274. ### Terraform state
  275. ###! Docs: https://docs.gitlab.com/ee/administration/terraform_state
  276. # gitlab_rails['terraform_state_enabled'] = true
  277. # gitlab_rails['terraform_state_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/terraform_state"
  278. # gitlab_rails['terraform_state_object_store_enabled'] = false
  279. # gitlab_rails['terraform_state_object_store_remote_directory'] = "terraform_state"
  280. # gitlab_rails['terraform_state_object_store_connection'] = {
  281. # 'provider' => 'AWS',
  282. # 'region' => 'eu-west-1',
  283. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  284. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  285. # # # The below options configure an S3 compatible host instead of AWS
  286. # # 'host' => 's3.amazonaws.com',
  287. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  288. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  289. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  290. # }
  291. ### Impersonation settings
  292. # gitlab_rails['impersonation_enabled'] = true
  293. ### Usage Statistics
  294. # gitlab_rails['usage_ping_enabled'] = true
  295. ### Seat Link setting
  296. ###! Docs: https://docs.gitlab.com/ee/subscriptions/index.html#seat-link
  297. # gitlab_rails['seat_link_enabled'] = true
  298. ### GitLab Mattermost
  299. ###! These settings are void if Mattermost is installed on the same omnibus
  300. ###! install
  301. # gitlab_rails['mattermost_host'] = "https://mattermost.example.com"
  302. ### LDAP Settings
  303. ###! Docs: https://docs.gitlab.com/omnibus/settings/ldap.html
  304. ###! **Be careful not to break the indentation in the ldap_servers block. It is
  305. ###! in yaml format and the spaces must be retained. Using tabs will not work.**
  306. # gitlab_rails['ldap_enabled'] = false
  307. # gitlab_rails['prevent_ldap_sign_in'] = false
  308. ###! **remember to close this block with 'EOS' below**
  309. # gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
  310. # main: # 'main' is the GitLab 'provider ID' of this LDAP server
  311. # label: 'LDAP'
  312. # host: '_your_ldap_server'
  313. # port: 389
  314. # uid: 'sAMAccountName'
  315. # bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  316. # password: '_the_password_of_the_bind_user'
  317. # encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
  318. # verify_certificates: true
  319. # smartcard_auth: false
  320. # active_directory: true
  321. # allow_username_or_email_login: false
  322. # lowercase_usernames: false
  323. # block_auto_created_users: false
  324. # base: ''
  325. # user_filter: ''
  326. # ## EE only
  327. # group_base: ''
  328. # admin_group: ''
  329. # sync_ssh_keys: false
  330. #
  331. # secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
  332. # label: 'LDAP'
  333. # host: '_your_ldap_server'
  334. # port: 389
  335. # uid: 'sAMAccountName'
  336. # bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  337. # password: '_the_password_of_the_bind_user'
  338. # encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
  339. # verify_certificates: true
  340. # smartcard_auth: false
  341. # active_directory: true
  342. # allow_username_or_email_login: false
  343. # lowercase_usernames: false
  344. # block_auto_created_users: false
  345. # base: ''
  346. # user_filter: ''
  347. # ## EE only
  348. # group_base: ''
  349. # admin_group: ''
  350. # sync_ssh_keys: false
  351. # EOS
  352. ### Smartcard authentication settings
  353. ###! Docs: https://docs.gitlab.com/ee/administration/auth/smartcard.html
  354. # gitlab_rails['smartcard_enabled'] = false
  355. # gitlab_rails['smartcard_ca_file'] = "/etc/gitlab/ssl/CA.pem"
  356. # gitlab_rails['smartcard_client_certificate_required_host'] = 'smartcard.gitlab.example.com'
  357. # gitlab_rails['smartcard_client_certificate_required_port'] = 3444
  358. # gitlab_rails['smartcard_required_for_git_access'] = false
  359. # gitlab_rails['smartcard_san_extensions'] = false
  360. ### OmniAuth Settings
  361. ###! Docs: https://docs.gitlab.com/ee/integration/omniauth.html
  362. # gitlab_rails['omniauth_enabled'] = nil
  363. # gitlab_rails['omniauth_allow_single_sign_on'] = ['saml']
  364. # gitlab_rails['omniauth_sync_email_from_provider'] = 'saml'
  365. # gitlab_rails['omniauth_sync_profile_from_provider'] = ['saml']
  366. # gitlab_rails['omniauth_sync_profile_attributes'] = ['email']
  367. # gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'saml'
  368. # gitlab_rails['omniauth_block_auto_created_users'] = true
  369. # gitlab_rails['omniauth_auto_link_ldap_user'] = false
  370. # gitlab_rails['omniauth_auto_link_saml_user'] = false
  371. # gitlab_rails['omniauth_external_providers'] = ['twitter', 'google_oauth2']
  372. # gitlab_rails['omniauth_allow_bypass_two_factor'] = ['google_oauth2']
  373. # gitlab_rails['omniauth_providers'] = [
  374. # {
  375. # "name" => "google_oauth2",
  376. # "app_id" => "YOUR APP ID",
  377. # "app_secret" => "YOUR APP SECRET",
  378. # "args" => { "access_type" => "offline", "approval_prompt" => "" }
  379. # }
  380. # ]
  381. ### Backup Settings
  382. ###! Docs: https://docs.gitlab.com/omnibus/settings/backups.html
  383. # gitlab_rails['manage_backup_path'] = true
  384. # gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
  385. ###! Docs: https://docs.gitlab.com/ee/raketasks/backup_restore.html#backup-archive-permissions
  386. # gitlab_rails['backup_archive_permissions'] = 0644
  387. # gitlab_rails['backup_pg_schema'] = 'public'
  388. ###! The duration in seconds to keep backups before they are allowed to be deleted
  389. # gitlab_rails['backup_keep_time'] = 604800
  390. # gitlab_rails['backup_upload_connection'] = {
  391. # 'provider' => 'AWS',
  392. # 'region' => 'eu-west-1',
  393. # 'aws_access_key_id' => 'AKIAKIAKI',
  394. # 'aws_secret_access_key' => 'secret123'
  395. # }
  396. # gitlab_rails['backup_upload_remote_directory'] = 'my.s3.bucket'
  397. # gitlab_rails['backup_multipart_chunk_size'] = 104857600
  398. ###! **Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for
  399. ###! backups**
  400. # gitlab_rails['backup_encryption'] = 'AES256'
  401. ###! The encryption key to use with AWS Server-Side Encryption.
  402. ###! Setting this value will enable Server-Side Encryption with customer provided keys;
  403. ###! otherwise S3-managed keys are used.
  404. # gitlab_rails['backup_encryption_key'] = '<base64-encoded encryption key>'
  405. ###! **Specifies Amazon S3 storage class to use for backups. Valid values
  406. ###! include 'STANDARD', 'STANDARD_IA', and 'REDUCED_REDUNDANCY'**
  407. # gitlab_rails['backup_storage_class'] = 'STANDARD'
  408. ###! Skip parts of the backup. Comma separated.
  409. ###! Docs: https://docs.gitlab.com/ee/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup
  410. #gitlab_rails['env'] = {
  411. # "SKIP" => "db,uploads,repositories,builds,artifacts,lfs,registry,pages"
  412. #}
  413. ### Pseudonymizer Settings
  414. # gitlab_rails['pseudonymizer_manifest'] = 'config/pseudonymizer.yml'
  415. # gitlab_rails['pseudonymizer_upload_remote_directory'] = 'gitlab-elt'
  416. # gitlab_rails['pseudonymizer_upload_connection'] = {
  417. # 'provider' => 'AWS',
  418. # 'region' => 'eu-west-1',
  419. # 'aws_access_key_id' => 'AKIAKIAKI',
  420. # 'aws_secret_access_key' => 'secret123'
  421. # }
  422. ### For setting up different data storing directory
  423. ###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory
  424. ###! **If you want to use a single non-default directory to store git data use a
  425. ###! path that doesn't contain symlinks.**
  426. # git_data_dirs({
  427. # "default" => {
  428. # "path" => "/mnt/nfs-01/git-data"
  429. # }
  430. # })
  431. ### Gitaly settings
  432. # gitlab_rails['gitaly_token'] = 'secret token'
  433. ### For storing GitLab application uploads, eg. LFS objects, build artifacts
  434. ###! Docs: https://docs.gitlab.com/ee/development/shared_files.html
  435. # gitlab_rails['shared_path'] = '/var/opt/gitlab/gitlab-rails/shared'
  436. ### Wait for file system to be mounted
  437. ###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#only-start-omnibus-gitlab-services-after-a-given-filesystem-is-mounted
  438. # high_availability['mountpoint'] = ["/var/opt/gitlab/git-data", "/var/opt/gitlab/gitlab-rails/shared"]
  439. ### GitLab Shell settings for GitLab
  440. # gitlab_rails['gitlab_shell_ssh_port'] = 22
  441. # gitlab_rails['gitlab_shell_git_timeout'] = 800
  442. ### Extra customization
  443. # gitlab_rails['extra_google_analytics_id'] = '_your_tracking_id'
  444. # gitlab_rails['extra_piwik_url'] = '_your_piwik_url'
  445. # gitlab_rails['extra_piwik_site_id'] = '_your_piwik_site_id'
  446. ##! Docs: https://docs.gitlab.com/omnibus/settings/environment-variables.html
  447. # gitlab_rails['env'] = {
  448. # 'BUNDLE_GEMFILE' => "/opt/gitlab/embedded/service/gitlab-rails/Gemfile",
  449. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
  450. # }
  451. # gitlab_rails['rack_attack_git_basic_auth'] = {
  452. # 'enabled' => false,
  453. # 'ip_whitelist' => ["127.0.0.1"],
  454. # 'maxretry' => 10,
  455. # 'findtime' => 60,
  456. # 'bantime' => 3600
  457. # }
  458. # Prioritize the Admin Area protected paths throttle settings over the
  459. # deprecated Omnibus-managed protected paths throttle. This allows you to keep
  460. # gitlab_rails['rack_attack_git_basic_auth'] enabled to run the Git and
  461. # container registry failed authentication ban.
  462. # See https://gitlab.com/gitlab-org/gitlab/issues/37093
  463. # gitlab_rails['rack_attack_admin_area_protected_paths_enabled'] = true
  464. ###! **We do not recommend changing these directories.**
  465. # gitlab_rails['dir'] = "/var/opt/gitlab/gitlab-rails"
  466. # gitlab_rails['log_directory'] = "/var/log/gitlab/gitlab-rails"
  467. ### GitLab application settings
  468. # gitlab_rails['uploads_directory'] = "/var/opt/gitlab/gitlab-rails/uploads"
  469. # gitlab_rails['rate_limit_requests_per_period'] = 10
  470. # gitlab_rails['rate_limit_period'] = 60
  471. #### Change the initial default admin password and shared runner registration tokens.
  472. ####! **Only applicable on initial setup, changing these settings after database
  473. ####! is created and seeded won't yield any change.**
  474. # gitlab_rails['initial_root_password'] = "password"
  475. # gitlab_rails['initial_shared_runners_registration_token'] = "token"
  476. #### Set path to an initial license to be used while bootstrapping GitLab.
  477. ####! **Only applicable on initial setup, future license updations need to be done via UI.
  478. ####! Updating the file specified in this path won't yield any change after the first reconfigure run.
  479. # gitlab_rails['initial_license_file'] = '/etc/gitlab/company.gitlab-license'
  480. #### Enable or disable automatic database migrations
  481. # gitlab_rails['auto_migrate'] = true
  482. #### This is advanced feature used by large gitlab deployments where loading
  483. #### whole RAILS env takes a lot of time.
  484. # gitlab_rails['rake_cache_clear'] = true
  485. ### GitLab database settings
  486. ###! Docs: https://docs.gitlab.com/omnibus/settings/database.html
  487. ###! **Only needed if you use an external database.**
  488. # gitlab_rails['db_adapter'] = "postgresql"
  489. # gitlab_rails['db_encoding'] = "unicode"
  490. # gitlab_rails['db_collation'] = nil
  491. # gitlab_rails['db_database'] = "gitlabhq_production"
  492. # gitlab_rails['db_pool'] = 1
  493. # gitlab_rails['db_username'] = "gitlab"
  494. # gitlab_rails['db_password'] = nil
  495. # gitlab_rails['db_host'] = nil
  496. # gitlab_rails['db_port'] = 5432
  497. # gitlab_rails['db_socket'] = nil
  498. # gitlab_rails['db_sslmode'] = nil
  499. # gitlab_rails['db_sslcompression'] = 0
  500. # gitlab_rails['db_sslrootcert'] = nil
  501. # gitlab_rails['db_sslcert'] = nil
  502. # gitlab_rails['db_sslkey'] = nil
  503. # gitlab_rails['db_prepared_statements'] = false
  504. # gitlab_rails['db_statements_limit'] = 1000
  505. ### GitLab Redis settings
  506. ###! Connect to your own Redis instance
  507. ###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
  508. #### Redis TCP connection
  509. # gitlab_rails['redis_host'] = "127.0.0.1"
  510. # gitlab_rails['redis_port'] = 6379
  511. # gitlab_rails['redis_ssl'] = false
  512. # gitlab_rails['redis_password'] = nil
  513. # gitlab_rails['redis_database'] = 0
  514. # gitlab_rails['redis_enable_client'] = true
  515. #### Redis local UNIX socket (will be disabled if TCP method is used)
  516. # gitlab_rails['redis_socket'] = "/var/opt/gitlab/redis/redis.socket"
  517. #### Sentinel support
  518. ####! To have Sentinel working, you must enable Redis TCP connection support
  519. ####! above and define a few Sentinel hosts below (to get a reliable setup
  520. ####! at least 3 hosts).
  521. ####! **You don't need to list every sentinel host, but the ones not listed will
  522. ####! not be used in a fail-over situation to query for the new master.**
  523. # gitlab_rails['redis_sentinels'] = [
  524. # {'host' => '127.0.0.1', 'port' => 26379},
  525. # ]
  526. #### Separate instances support
  527. ###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html#running-with-multiple-redis-instances
  528. # gitlab_rails['redis_cache_instance'] = nil
  529. # gitlab_rails['redis_cache_sentinels'] = nil
  530. # gitlab_rails['redis_queues_instance'] = nil
  531. # gitlab_rails['redis_queues_sentinels'] = nil
  532. # gitlab_rails['redis_shared_state_instance'] = nil
  533. # gitlab_rails['redis_shared_sentinels'] = nil
  534. # gitlab_rails['redis_actioncable_instance'] = nil
  535. # gitlab_rails['redis_actioncable_sentinels'] = nil
  536. ### GitLab email server settings
  537. ###! Docs: https://docs.gitlab.com/omnibus/settings/smtp.html
  538. ###! **Use smtp instead of sendmail/postfix.**
  539. # gitlab_rails['smtp_enable'] = true
  540. # gitlab_rails['smtp_address'] = "smtp.server"
  541. # gitlab_rails['smtp_port'] = 465
  542. # gitlab_rails['smtp_user_name'] = "smtp user"
  543. # gitlab_rails['smtp_password'] = "smtp password"
  544. # gitlab_rails['smtp_domain'] = "example.com"
  545. # gitlab_rails['smtp_authentication'] = "login"
  546. # gitlab_rails['smtp_enable_starttls_auto'] = true
  547. # gitlab_rails['smtp_tls'] = false
  548. ###! **Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert'**
  549. ###! Docs: http://api.rubyonrails.org/classes/ActionMailer/Base.html
  550. # gitlab_rails['smtp_openssl_verify_mode'] = 'none'
  551. # gitlab_rails['smtp_ca_path'] = "/etc/ssl/certs"
  552. # gitlab_rails['smtp_ca_file'] = "/etc/ssl/certs/ca-certificates.crt"
  553. ################################################################################
  554. ## Container Registry settings
  555. ##! Docs: https://docs.gitlab.com/ee/administration/container_registry.html
  556. ################################################################################
  557. # registry_external_url 'https://registry.example.com'
  558. ### Settings used by GitLab application
  559. # gitlab_rails['registry_enabled'] = true
  560. # gitlab_rails['registry_host'] = "registry.gitlab.example.com"
  561. # gitlab_rails['registry_port'] = "5005"
  562. # gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
  563. # Notification secret, it's used to authenticate notification requests to GitLab application
  564. # You only need to change this when you use external Registry service, otherwise
  565. # it will be taken directly from notification settings of your Registry
  566. # gitlab_rails['registry_notification_secret'] = nil
  567. ###! **Do not change the following 3 settings unless you know what you are
  568. ###! doing**
  569. # gitlab_rails['registry_api_url'] = "http://localhost:5000"
  570. # gitlab_rails['registry_key_path'] = "/var/opt/gitlab/gitlab-rails/certificate.key"
  571. # gitlab_rails['registry_issuer'] = "omnibus-gitlab-issuer"
  572. ### Settings used by Registry application
  573. # registry['enable'] = true
  574. # registry['username'] = "registry"
  575. # registry['group'] = "registry"
  576. # registry['uid'] = nil
  577. # registry['gid'] = nil
  578. # registry['dir'] = "/var/opt/gitlab/registry"
  579. # registry['registry_http_addr'] = "localhost:5000"
  580. # registry['debug_addr'] = "localhost:5001"
  581. # registry['log_directory'] = "/var/log/gitlab/registry"
  582. # registry['env_directory'] = "/opt/gitlab/etc/registry/env"
  583. # registry['env'] = {
  584. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  585. # }
  586. # registry['log_level'] = "info"
  587. # registry['log_formatter'] = "text"
  588. # registry['rootcertbundle'] = "/var/opt/gitlab/registry/certificate.crt"
  589. # registry['health_storagedriver_enabled'] = true
  590. # registry['storage_delete_enabled'] = true
  591. # registry['validation_enabled'] = false
  592. # registry['autoredirect'] = false
  593. # registry['compatibility_schema1_enabled'] = false
  594. ### Registry backend storage
  595. ###! Docs: https://docs.gitlab.com/ee/administration/container_registry.html#container-registry-storage-driver
  596. # registry['storage'] = {
  597. # 's3' => {
  598. # 'accesskey' => 'AKIAKIAKI',
  599. # 'secretkey' => 'secret123',
  600. # 'region' => 'us-east-1',
  601. # 'bucket' => 'gitlab-registry-bucket-AKIAKIAKI'
  602. # }
  603. # }
  604. ### Registry notifications endpoints
  605. # registry['notifications'] = [
  606. # {
  607. # 'name' => 'test_endpoint',
  608. # 'url' => 'https://gitlab.example.com/notify2',
  609. # 'timeout' => '500ms',
  610. # 'threshold' => 5,
  611. # 'backoff' => '1s',
  612. # 'headers' => {
  613. # "Authorization" => ["AUTHORIZATION_EXAMPLE_TOKEN"]
  614. # }
  615. # }
  616. # ]
  617. ### Default registry notifications
  618. # registry['default_notifications_timeout'] = "500ms"
  619. # registry['default_notifications_threshold'] = 5
  620. # registry['default_notifications_backoff'] = "1s"
  621. # registry['default_notifications_headers'] = {}
  622. ################################################################################
  623. ## Error Reporting and Logging with Sentry
  624. ################################################################################
  625. # gitlab_rails['sentry_enabled'] = false
  626. # gitlab_rails['sentry_dsn'] = 'https://<key>@sentry.io/<project>'
  627. # gitlab_rails['sentry_clientside_dsn'] = 'https://<key>@sentry.io/<project>'
  628. # gitlab_rails['sentry_environment'] = 'production'
  629. ################################################################################
  630. ## GitLab Workhorse
  631. ##! Docs: https://gitlab.com/gitlab-org/gitlab-workhorse/blob/master/README.md
  632. ################################################################################
  633. # gitlab_workhorse['enable'] = true
  634. # gitlab_workhorse['ha'] = false
  635. # gitlab_workhorse['listen_network'] = "unix"
  636. # gitlab_workhorse['listen_umask'] = 000
  637. # gitlab_workhorse['listen_addr'] = "/var/opt/gitlab/gitlab-workhorse/socket"
  638. # gitlab_workhorse['auth_backend'] = "http://localhost:8080"
  639. ##! the empty string is the default in gitlab-workhorse option parser
  640. # gitlab_workhorse['auth_socket'] = "''"
  641. ##! put an empty string on the command line
  642. # gitlab_workhorse['pprof_listen_addr'] = "''"
  643. # gitlab_workhorse['prometheus_listen_addr'] = "localhost:9229"
  644. # gitlab_workhorse['dir'] = "/var/opt/gitlab/gitlab-workhorse"
  645. # gitlab_workhorse['log_directory'] = "/var/log/gitlab/gitlab-workhorse"
  646. # gitlab_workhorse['proxy_headers_timeout'] = "1m0s"
  647. ##! limit number of concurrent API requests, defaults to 0 which is unlimited
  648. # gitlab_workhorse['api_limit'] = 0
  649. ##! limit number of API requests allowed to be queued, defaults to 0 which
  650. ##! disables queuing
  651. # gitlab_workhorse['api_queue_limit'] = 0
  652. ##! duration after which we timeout requests if they sit too long in the queue
  653. # gitlab_workhorse['api_queue_duration'] = "30s"
  654. ##! Long polling duration for job requesting for runners
  655. # gitlab_workhorse['api_ci_long_polling_duration'] = "60s"
  656. ##! Log format: default is text, can also be json or none.
  657. # gitlab_workhorse['log_format'] = "json"
  658. # gitlab_workhorse['env_directory'] = "/opt/gitlab/etc/gitlab-workhorse/env"
  659. # gitlab_workhorse['env'] = {
  660. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
  661. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  662. # }
  663. ################################################################################
  664. ## GitLab User Settings
  665. ##! Modify default git user.
  666. ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#changing-the-name-of-the-git-user-group
  667. ################################################################################
  668. # user['username'] = "git"
  669. # user['group'] = "git"
  670. # user['uid'] = nil
  671. # user['gid'] = nil
  672. ##! The shell for the git user
  673. # user['shell'] = "/bin/sh"
  674. ##! The home directory for the git user
  675. # user['home'] = "/var/opt/gitlab"
  676. # user['git_user_name'] = "GitLab"
  677. # user['git_user_email'] = "gitlab@#{node['fqdn']}"
  678. ################################################################################
  679. ## GitLab Unicorn
  680. ##! Tweak unicorn settings.
  681. ##! Docs: https://docs.gitlab.com/omnibus/settings/unicorn.html
  682. ################################################################################
  683. # unicorn['enable'] = true
  684. # unicorn['worker_timeout'] = 60
  685. ###! Minimum worker_processes is 2 at this moment
  686. ###! See https://gitlab.com/gitlab-org/gitlab-foss/issues/18771
  687. # unicorn['worker_processes'] = 2
  688. ### Advanced settings
  689. # unicorn['listen'] = 'localhost'
  690. # unicorn['port'] = 8080
  691. # unicorn['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  692. # unicorn['pidfile'] = '/opt/gitlab/var/unicorn/unicorn.pid'
  693. # unicorn['tcp_nopush'] = true
  694. # unicorn['backlog_socket'] = 1024
  695. ###! **Make sure somaxconn is equal or higher then backlog_socket**
  696. # unicorn['somaxconn'] = 1024
  697. ###! **We do not recommend changing this setting**
  698. # unicorn['log_directory'] = "/var/log/gitlab/unicorn"
  699. ### **Only change these settings if you understand well what they mean**
  700. ###! Docs: https://docs.gitlab.com/ee/administration/operations/unicorn.html#unicorn-worker-killer
  701. ###! https://github.com/kzk/unicorn-worker-killer
  702. # unicorn['worker_memory_limit_min'] = "1024 * 1 << 20"
  703. # unicorn['worker_memory_limit_max'] = "1280 * 1 << 20"
  704. # unicorn['exporter_enabled'] = false
  705. # unicorn['exporter_address'] = "127.0.0.1"
  706. # unicorn['exporter_port'] = 8083
  707. ################################################################################
  708. ## GitLab Puma
  709. ##! Tweak puma settings. You should only use Unicorn or Puma, not both.
  710. ##! Docs: https://docs.gitlab.com/omnibus/settings/puma.html
  711. ################################################################################
  712. # puma['enable'] = false
  713. # puma['ha'] = false
  714. # puma['worker_timeout'] = 60
  715. # puma['worker_processes'] = 2
  716. # puma['min_threads'] = 4
  717. # puma['max_threads'] = 4
  718. ### Advanced settings
  719. # puma['listen'] = '127.0.0.1'
  720. # puma['port'] = 8080
  721. # puma['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  722. # puma['pidfile'] = '/opt/gitlab/var/puma/puma.pid'
  723. # puma['state_path'] = '/opt/gitlab/var/puma/puma.state'
  724. ###! **We do not recommend changing this setting**
  725. # puma['log_directory'] = "/var/log/gitlab/puma"
  726. ### **Only change these settings if you understand well what they mean**
  727. ###! Docs: https://github.com/schneems/puma_worker_killer
  728. # puma['per_worker_max_memory_mb'] = 850
  729. # puma['exporter_enabled'] = false
  730. # puma['exporter_address'] = "127.0.0.1"
  731. # puma['exporter_port'] = 8083
  732. ################################################################################
  733. ## GitLab Sidekiq
  734. ################################################################################
  735. # sidekiq['log_directory'] = "/var/log/gitlab/sidekiq"
  736. # sidekiq['log_format'] = "json"
  737. # sidekiq['shutdown_timeout'] = 4
  738. # sidekiq['concurrency'] = 25
  739. # sidekiq['metrics_enabled'] = true
  740. # sidekiq['listen_address'] = "localhost"
  741. # sidekiq['listen_port'] = 8082
  742. ### Experimental Sidekiq Cluster settings
  743. ###! These settings allow starting `sidekiq-cluster` instead of sidekiq.
  744. ###! Docs: https://docs.gitlab.com/ee/administration/operations/extra_sidekiq_processes.html#using-sidekiq-cluster-by-default-experimental
  745. # sidekiq['cluster'] = false
  746. # sidekiq['experimental_queue_selector'] = false
  747. # sidekiq['interval'] = nil
  748. # sidekiq['max_concurrency'] = nil
  749. # sidekiq['min_concurrency'] = nil
  750. # sidekiq['negate'] = false
  751. # sidekiq['queue_groups'] = ['*']
  752. ################################################################################
  753. ## gitlab-shell
  754. ################################################################################
  755. # gitlab_shell['audit_usernames'] = false
  756. # gitlab_shell['log_level'] = 'INFO'
  757. # gitlab_shell['log_format'] = 'json'
  758. # gitlab_shell['http_settings'] = { user: 'username', password: 'password', ca_file: '/etc/ssl/cert.pem', ca_path: '/etc/pki/tls/certs', self_signed_cert: false}
  759. # gitlab_shell['log_directory'] = "/var/log/gitlab/gitlab-shell/"
  760. # gitlab_shell['custom_hooks_dir'] = "/opt/gitlab/embedded/service/gitlab-shell/hooks"
  761. # gitlab_shell['auth_file'] = "/var/opt/gitlab/.ssh/authorized_keys"
  762. ### Migration to Go feature flags
  763. ###! Docs: https://gitlab.com/gitlab-org/gitlab-shell#migration-to-go-feature-flags
  764. # gitlab_shell['migration'] = { enabled: true, features: [] }
  765. ### Git trace log file.
  766. ###! If set, git commands receive GIT_TRACE* environment variables
  767. ###! Docs: https://git-scm.com/book/es/v2/Git-Internals-Environment-Variables#Debugging
  768. ###! An absolute path starting with / – the trace output will be appended to
  769. ###! that file. It needs to exist so we can check permissions and avoid
  770. ###! throwing warnings to the users.
  771. # gitlab_shell['git_trace_log_file'] = "/var/log/gitlab/gitlab-shell/gitlab-shell-git-trace.log"
  772. ##! **We do not recommend changing this directory.**
  773. # gitlab_shell['dir'] = "/var/opt/gitlab/gitlab-shell"
  774. ################################################################
  775. ## GitLab PostgreSQL
  776. ################################################################
  777. ###! Changing any of these settings requires a restart of postgresql.
  778. ###! By default, reconfigure reloads postgresql if it is running. If you
  779. ###! change any of these settings, be sure to run `gitlab-ctl restart postgresql`
  780. ###! after reconfigure in order for the changes to take effect.
  781. # postgresql['enable'] = true
  782. # postgresql['listen_address'] = nil
  783. # postgresql['port'] = 5432
  784. # postgresql['data_dir'] = "/var/opt/gitlab/postgresql/data"
  785. ##! **recommend value is 1/4 of total RAM, up to 14GB.**
  786. # postgresql['shared_buffers'] = "256MB"
  787. ### Advanced settings
  788. # postgresql['ha'] = false
  789. # postgresql['dir'] = "/var/opt/gitlab/postgresql"
  790. # postgresql['log_directory'] = "/var/log/gitlab/postgresql"
  791. # postgresql['log_destination'] = nil
  792. # postgresql['logging_collector'] = nil
  793. # postgresql['log_truncate_on_rotation'] = nil
  794. # postgresql['log_rotation_age'] = nil
  795. # postgresql['log_rotation_size'] = nil
  796. # postgresql['username'] = "gitlab-psql"
  797. # postgresql['group'] = "gitlab-psql"
  798. ##! `SQL_USER_PASSWORD_HASH` can be generated using the command `gitlab-ctl pg-password-md5 gitlab`
  799. # postgresql['sql_user_password'] = 'SQL_USER_PASSWORD_HASH'
  800. # postgresql['uid'] = nil
  801. # postgresql['gid'] = nil
  802. # postgresql['shell'] = "/bin/sh"
  803. # postgresql['home'] = "/var/opt/gitlab/postgresql"
  804. # postgresql['user_path'] = "/opt/gitlab/embedded/bin:/opt/gitlab/bin:$PATH"
  805. # postgresql['sql_user'] = "gitlab"
  806. # postgresql['max_connections'] = 200
  807. # postgresql['md5_auth_cidr_addresses'] = []
  808. # postgresql['trust_auth_cidr_addresses'] = []
  809. # postgresql['wal_buffers'] = "-1"
  810. # postgresql['autovacuum_max_workers'] = "3"
  811. # postgresql['autovacuum_freeze_max_age'] = "200000000"
  812. # postgresql['log_statement'] = nil
  813. # postgresql['track_activity_query_size'] = "1024"
  814. # postgresql['shared_preload_libraries'] = nil
  815. # postgresql['dynamic_shared_memory_type'] = nil
  816. # postgresql['hot_standby'] = "off"
  817. ### SSL settings
  818. # See https://www.postgresql.org/docs/9.6/static/runtime-config-connection.html#GUC-SSL-CERT-FILE for more details
  819. # postgresql['ssl'] = 'on'
  820. # postgresql['ssl_ciphers'] = 'HIGH:MEDIUM:+3DES:!aNULL:!SSLv3:!TLSv1'
  821. # postgresql['ssl_cert_file'] = 'server.crt'
  822. # postgresql['ssl_key_file'] = 'server.key'
  823. # postgresql['ssl_ca_file'] = '/opt/gitlab/embedded/ssl/certs/cacert.pem'
  824. # postgresql['ssl_crl_file'] = nil
  825. ### Replication settings
  826. ###! Note, some replication settings do not require a full restart. They are documented below.
  827. # postgresql['wal_level'] = "hot_standby"
  828. # postgresql['max_wal_senders'] = 5
  829. # postgresql['max_replication_slots'] = 0
  830. # postgresql['max_locks_per_transaction'] = 128
  831. # Backup/Archive settings
  832. # postgresql['archive_mode'] = "off"
  833. ###! Changing any of these settings only requires a reload of postgresql. You do not need to
  834. ###! restart postgresql if you change any of these and run reconfigure.
  835. # postgresql['work_mem'] = "16MB"
  836. # postgresql['maintenance_work_mem'] = "16MB"
  837. # postgresql['checkpoint_segments'] = 10
  838. # postgresql['checkpoint_timeout'] = "5min"
  839. # postgresql['checkpoint_completion_target'] = 0.9
  840. # postgresql['effective_io_concurrency'] = 1
  841. # postgresql['checkpoint_warning'] = "30s"
  842. # postgresql['effective_cache_size'] = "1MB"
  843. # postgresql['shmmax'] = 17179869184 # or 4294967295
  844. # postgresql['shmall'] = 4194304 # or 1048575
  845. # postgresql['autovacuum'] = "on"
  846. # postgresql['log_autovacuum_min_duration'] = "-1"
  847. # postgresql['autovacuum_naptime'] = "1min"
  848. # postgresql['autovacuum_vacuum_threshold'] = "50"
  849. # postgresql['autovacuum_analyze_threshold'] = "50"
  850. # postgresql['autovacuum_vacuum_scale_factor'] = "0.02"
  851. # postgresql['autovacuum_analyze_scale_factor'] = "0.01"
  852. # postgresql['autovacuum_vacuum_cost_delay'] = "20ms"
  853. # postgresql['autovacuum_vacuum_cost_limit'] = "-1"
  854. # postgresql['statement_timeout'] = "60000"
  855. # postgresql['idle_in_transaction_session_timeout'] = "60000"
  856. # postgresql['log_line_prefix'] = "%a"
  857. # postgresql['max_worker_processes'] = 8
  858. # postgresql['max_parallel_workers_per_gather'] = 0
  859. # postgresql['log_lock_waits'] = 1
  860. # postgresql['deadlock_timeout'] = '5s'
  861. # postgresql['track_io_timing'] = 0
  862. # postgresql['default_statistics_target'] = 1000
  863. ### Available in PostgreSQL 9.6 and later
  864. # postgresql['min_wal_size'] = 80MB
  865. # postgresql['max_wal_size'] = 1GB
  866. # Backup/Archive settings
  867. # postgresql['archive_command'] = nil
  868. # postgresql['archive_timeout'] = "0"
  869. ### Replication settings
  870. # postgresql['sql_replication_user'] = "gitlab_replicator"
  871. # postgresql['sql_replication_password'] = "md5 hash of postgresql password" # You can generate with `gitlab-ctl pg-password-md5 <dbuser>`
  872. # postgresql['wal_keep_segments'] = 10
  873. # postgresql['max_standby_archive_delay'] = "30s"
  874. # postgresql['max_standby_streaming_delay'] = "30s"
  875. # postgresql['synchronous_commit'] = on
  876. # postgresql['synchronous_standby_names'] = ''
  877. # postgresql['hot_standby_feedback'] = 'off'
  878. # postgresql['random_page_cost'] = 2.0
  879. # postgresql['log_temp_files'] = -1
  880. # postgresql['log_checkpoints'] = 'off'
  881. # To add custom entries to pg_hba.conf use the following
  882. # postgresql['custom_pg_hba_entries'] = {
  883. # APPLICATION: [ # APPLICATION should identify what the settings are used for
  884. # {
  885. # type: example,
  886. # database: example,
  887. # user: example,
  888. # cidr: example,
  889. # method: example,
  890. # option: example
  891. # }
  892. # ]
  893. # }
  894. # See https://www.postgresql.org/docs/9.6/static/auth-pg-hba-conf.html for an explanation
  895. # of the values
  896. ### Version settings
  897. # Set this if you have disabled the bundled PostgreSQL but still want to use the backup rake tasks
  898. # postgresql['version'] = 10
  899. ################################################################################
  900. ## GitLab Redis
  901. ##! **Can be disabled if you are using your own Redis instance.**
  902. ##! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
  903. ################################################################################
  904. # redis['enable'] = true
  905. # redis['ha'] = false
  906. # redis['hz'] = 10
  907. # redis['dir'] = "/var/opt/gitlab/redis"
  908. # redis['log_directory'] = "/var/log/gitlab/redis"
  909. # redis['username'] = "gitlab-redis"
  910. # redis['group'] = "gitlab-redis"
  911. # redis['maxclients'] = "10000"
  912. # redis['maxmemory'] = "0"
  913. # redis['maxmemory_policy'] = "noeviction"
  914. # redis['maxmemory_samples'] = "5"
  915. # redis['tcp_backlog'] = 511
  916. # redis['tcp_timeout'] = "60"
  917. # redis['tcp_keepalive'] = "300"
  918. # redis['uid'] = nil
  919. # redis['gid'] = nil
  920. ### Disable or obfuscate unnecessary redis command names
  921. ### Uncomment and edit this block to add or remove entries.
  922. ### See https://docs.gitlab.com/omnibus/settings/redis.html#renamed-commands
  923. ### for detailed usage
  924. ###
  925. # redis['rename_commands'] = {
  926. # 'KEYS': ''
  927. #}
  928. #
  929. ###! **To enable only Redis service in this machine, uncomment
  930. ###! one of the lines below (choose master or slave instance types).**
  931. ###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
  932. ###! https://docs.gitlab.com/ee/administration/high_availability/redis.html
  933. # redis_master_role['enable'] = true
  934. # redis_slave_role['enable'] = true
  935. ### Redis TCP support (will disable UNIX socket transport)
  936. # redis['bind'] = '0.0.0.0' # or specify an IP to bind to a single one
  937. # redis['port'] = 6379
  938. # redis['password'] = 'redis-password-goes-here'
  939. ### Redis Sentinel support
  940. ###! **You need a master slave Redis replication to be able to do failover**
  941. ###! **Please read the documentation before enabling it to understand the
  942. ###! caveats:**
  943. ###! Docs: https://docs.gitlab.com/ee/administration/high_availability/redis.html
  944. ### Replication support
  945. #### Slave Redis instance
  946. # redis['master'] = false # by default this is true
  947. #### Slave and Sentinel shared configuration
  948. ####! **Both need to point to the master Redis instance to get replication and
  949. ####! heartbeat monitoring**
  950. # redis['master_name'] = 'gitlab-redis'
  951. # redis['master_ip'] = nil
  952. # redis['master_port'] = 6379
  953. #### Support to run redis slaves in a Docker or NAT environment
  954. ####! Docs: https://redis.io/topics/replication#configuring-replication-in-docker-and-nat
  955. # redis['announce_ip'] = nil
  956. # redis['announce_port'] = nil
  957. ####! **Master password should have the same value defined in
  958. ####! redis['password'] to enable the instance to transition to/from
  959. ####! master/slave in a failover event.**
  960. # redis['master_password'] = 'redis-password-goes-here'
  961. ####! Increase these values when your slaves can't catch up with master
  962. # redis['client_output_buffer_limit_normal'] = '0 0 0'
  963. # redis['client_output_buffer_limit_slave'] = '256mb 64mb 60'
  964. # redis['client_output_buffer_limit_pubsub'] = '32mb 8mb 60'
  965. #####! Redis snapshotting frequency
  966. #####! Set to [] to disable
  967. #####! Set to [''] to clear previously set values
  968. # redis['save'] = [ '900 1', '300 10', '60 10000' ]
  969. #####! Redis lazy freeing
  970. #####! Defaults to false
  971. # redis['lazyfree_lazy_eviction'] = true
  972. # redis['lazyfree_lazy_expire'] = true
  973. # redis['lazyfree_lazy_server_del'] = true
  974. # redis['replica_lazy_flush'] = true
  975. ################################################################################
  976. ## GitLab Web server
  977. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#using-a-non-bundled-web-server
  978. ################################################################################
  979. ##! When bundled nginx is disabled we need to add the external webserver user to
  980. ##! the GitLab webserver group.
  981. # web_server['external_users'] = []
  982. # web_server['username'] = 'gitlab-www'
  983. # web_server['group'] = 'gitlab-www'
  984. # web_server['uid'] = nil
  985. # web_server['gid'] = nil
  986. # web_server['shell'] = '/bin/false'
  987. # web_server['home'] = '/var/opt/gitlab/nginx'
  988. ################################################################################
  989. ## GitLab NGINX
  990. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html
  991. ################################################################################
  992. # nginx['enable'] = true
  993. # nginx['client_max_body_size'] = '250m'
  994. # nginx['redirect_http_to_https'] = false
  995. # nginx['redirect_http_to_https_port'] = 80
  996. ##! Most root CA's are included by default
  997. # nginx['ssl_client_certificate'] = "/etc/gitlab/ssl/ca.crt"
  998. ##! enable/disable 2-way SSL client authentication
  999. # nginx['ssl_verify_client'] = "off"
  1000. ##! if ssl_verify_client on, verification depth in the client certificates chain
  1001. # nginx['ssl_verify_depth'] = "1"
  1002. # nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
  1003. # nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
  1004. # nginx['ssl_ciphers'] = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256"
  1005. # nginx['ssl_prefer_server_ciphers'] = "on"
  1006. ##! **Recommended by: https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
  1007. ##! https://cipherli.st/**
  1008. # nginx['ssl_protocols'] = "TLSv1.2 TLSv1.3"
  1009. ##! **Recommended in: https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
  1010. # nginx['ssl_session_cache'] = "builtin:1000 shared:SSL:10m"
  1011. ##! **Default according to https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
  1012. # nginx['ssl_session_timeout'] = "5m"
  1013. # nginx['ssl_dhparam'] = nil # Path to dhparams.pem, eg. /etc/gitlab/ssl/dhparams.pem
  1014. # nginx['listen_addresses'] = ['*', '[::]']
  1015. ##! **Defaults to forcing web browsers to always communicate using only HTTPS**
  1016. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-http-strict-transport-security
  1017. # nginx['hsts_max_age'] = 31536000
  1018. # nginx['hsts_include_subdomains'] = false
  1019. ##! Defaults to stripping path information when making cross-origin requests
  1020. # nginx['referrer_policy'] = 'strict-origin-when-cross-origin'
  1021. ##! **Docs: http://nginx.org/en/docs/http/ngx_http_gzip_module.html**
  1022. # nginx['gzip_enabled'] = true
  1023. ##! **Override only if you use a reverse proxy**
  1024. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-the-nginx-listen-port
  1025. # nginx['listen_port'] = nil
  1026. ##! **Override only if your reverse proxy internally communicates over HTTP**
  1027. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#supporting-proxied-ssl
  1028. # nginx['listen_https'] = nil
  1029. # nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
  1030. # nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;"
  1031. # nginx['proxy_read_timeout'] = 3600
  1032. # nginx['proxy_connect_timeout'] = 300
  1033. # nginx['proxy_set_headers'] = {
  1034. # "Host" => "$http_host_with_default",
  1035. # "X-Real-IP" => "$remote_addr",
  1036. # "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
  1037. # "X-Forwarded-Proto" => "https",
  1038. # "X-Forwarded-Ssl" => "on",
  1039. # "Upgrade" => "$http_upgrade",
  1040. # "Connection" => "$connection_upgrade"
  1041. # }
  1042. # nginx['proxy_cache_path'] = 'proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2'
  1043. # nginx['proxy_cache'] = 'gitlab'
  1044. # nginx['http2_enabled'] = true
  1045. # nginx['real_ip_trusted_addresses'] = []
  1046. # nginx['real_ip_header'] = nil
  1047. # nginx['real_ip_recursive'] = nil
  1048. # nginx['custom_error_pages'] = {
  1049. # '404' => {
  1050. # 'title' => 'Example title',
  1051. # 'header' => 'Example header',
  1052. # 'message' => 'Example message'
  1053. # }
  1054. # }
  1055. ### Advanced settings
  1056. # nginx['dir'] = "/var/opt/gitlab/nginx"
  1057. # nginx['log_directory'] = "/var/log/gitlab/nginx"
  1058. # nginx['worker_processes'] = 4
  1059. # nginx['worker_connections'] = 10240
  1060. # nginx['log_format'] = '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'
  1061. # nginx['sendfile'] = 'on'
  1062. # nginx['tcp_nopush'] = 'on'
  1063. # nginx['tcp_nodelay'] = 'on'
  1064. # nginx['gzip'] = "on"
  1065. # nginx['gzip_http_version'] = "1.0"
  1066. # nginx['gzip_comp_level'] = "2"
  1067. # nginx['gzip_proxied'] = "any"
  1068. # nginx['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ]
  1069. # nginx['keepalive_timeout'] = 65
  1070. # nginx['cache_max_size'] = '5000m'
  1071. # nginx['server_names_hash_bucket_size'] = 64
  1072. ##! These paths have proxy_request_buffering disabled
  1073. # nginx['request_buffering_off_path_regex'] = "\.git/git-receive-pack$|\.git/info/refs?service=git-receive-pack$|\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$"
  1074. ### Nginx status
  1075. # nginx['status'] = {
  1076. # "enable" => true,
  1077. # "listen_addresses" => ["127.0.0.1"],
  1078. # "fqdn" => "dev.example.com",
  1079. # "port" => 9999,
  1080. # "vts_enable" => true,
  1081. # "options" => {
  1082. # "stub_status" => "on", # Turn on stats
  1083. # "server_tokens" => "off", # Don't show the version of NGINX
  1084. # "access_log" => "off", # Disable logs for stats
  1085. # "allow" => "127.0.0.1", # Only allow access from localhost
  1086. # "deny" => "all" # Deny access to anyone else
  1087. # }
  1088. # }
  1089. ################################################################################
  1090. ## GitLab Logging
  1091. ##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html
  1092. ################################################################################
  1093. # logging['svlogd_size'] = 200 * 1024 * 1024 # rotate after 200 MB of log data
  1094. # logging['svlogd_num'] = 30 # keep 30 rotated log files
  1095. # logging['svlogd_timeout'] = 24 * 60 * 60 # rotate after 24 hours
  1096. # logging['svlogd_filter'] = "gzip" # compress logs with gzip
  1097. # logging['svlogd_udp'] = nil # transmit log messages via UDP
  1098. # logging['svlogd_prefix'] = nil # custom prefix for log messages
  1099. # logging['logrotate_frequency'] = "daily" # rotate logs daily
  1100. # logging['logrotate_maxsize'] = nil # rotate logs when they grow bigger than size bytes even before the specified time interval (daily, weekly, monthly, or yearly)
  1101. # logging['logrotate_size'] = nil # do not rotate by size by default
  1102. # logging['logrotate_rotate'] = 30 # keep 30 rotated logs
  1103. # logging['logrotate_compress'] = "compress" # see 'man logrotate'
  1104. # logging['logrotate_method'] = "copytruncate" # see 'man logrotate'
  1105. # logging['logrotate_postrotate'] = nil # no postrotate command by default
  1106. # 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
  1107. ### UDP log forwarding
  1108. ##! Docs: http://docs.gitlab.com/omnibus/settings/logs.html#udp-log-forwarding
  1109. ##! remote host to ship log messages to via UDP
  1110. # logging['udp_log_shipping_host'] = nil
  1111. ##! override the hostname used when logs are shipped via UDP,
  1112. ## by default the system hostname will be used.
  1113. # logging['udp_log_shipping_hostname'] = nil
  1114. ##! remote port to ship log messages to via UDP
  1115. # logging['udp_log_shipping_port'] = 514
  1116. ################################################################################
  1117. ## Logrotate
  1118. ##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html#logrotate
  1119. ##! You can disable built in logrotate feature.
  1120. ################################################################################
  1121. # logrotate['enable'] = true
  1122. # logrotate['log_directory'] = "/var/log/gitlab/logrotate"
  1123. ################################################################################
  1124. ## Users and groups accounts
  1125. ##! Disable management of users and groups accounts.
  1126. ##! **Set only if creating accounts manually**
  1127. ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-user-and-group-account-management
  1128. ################################################################################
  1129. # manage_accounts['enable'] = false
  1130. ################################################################################
  1131. ## Storage directories
  1132. ##! Disable managing storage directories
  1133. ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-storage-directories-management
  1134. ################################################################################
  1135. ##! **Set only if the select directories are created manually**
  1136. # manage_storage_directories['enable'] = false
  1137. # manage_storage_directories['manage_etc'] = false
  1138. ################################################################################
  1139. ## Runtime directory
  1140. ##! Docs: https://docs.gitlab.com//omnibus/settings/configuration.html#configuring-runtime-directory
  1141. ################################################################################
  1142. # runtime_dir '/run'
  1143. ################################################################################
  1144. ## Git
  1145. ##! Advanced setting for configuring git system settings for omnibus-gitlab
  1146. ##! internal git
  1147. ################################################################################
  1148. ##! For multiple options under one header use array of comma separated values,
  1149. ##! eg.:
  1150. ##! { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] }
  1151. # omnibus_gitconfig['system'] = {
  1152. # "pack" => ["threads = 1", "useSparse = true"],
  1153. # "receive" => ["fsckObjects = true", "advertisePushOptions = true"],
  1154. # "repack" => ["writeBitmaps = true"],
  1155. # "transfer" => ["hideRefs=^refs/tmp/", "hideRefs=^refs/keep-around/", "hideRefs=^refs/remotes/"],
  1156. # "core" => [
  1157. # 'alternateRefsCommand="exit 0 #"',
  1158. # "fsyncObjectFiles = true"
  1159. # ],
  1160. # "fetch" => ["writeCommitGraph = true"]
  1161. # }
  1162. ################################################################################
  1163. ## GitLab Pages
  1164. ##! Docs: https://docs.gitlab.com/ee/pages/administration.html
  1165. ################################################################################
  1166. ##! Define to enable GitLab Pages
  1167. # pages_external_url "http://pages.example.com/"
  1168. # gitlab_pages['enable'] = false
  1169. ##! Configure to expose GitLab Pages on external IP address, serving the HTTP
  1170. # gitlab_pages['external_http'] = []
  1171. ##! Configure to expose GitLab Pages on external IP address, serving the HTTPS
  1172. # gitlab_pages['external_https'] = []
  1173. ##! Configure to use the default list of cipher suites
  1174. # gitlab_pages['insecure_ciphers'] = false
  1175. ##! Configure to enable health check endpoint on GitLab Pages
  1176. # gitlab_pages['status_uri'] = "/@status"
  1177. ##! Tune the maximum number of concurrent connections GitLab Pages will handle.
  1178. ##! This should be in the range 1 - 10000, defaulting to 5000.
  1179. # gitlab_pages['max_connections'] = 5000
  1180. ##! Configure to use JSON structured logging in GitLab Pages
  1181. # gitlab_pages['log_format'] = "json"
  1182. ##! Configure verbose logging for GitLab Pages
  1183. # gitlab_pages['log_verbose'] = false
  1184. ##! Error Reporting and Logging with Sentry
  1185. # gitlab_pages['sentry_enabled'] = false
  1186. # gitlab_pages['sentry_dsn'] = 'https://<key>@sentry.io/<project>'
  1187. # gitlab_pages['sentry_environment'] = 'production'
  1188. ##! Listen for requests forwarded by reverse proxy
  1189. # gitlab_pages['listen_proxy'] = "localhost:8090"
  1190. ##! Configure GitLab Pages to use an HTTP Proxy
  1191. # gitlab_pages['http_proxy'] = "http://example:8080"
  1192. # gitlab_pages['redirect_http'] = true
  1193. # gitlab_pages['use_http2'] = true
  1194. # gitlab_pages['dir'] = "/var/opt/gitlab/gitlab-pages"
  1195. # gitlab_pages['log_directory'] = "/var/log/gitlab/gitlab-pages"
  1196. # gitlab_pages['artifacts_server'] = true
  1197. # gitlab_pages['artifacts_server_url'] = nil # Defaults to external_url + '/api/v4'
  1198. # gitlab_pages['artifacts_server_timeout'] = 10
  1199. ##! Environments that do not support bind-mounting should set this parameter to
  1200. ##! true. This is incompatible with the artifacts server
  1201. # gitlab_pages['inplace_chroot'] = false
  1202. ##! Prometheus metrics for Pages docs: https://gitlab.com/gitlab-org/gitlab-pages/#enable-prometheus-metrics
  1203. # gitlab_pages['metrics_address'] = ":9235"
  1204. ##! Specifies the minimum SSL/TLS version ("ssl3", "tls1.0", "tls1.1" or "tls1.2")
  1205. # gitlab_pages['tls_min_version'] = "ssl3"
  1206. ##! Specifies the maximum SSL/TLS version ("ssl3", "tls1.0", "tls1.1" or "tls1.2")
  1207. # gitlab_pages['tls_max_version'] = "tls1.2"
  1208. ##! Pages access control
  1209. # gitlab_pages['access_control'] = false
  1210. # gitlab_pages['gitlab_id'] = nil # Automatically generated if not present
  1211. # gitlab_pages['gitlab_secret'] = nil # Generated if not present
  1212. # gitlab_pages['auth_redirect_uri'] = nil # Defaults to projects subdomain of pages_external_url and + '/auth'
  1213. # gitlab_pages['gitlab_server'] = nil # Defaults to external_url
  1214. # gitlab_pages['auth_secret'] = nil # Generated if not present
  1215. ##! GitLab API HTTP client connection timeout
  1216. # gitlab_pages['gitlab_client_http_timeout'] = "10s"
  1217. ##! GitLab API JWT Token expiry time"
  1218. # gitlab_pages['gitlab_client_jwt_expiry'] = "30s"
  1219. ##! Define custom gitlab-pages HTTP headers for the whole instance
  1220. # gitlab_pages['headers'] = []
  1221. ##! Shared secret used for authentication between Pages and GitLab
  1222. # gitlab_pages['api_secret_key'] = nil # Will be generated if not set. Base64 encoded and exactly 32 bytes long.
  1223. ################################################################################
  1224. ## GitLab Pages NGINX
  1225. ################################################################################
  1226. # All the settings defined in the "GitLab Nginx" section are also available in
  1227. # this "GitLab Pages NGINX" section, using the key `pages_nginx`. However,
  1228. # those settings should be explicitly set. That is, settings given as
  1229. # `nginx['some_setting']` WILL NOT be automatically replicated as
  1230. # `pages_nginx['some_setting']` and should be set separately.
  1231. # Below you can find settings that are exclusive to "GitLab Pages NGINX"
  1232. # pages_nginx['enable'] = false
  1233. # gitlab_rails['pages_path'] = "/var/opt/gitlab/gitlab-rails/shared/pages"
  1234. ################################################################################
  1235. ## GitLab CI
  1236. ##! Docs: https://docs.gitlab.com/ee/ci/quick_start/README.html
  1237. ################################################################################
  1238. # gitlab_ci['gitlab_ci_all_broken_builds'] = true
  1239. # gitlab_ci['gitlab_ci_add_pusher'] = true
  1240. # gitlab_ci['builds_directory'] = '/var/opt/gitlab/gitlab-ci/builds'
  1241. ################################################################################
  1242. ## GitLab Mattermost
  1243. ##! Docs: https://docs.gitlab.com/omnibus/gitlab-mattermost
  1244. ################################################################################
  1245. # mattermost_external_url 'http://mattermost.example.com'
  1246. # mattermost['enable'] = false
  1247. # mattermost['username'] = 'mattermost'
  1248. # mattermost['group'] = 'mattermost'
  1249. # mattermost['uid'] = nil
  1250. # mattermost['gid'] = nil
  1251. # mattermost['home'] = '/var/opt/gitlab/mattermost'
  1252. # mattermost['database_name'] = 'mattermost_production'
  1253. # mattermost['env'] = {
  1254. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1255. # }
  1256. # mattermost['service_address'] = "127.0.0.1"
  1257. # mattermost['service_port'] = "8065"
  1258. # mattermost['service_site_url'] = nil
  1259. # mattermost['service_allowed_untrusted_internal_connections'] = ""
  1260. # mattermost['service_enable_api_team_deletion'] = true
  1261. # mattermost['team_site_name'] = "GitLab Mattermost"
  1262. # mattermost['sql_driver_name'] = 'mysql'
  1263. # mattermost['sql_data_source'] = "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8"
  1264. # mattermost['log_file_directory'] = '/var/log/gitlab/mattermost/'
  1265. # mattermost['gitlab_enable'] = false
  1266. # mattermost['gitlab_id'] = "12345656"
  1267. # mattermost['gitlab_secret'] = "123456789"
  1268. # mattermost['gitlab_scope'] = ""
  1269. # mattermost['gitlab_auth_endpoint'] = "http://gitlab.example.com/oauth/authorize"
  1270. # mattermost['gitlab_token_endpoint'] = "http://gitlab.example.com/oauth/token"
  1271. # mattermost['gitlab_user_api_endpoint'] = "http://gitlab.example.com/api/v4/user"
  1272. # mattermost['file_directory'] = "/var/opt/gitlab/mattermost/data"
  1273. # mattermost['plugin_directory'] = "/var/opt/gitlab/mattermost/plugins"
  1274. # mattermost['plugin_client_directory'] = "/var/opt/gitlab/mattermost/client-plugins"
  1275. ################################################################################
  1276. ## Mattermost NGINX
  1277. ################################################################################
  1278. # All the settings defined in the "GitLab Nginx" section are also available in
  1279. # this "Mattermost NGINX" section, using the key `mattermost_nginx`. However,
  1280. # those settings should be explicitly set. That is, settings given as
  1281. # `nginx['some_setting']` WILL NOT be automatically replicated as
  1282. # `mattermost_nginx['some_setting']` and should be set separately.
  1283. # Below you can find settings that are exclusive to "Mattermost NGINX"
  1284. # mattermost_nginx['enable'] = false
  1285. # mattermost_nginx['custom_gitlab_mattermost_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
  1286. # mattermost_nginx['proxy_set_headers'] = {
  1287. # "Host" => "$http_host",
  1288. # "X-Real-IP" => "$remote_addr",
  1289. # "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
  1290. # "X-Frame-Options" => "SAMEORIGIN",
  1291. # "X-Forwarded-Proto" => "https",
  1292. # "X-Forwarded-Ssl" => "on",
  1293. # "Upgrade" => "$http_upgrade",
  1294. # "Connection" => "$connection_upgrade"
  1295. # }
  1296. ################################################################################
  1297. ## Registry NGINX
  1298. ################################################################################
  1299. # All the settings defined in the "GitLab Nginx" section are also available in
  1300. # this "Registry NGINX" section, using the key `registry_nginx`. However, those
  1301. # settings should be explicitly set. That is, settings given as
  1302. # `nginx['some_setting']` WILL NOT be automatically replicated as
  1303. # `registry_nginx['some_setting']` and should be set separately.
  1304. # Below you can find settings that are exclusive to "Registry NGINX"
  1305. # registry_nginx['enable'] = false
  1306. # registry_nginx['proxy_set_headers'] = {
  1307. # "Host" => "$http_host",
  1308. # "X-Real-IP" => "$remote_addr",
  1309. # "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
  1310. # "X-Forwarded-Proto" => "https",
  1311. # "X-Forwarded-Ssl" => "on"
  1312. # }
  1313. # When the registry is automatically enabled using the same domain as `external_url`,
  1314. # it listens on this port
  1315. # registry_nginx['listen_port'] = 5050
  1316. ################################################################################
  1317. ## Prometheus
  1318. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/
  1319. ################################################################################
  1320. ###! **To enable only Monitoring service in this machine, uncomment
  1321. ###! the line below.**
  1322. ###! Docs: https://docs.gitlab.com/ee/administration/high_availability
  1323. # monitoring_role['enable'] = true
  1324. # prometheus['enable'] = true
  1325. # prometheus['monitor_kubernetes'] = true
  1326. # prometheus['username'] = 'gitlab-prometheus'
  1327. # prometheus['group'] = 'gitlab-prometheus'
  1328. # prometheus['uid'] = nil
  1329. # prometheus['gid'] = nil
  1330. # prometheus['shell'] = '/bin/sh'
  1331. # prometheus['home'] = '/var/opt/gitlab/prometheus'
  1332. # prometheus['log_directory'] = '/var/log/gitlab/prometheus'
  1333. # prometheus['rules_files'] = ['/var/opt/gitlab/prometheus/rules/*.rules']
  1334. # prometheus['scrape_interval'] = 15
  1335. # prometheus['scrape_timeout'] = 15
  1336. # prometheus['env_directory'] = '/opt/gitlab/etc/prometheus/env'
  1337. # prometheus['env'] = {
  1338. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1339. # }
  1340. #
  1341. ### Custom scrape configs
  1342. #
  1343. # Prometheus can scrape additional jobs via scrape_configs. The default automatically
  1344. # includes all of the exporters supported by the omnibus config.
  1345. #
  1346. # See: https://prometheus.io/docs/operating/configuration/#<scrape_config>
  1347. #
  1348. # Example:
  1349. #
  1350. # prometheus['scrape_configs'] = [
  1351. # {
  1352. # 'job_name': 'example',
  1353. # 'static_configs' => [
  1354. # 'targets' => ['hostname:port'],
  1355. # ],
  1356. # },
  1357. # ]
  1358. #
  1359. ### Custom alertmanager config
  1360. #
  1361. # To configure external alertmanagers, create an alertmanager config.
  1362. #
  1363. # See: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config
  1364. #
  1365. # prometheus['alertmanagers'] = [
  1366. # {
  1367. # 'static_configs' => [
  1368. # {
  1369. # 'targets' => [
  1370. # 'hostname:port'
  1371. # ]
  1372. # }
  1373. # ]
  1374. # }
  1375. # ]
  1376. #
  1377. ### Custom Prometheus flags
  1378. #
  1379. # prometheus['flags'] = {
  1380. # 'storage.tsdb.path' => "/var/opt/gitlab/prometheus/data",
  1381. # 'storage.tsdb.retention.time' => "15d",
  1382. # 'config.file' => "/var/opt/gitlab/prometheus/prometheus.yml"
  1383. # }
  1384. ##! Advanced settings. Should be changed only if absolutely needed.
  1385. # prometheus['listen_address'] = 'localhost:9090'
  1386. ################################################################################
  1387. ## Prometheus Alertmanager
  1388. ################################################################################
  1389. # alertmanager['enable'] = true
  1390. # alertmanager['home'] = '/var/opt/gitlab/alertmanager'
  1391. # alertmanager['log_directory'] = '/var/log/gitlab/alertmanager'
  1392. # alertmanager['admin_email'] = 'admin@example.com'
  1393. # alertmanager['flags'] = {
  1394. # 'web.listen-address' => "localhost:9093"
  1395. # 'storage.path' => "/var/opt/gitlab/alertmanager/data"
  1396. # 'config.file' => "/var/opt/gitlab/alertmanager/alertmanager.yml"
  1397. # }
  1398. # alertmanager['env_directory'] = '/opt/gitlab/etc/alertmanager/env'
  1399. # alertmanager['env'] = {
  1400. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1401. # }
  1402. ##! Advanced settings. Should be changed only if absolutely needed.
  1403. # alertmanager['listen_address'] = 'localhost:9093'
  1404. # alertmanager['global'] = {}
  1405. ################################################################################
  1406. ## Prometheus Node Exporter
  1407. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/node_exporter.html
  1408. ################################################################################
  1409. # node_exporter['enable'] = true
  1410. # node_exporter['home'] = '/var/opt/gitlab/node-exporter'
  1411. # node_exporter['log_directory'] = '/var/log/gitlab/node-exporter'
  1412. # node_exporter['flags'] = {
  1413. # 'collector.textfile.directory' => "/var/opt/gitlab/node-exporter/textfile_collector"
  1414. # }
  1415. # node_exporter['env_directory'] = '/opt/gitlab/etc/node-exporter/env'
  1416. # node_exporter['env'] = {
  1417. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1418. # }
  1419. ##! Advanced settings. Should be changed only if absolutely needed.
  1420. # node_exporter['listen_address'] = 'localhost:9100'
  1421. ################################################################################
  1422. ## Prometheus Redis exporter
  1423. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/redis_exporter.html
  1424. ################################################################################
  1425. # redis_exporter['enable'] = true
  1426. # redis_exporter['log_directory'] = '/var/log/gitlab/redis-exporter'
  1427. # redis_exporter['flags'] = {
  1428. # 'redis.addr' => "unix:///var/opt/gitlab/redis/redis.socket",
  1429. # }
  1430. # redis_exporter['env_directory'] = '/opt/gitlab/etc/redis-exporter/env'
  1431. # redis_exporter['env'] = {
  1432. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1433. # }
  1434. ##! Advanced settings. Should be changed only if absolutely needed.
  1435. # redis_exporter['listen_address'] = 'localhost:9121'
  1436. ################################################################################
  1437. ## Prometheus Postgres exporter
  1438. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/postgres_exporter.html
  1439. ################################################################################
  1440. # postgres_exporter['enable'] = true
  1441. # postgres_exporter['home'] = '/var/opt/gitlab/postgres-exporter'
  1442. # postgres_exporter['log_directory'] = '/var/log/gitlab/postgres-exporter'
  1443. # postgres_exporter['flags'] = {}
  1444. # postgres_exporter['listen_address'] = 'localhost:9187'
  1445. # postgres_exporter['env_directory'] = '/opt/gitlab/etc/postgres-exporter/env'
  1446. # postgres_exporter['env'] = {
  1447. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1448. # }
  1449. # postgres_exporter['sslmode'] = nil
  1450. ################################################################################
  1451. ## Prometheus PgBouncer exporter (EE only)
  1452. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/pgbouncer_exporter.html
  1453. ################################################################################
  1454. # pgbouncer_exporter['enable'] = false
  1455. # pgbouncer_exporter['log_directory'] = "/var/log/gitlab/pgbouncer-exporter"
  1456. # pgbouncer_exporter['listen_address'] = 'localhost:9188'
  1457. # pgbouncer_exporter['env_directory'] = '/opt/gitlab/etc/pgbouncer-exporter/env'
  1458. # pgbouncer_exporter['env'] = {
  1459. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1460. # }
  1461. ################################################################################
  1462. ## Prometheus Gitlab exporter
  1463. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/gitlab_exporter.html
  1464. ################################################################################
  1465. # gitlab_exporter['enable'] = true
  1466. # gitlab_exporter['log_directory'] = "/var/log/gitlab/gitlab-exporter"
  1467. # gitlab_exporter['home'] = "/var/opt/gitlab/gitlab-exporter"
  1468. ##! Advanced settings. Should be changed only if absolutely needed.
  1469. # gitlab_exporter['listen_address'] = 'localhost'
  1470. # gitlab_exporter['listen_port'] = '9168'
  1471. ##! Manage gitlab-exporter sidekiq probes. false by default when Sentinels are
  1472. ##! found.
  1473. # gitlab_exporter['probe_sidekiq'] = true
  1474. # To completely disable prometheus, and all of it's exporters, set to false
  1475. # prometheus_monitoring['enable'] = true
  1476. ################################################################################
  1477. ## Grafana Dashboards
  1478. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/#prometheus-as-a-grafana-data-source
  1479. ################################################################################
  1480. # grafana['enable'] = true
  1481. # grafana['log_directory'] = '/var/log/gitlab/grafana'
  1482. # grafana['home'] = '/var/opt/gitlab/grafana'
  1483. # grafana['admin_password'] = 'admin'
  1484. # grafana['allow_user_sign_up'] = false
  1485. # grafana['basic_auth_enabled'] = false
  1486. # grafana['disable_login_form'] = true
  1487. # grafana['gitlab_application_id'] = 'GITLAB_APPLICATION_ID'
  1488. # grafana['gitlab_secret'] = 'GITLAB_SECRET'
  1489. # grafana['env_directory'] = '/opt/gitlab/etc/grafana/env'
  1490. # grafana['allowed_groups'] = []
  1491. # grafana['gitlab_auth_sign_up'] = true
  1492. # grafana['env'] = {
  1493. # 'SSL_CERT_DIR' => "#{node['package']['install-dir']}/embedded/ssl/certs/"
  1494. # }
  1495. # grafana['metrics_enabled'] = false
  1496. # grafana['metrics_basic_auth_username'] = 'grafana_metrics' # default: nil
  1497. # grafana['metrics_basic_auth_password'] = 'please_set_a_unique_password' # default: nil
  1498. ### Dashboards
  1499. #
  1500. # See: http://docs.grafana.org/administration/provisioning/#dashboards
  1501. #
  1502. # NOTE: Setting this will override the default.
  1503. #
  1504. # grafana['dashboards'] = [
  1505. # {
  1506. # 'name' => 'GitLab Omnibus',
  1507. # 'orgId' => 1,
  1508. # 'folder' => 'GitLab Omnibus',
  1509. # 'type' => 'file',
  1510. # 'disableDeletion' => true,
  1511. # 'updateIntervalSeconds' => 600,
  1512. # 'options' => {
  1513. # 'path' => '/opt/gitlab/embedded/service/grafana-dashboards',
  1514. # }
  1515. # }
  1516. # ]
  1517. ### Datasources
  1518. #
  1519. # See: http://docs.grafana.org/administration/provisioning/#example-datasource-config-file
  1520. #
  1521. # NOTE: Setting this will override the default.
  1522. #
  1523. # grafana['datasources'] = [
  1524. # {
  1525. # 'name' => 'GitLab Omnibus',
  1526. # 'type' => 'prometheus',
  1527. # 'access' => 'proxy',
  1528. # 'url' => 'http://localhost:9090'
  1529. # }
  1530. # ]
  1531. ##! Advanced settings. Should be changed only if absolutely needed.
  1532. # grafana['http_addr'] = 'localhost'
  1533. # grafana['http_port'] = 3000
  1534. ################################################################################
  1535. ## Gitaly
  1536. ##! Docs:
  1537. ################################################################################
  1538. # The gitaly['enable'] option exists for the purpose of cluster
  1539. # deployments, see https://docs.gitlab.com/ee/administration/gitaly/index.html .
  1540. # gitaly['enable'] = true
  1541. # gitaly['dir'] = "/var/opt/gitlab/gitaly"
  1542. # gitaly['log_directory'] = "/var/log/gitlab/gitaly"
  1543. # gitaly['bin_path'] = "/opt/gitlab/embedded/bin/gitaly"
  1544. # gitaly['env_directory'] = "/opt/gitlab/etc/gitaly/env"
  1545. # gitaly['env'] = {
  1546. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
  1547. # 'HOME' => '/var/opt/gitlab'
  1548. # }
  1549. ##! internal_socket_dir is the directory that will contain internal gitaly sockets,
  1550. ##! separate from socket_path which is the socket that external clients listen on
  1551. # gitaly['internal_socket_dir'] = "/var/opt/gitlab/gitaly"
  1552. # gitaly['socket_path'] = "/var/opt/gitlab/gitaly/gitaly.socket"
  1553. # gitaly['listen_addr'] = "localhost:8075"
  1554. # gitaly['tls_listen_addr'] = "localhost:9075"
  1555. # gitaly['certificate_path'] = "/var/opt/gitlab/gitaly/certificate.pem"
  1556. # gitaly['key_path'] = "/var/opt/gitlab/gitaly/key.pem"
  1557. # gitaly['prometheus_listen_addr'] = "localhost:9236"
  1558. # gitaly['logging_level'] = "warn"
  1559. # gitaly['logging_format'] = "json"
  1560. # gitaly['logging_sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
  1561. # gitaly['logging_ruby_sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
  1562. # gitaly['logging_sentry_environment'] = "production"
  1563. # 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]"
  1564. # gitaly['auth_token'] = '<secret>'
  1565. # gitaly['auth_transitioning'] = false # When true, auth is logged to Prometheus but NOT enforced
  1566. # gitaly['graceful_restart_timeout'] = '1m' # Grace time for a gitaly process to finish ongoing requests
  1567. # gitaly['git_catfile_cache_size'] = 100 # Number of 'git cat-file' processes kept around for re-use
  1568. # gitaly['open_files_ulimit'] = 15000 # Maximum number of open files allowed for the gitaly process
  1569. # gitaly['ruby_max_rss'] = 300000000 # RSS threshold in bytes for triggering a gitaly-ruby restart
  1570. # gitaly['ruby_graceful_restart_timeout'] = '10m' # Grace time for a gitaly-ruby process to finish ongoing requests
  1571. # gitaly['ruby_restart_delay'] = '5m' # Period of sustained high RSS that needs to be observed before restarting gitaly-ruby
  1572. # gitaly['ruby_rugged_git_config_search_path'] = "/opt/gitlab/embedded/etc" # Location of system-wide gitconfig file
  1573. # gitaly['ruby_num_workers'] = 3 # Number of gitaly-ruby worker processes. Minimum 2, default 2.
  1574. # gitaly['concurrency'] = [
  1575. # {
  1576. # 'rpc' => "/gitaly.SmartHTTPService/PostReceivePack",
  1577. # 'max_per_repo' => 20
  1578. # }, {
  1579. # 'rpc' => "/gitaly.SSHService/SSHUploadPack",
  1580. # 'max_per_repo' => 5
  1581. # }
  1582. # ]
  1583. ################################################################################
  1584. ## Praefect
  1585. ##! Docs: https://gitlab.com/gitlab-org/gitaly/blob/master/doc/design_ha.md
  1586. ################################################################################
  1587. # praefect['enable'] = false
  1588. # praefect['virtual_storage_name'] = "praefect"
  1589. # praefect['failover_enabled'] = false
  1590. # praefect['failover_election_strategy'] = 'local'
  1591. # praefect['auth_token'] = ""
  1592. # praefect['auth_transitioning'] = false
  1593. # praefect['listen_addr'] = "localhost:2305"
  1594. # praefect['postgres_queue_enabled'] = false
  1595. # praefect['prometheus_listen_addr'] = "localhost:9652"
  1596. # 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]"
  1597. # praefect['logging_level'] = "warn"
  1598. # praefect['logging_format'] = "json"
  1599. # praefect['virtual_storages'] = {
  1600. # 'default' => {
  1601. # 'praefect-internal-0' => {
  1602. # 'address' => 'tcp://10.23.56.78:8075',
  1603. # 'token' => 'abc123'
  1604. # },
  1605. # 'praefect-internal-1' => {
  1606. # 'address' => 'tcp://10.76.23.31:8075',
  1607. # 'token' => 'xyz456'
  1608. # }
  1609. # },
  1610. # 'alternative' => {
  1611. # 'praefect-internal-2' => {
  1612. # 'address' => 'tcp://10.34.1.16:8075',
  1613. # 'token' => 'abc321'
  1614. # },
  1615. # 'praefect-internal-3' => {
  1616. # 'address' => 'tcp://10.23.18.6:8075',
  1617. # 'token' => 'xyz890'
  1618. # }
  1619. # }
  1620. # }
  1621. # praefect['sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
  1622. # praefect['sentry_environment'] = "production"
  1623. # praefect['database_host'] = 'postgres.internal'
  1624. # praefect['database_port'] = 5432
  1625. # praefect['database_user'] = 'praefect'
  1626. # praefect['database_password'] = 'secret'
  1627. # praefect['database_dbname'] = 'praefect_production'
  1628. # praefect['database_sslmode'] = 'disable'
  1629. # praefect['database_sslcert'] = '/path/to/client-cert'
  1630. # praefect['database_sslkey'] = '/path/to/client-key'
  1631. # praefect['database_sslrootcert'] = '/path/to/rootcert'
  1632. ################################################################################
  1633. # Storage check
  1634. ################################################################################
  1635. # storage_check['enable'] = false
  1636. # storage_check['target'] = 'unix:///var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  1637. # storage_check['log_directory'] = '/var/log/gitlab/storage-check'
  1638. ################################################################################
  1639. # Let's Encrypt integration
  1640. ################################################################################
  1641. # letsencrypt['enable'] = nil
  1642. # letsencrypt['contact_emails'] = [] # This should be an array of email addresses to add as contacts
  1643. # letsencrypt['group'] = 'root'
  1644. # letsencrypt['key_size'] = 2048
  1645. # letsencrypt['owner'] = 'root'
  1646. # letsencrypt['wwwroot'] = '/var/opt/gitlab/nginx/www'
  1647. # See http://docs.gitlab.com/omnibus/settings/ssl.html#automatic-renewal for more on these sesttings
  1648. # letsencrypt['auto_renew'] = true
  1649. # letsencrypt['auto_renew_hour'] = 0
  1650. # letsencrypt['auto_renew_minute'] = nil # Should be a number or cron expression, if specified.
  1651. # letsencrypt['auto_renew_day_of_month'] = "*/4"
  1652. ##! Turn off automatic init system detection. To skip init detection in
  1653. ##! non-docker containers. Recommended not to change.
  1654. # package['detect_init'] = true
  1655. ##! Specify maximum number of tasks that can be created by the systemd unit
  1656. ##! Will be populated as TasksMax value to the unit file if user is on a systemd
  1657. ##! version that supports it (>= 227). Will be a no-op if user is not on systemd.
  1658. # package['systemd_tasks_max'] = 4915
  1659. ##! Settings to configure order of GitLab's systemd unit.
  1660. ##! Note: We do not recommend changing these values unless absolutely necessary
  1661. # package['systemd_after'] = 'multi-user.target'
  1662. # package['systemd_wanted_by'] = 'multi-user.target'
  1663. ################################################################################
  1664. ################################################################################
  1665. ## Configuration Settings for GitLab EE only ##
  1666. ################################################################################
  1667. ################################################################################
  1668. ################################################################################
  1669. ## Auxiliary cron jobs applicable to GitLab EE only
  1670. ################################################################################
  1671. #
  1672. # gitlab_rails['geo_file_download_dispatch_worker_cron'] = "*/10 * * * *"
  1673. # gitlab_rails['geo_repository_sync_worker_cron'] = "*/5 * * * *"
  1674. # gitlab_rails['geo_secondary_registry_consistency_worker'] = "* * * * *"
  1675. # gitlab_rails['geo_prune_event_log_worker_cron'] = "*/5 * * * *"
  1676. # gitlab_rails['geo_repository_verification_primary_batch_worker_cron'] = "*/5 * * * *"
  1677. # gitlab_rails['geo_repository_verification_secondary_scheduler_worker_cron'] = "*/5 * * * *"
  1678. # gitlab_rails['geo_migrated_local_files_clean_up_worker_cron'] = "15 */6 * * *"
  1679. # gitlab_rails['ldap_sync_worker_cron'] = "30 1 * * *"
  1680. # gitlab_rails['ldap_group_sync_worker_cron'] = "0 * * * *"
  1681. # gitlab_rails['historical_data_worker_cron'] = "0 12 * * *"
  1682. # gitlab_rails['pseudonymizer_worker_cron'] = "0 23 * * *"
  1683. # gitlab_rails['elastic_index_bulk_cron'] = "*/1 * * * *"
  1684. ################################################################################
  1685. ## Kerberos (EE Only)
  1686. ##! Docs: https://docs.gitlab.com/ee/integration/kerberos.html#http-git-access
  1687. ################################################################################
  1688. # gitlab_rails['kerberos_enabled'] = true
  1689. # gitlab_rails['kerberos_keytab'] = /etc/http.keytab
  1690. # gitlab_rails['kerberos_service_principal_name'] = HTTP/gitlab.example.com@EXAMPLE.COM
  1691. # gitlab_rails['kerberos_use_dedicated_port'] = true
  1692. # gitlab_rails['kerberos_port'] = 8443
  1693. # gitlab_rails['kerberos_https'] = true
  1694. ################################################################################
  1695. ## Package repository (EE Only)
  1696. ##! Docs: https://docs.gitlab.com/ee/administration/maven_packages.md
  1697. ################################################################################
  1698. # gitlab_rails['packages_enabled'] = true
  1699. # gitlab_rails['packages_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/packages"
  1700. # gitlab_rails['packages_object_store_enabled'] = false
  1701. # gitlab_rails['packages_object_store_direct_upload'] = false
  1702. # gitlab_rails['packages_object_store_background_upload'] = true
  1703. # gitlab_rails['packages_object_store_proxy_download'] = false
  1704. # gitlab_rails['packages_object_store_remote_directory'] = "packages"
  1705. # gitlab_rails['packages_object_store_connection'] = {
  1706. # 'provider' => 'AWS',
  1707. # 'region' => 'eu-west-1',
  1708. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  1709. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  1710. # # # The below options configure an S3 compatible host instead of AWS
  1711. # # 'host' => 's3.amazonaws.com',
  1712. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  1713. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  1714. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  1715. # }
  1716. ################################################################################
  1717. ## Dependency proxy (EE Only)
  1718. ##! Docs: https://docs.gitlab.com/ee/administration/dependency_proxy.md
  1719. ################################################################################
  1720. # gitlab_rails['dependency_proxy_enabled'] = true
  1721. # gitlab_rails['dependency_proxy_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/dependency_proxy"
  1722. # gitlab_rails['dependency_proxy_object_store_enabled'] = false
  1723. # gitlab_rails['dependency_proxy_object_store_direct_upload'] = false
  1724. # gitlab_rails['dependency_proxy_object_store_background_upload'] = true
  1725. # gitlab_rails['dependency_proxy_object_store_proxy_download'] = false
  1726. # gitlab_rails['dependency_proxy_object_store_remote_directory'] = "dependency_proxy"
  1727. # gitlab_rails['dependency_proxy_object_store_connection'] = {
  1728. # 'provider' => 'AWS',
  1729. # 'region' => 'eu-west-1',
  1730. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  1731. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  1732. # # # The below options configure an S3 compatible host instead of AWS
  1733. # # 'host' => 's3.amazonaws.com',
  1734. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  1735. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  1736. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  1737. # }
  1738. ################################################################################
  1739. ## GitLab Sentinel (EE Only)
  1740. ##! Docs: http://docs.gitlab.com/ce/administration/high_availability/redis.html#high-availability-with-sentinel
  1741. ################################################################################
  1742. ##! **Make sure you configured all redis['master_*'] keys above before
  1743. ##! continuing.**
  1744. ##! To enable Sentinel and disable all other services in this machine,
  1745. ##! uncomment the line below (if you've enabled Redis role, it will keep it).
  1746. ##! Docs: https://docs.gitlab.com/ee/administration/high_availability/redis.html
  1747. # redis_sentinel_role['enable'] = true
  1748. # sentinel['enable'] = true
  1749. ##! Bind to all interfaces, uncomment to specify an IP and bind to a single one
  1750. # sentinel['bind'] = '0.0.0.0'
  1751. ##! Uncomment to change default port
  1752. # sentinel['port'] = 26379
  1753. #### Support to run sentinels in a Docker or NAT environment
  1754. #####! Docs: https://redis.io/topics/sentinel#sentinel-docker-nat-and-possible-issues
  1755. # 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
  1756. # Only define these values if it is needed to announce for Sentinel a differen IP service than Redis
  1757. # sentinel['announce_ip'] = nil # If not defined, its value will be taken from redis['announce_ip'] or nil if not present
  1758. # sentinel['announce_port'] = nil # If not defined, its value will be taken from sentinel['port'] or nil if redis['announce_ip'] not present
  1759. ##! Quorum must reflect the amount of voting sentinels it take to start a
  1760. ##! failover.
  1761. ##! **Value must NOT be greater then the amount of sentinels.**
  1762. ##! The quorum can be used to tune Sentinel in two ways:
  1763. ##! 1. If a the quorum is set to a value smaller than the majority of Sentinels
  1764. ##! we deploy, we are basically making Sentinel more sensible to master
  1765. ##! failures, triggering a failover as soon as even just a minority of
  1766. ##! Sentinels is no longer able to talk with the master.
  1767. ##! 2. If a quorum is set to a value greater than the majority of Sentinels, we
  1768. ##! are making Sentinel able to failover only when there are a very large
  1769. ##! number (larger than majority) of well connected Sentinels which agree
  1770. ##! about the master being down.
  1771. # sentinel['quorum'] = 1
  1772. ### Consider unresponsive server down after x amount of ms.
  1773. # sentinel['down_after_milliseconds'] = 10000
  1774. ### Specifies the failover timeout in milliseconds.
  1775. ##! It is used in many ways:
  1776. ##!
  1777. ##! - The time needed to re-start a failover after a previous failover was
  1778. ##! already tried against the same master by a given Sentinel, is two
  1779. ##! times the failover timeout.
  1780. ##!
  1781. ##! - The time needed for a slave replicating to a wrong master according
  1782. ##! to a Sentinel current configuration, to be forced to replicate
  1783. ##! with the right master, is exactly the failover timeout (counting since
  1784. ##! the moment a Sentinel detected the misconfiguration).
  1785. ##!
  1786. ##! - The time needed to cancel a failover that is already in progress but
  1787. ##! did not produced any configuration change (SLAVEOF NO ONE yet not
  1788. ##! acknowledged by the promoted slave).
  1789. ##!
  1790. ##! - The maximum time a failover in progress waits for all the slaves to be
  1791. ##! reconfigured as slaves of the new master. However even after this time
  1792. ##! the slaves will be reconfigured by the Sentinels anyway, but not with
  1793. ##! the exact parallel-syncs progression as specified.
  1794. # sentinel['failover_timeout'] = 60000
  1795. ################################################################################
  1796. ## GitLab Sidekiq Cluster (EE only)
  1797. ################################################################################
  1798. ##! GitLab Enterprise Edition allows one to start an extra set of Sidekiq processes
  1799. ##! besides the default one. These processes can be used to consume a dedicated set
  1800. ##! of queues. This can be used to ensure certain queues always have dedicated
  1801. ##! workers, no matter the amount of jobs that need to be processed.
  1802. # sidekiq_cluster['enable'] = false
  1803. # sidekiq_cluster['ha'] = false
  1804. # sidekiq_cluster['log_directory'] = "/var/log/gitlab/sidekiq-cluster"
  1805. # sidekiq_cluster['interval'] = 5 # The number of seconds to wait between worker checks
  1806. # sidekiq_cluster['max_concurrency'] = 50 # The maximum number of threads each Sidekiq process should run
  1807. # sidekiq_cluster['min_concurrency'] = 0 # The minimum number of threads each Sidekiq process should run
  1808. ##! Each entry in the queue_groups array denotes a group of queues that have to be processed by a
  1809. ##! Sidekiq process. Multiple queues can be processed by the same process by
  1810. ##! separating them with a comma within the group entry
  1811. # sidekiq_cluster['queue_groups'] = [
  1812. # "process_commit,post_receive",
  1813. # "gitlab_shell"
  1814. # ]
  1815. #
  1816. ##! If negate is enabled then sidekiq-cluster will process all the queues that
  1817. ##! don't match those in queue_groups.
  1818. # sidekiq_cluster['negate'] = false
  1819. ################################################################################
  1820. ## Additional Database Settings (EE only)
  1821. ##! Docs: https://docs.gitlab.com/ee/administration/database_load_balancing.html
  1822. ################################################################################
  1823. # gitlab_rails['db_load_balancing'] = { 'hosts' => ['secondary1.example.com'] }
  1824. ################################################################################
  1825. ## GitLab Geo
  1826. ##! Docs: https://docs.gitlab.com/ee/gitlab-geo
  1827. ################################################################################
  1828. # geo_primary_role['enable'] = false
  1829. # geo_secondary_role['enable'] = false
  1830. # This is an optional identifier which Geo nodes can use to identify themselves.
  1831. # For example, if external_url is the same for two secondaries, you must specify
  1832. # a unique Geo node name for those secondaries.
  1833. #
  1834. # If it is blank, it defaults to external_url.
  1835. # gitlab_rails['geo_node_name'] = nil
  1836. # gitlab_rails['geo_registry_replication_enabled'] = true
  1837. # gitlab_rails['geo_registry_replication_primary_api_url'] = 'https://example.com:5000'
  1838. ################################################################################
  1839. ## GitLab Geo Secondary (EE only)
  1840. ################################################################################
  1841. # geo_secondary['auto_migrate'] = true
  1842. # geo_secondary['db_adapter'] = "postgresql"
  1843. # geo_secondary['db_encoding'] = "unicode"
  1844. # geo_secondary['db_collation'] = nil
  1845. # geo_secondary['db_database'] = "gitlabhq_geo_production"
  1846. # geo_secondary['db_pool'] = 1
  1847. # geo_secondary['db_username'] = "gitlab_geo"
  1848. # geo_secondary['db_password'] = nil
  1849. # geo_secondary['db_host'] = "/var/opt/gitlab/geo-postgresql"
  1850. # geo_secondary['db_port'] = 5431
  1851. # geo_secondary['db_socket'] = nil
  1852. # geo_secondary['db_sslmode'] = nil
  1853. # geo_secondary['db_sslcompression'] = 0
  1854. # geo_secondary['db_sslrootcert'] = nil
  1855. # geo_secondary['db_sslca'] = nil
  1856. # geo_secondary['db_fdw'] = true
  1857. ################################################################################
  1858. ## GitLab Geo Secondary Tracking Database (EE only)
  1859. ################################################################################
  1860. # geo_postgresql['enable'] = false
  1861. # geo_postgresql['ha'] = false
  1862. # geo_postgresql['dir'] = '/var/opt/gitlab/geo-postgresql'
  1863. # geo_postgresql['data_dir'] = '/var/opt/gitlab/geo-postgresql/data'
  1864. # geo_postgresql['pgbouncer_user'] = nil
  1865. # geo_postgresql['pgbouncer_user_password'] = nil
  1866. ##! `SQL_USER_PASSWORD_HASH` can be generated using the command `gitlab-ctl pg-password-md5 gitlab`
  1867. # geo_postgresql['sql_user_password'] = 'SQL_USER_PASSWORD_HASH'
  1868. ################################################################################
  1869. ## Unleash
  1870. ##! Docs: https://docs.gitlab.com/ee/user/project/operations/feature_flags.html
  1871. ################################################################################
  1872. # gitlab_rails['feature_flags_unleash_enabled'] = false
  1873. # gitlab_rails['feature_flags_unleash_url'] = nil
  1874. # gitlab_rails['feature_flags_unleash_app_name'] = nil
  1875. # gitlab_rails['feature_flags_unleash_instance_id'] = nil
  1876. ################################################################################
  1877. # Pgbouncer (EE only)
  1878. # See [GitLab PgBouncer documentation](http://docs.gitlab.com/omnibus/settings/database.html#enabling-pgbouncer-ee-only)
  1879. # See the [PgBouncer page](https://pgbouncer.github.io/config.html) for details
  1880. ################################################################################
  1881. # pgbouncer['enable'] = false
  1882. # pgbouncer['log_directory'] = '/var/log/gitlab/pgbouncer'
  1883. # pgbouncer['data_directory'] = '/var/opt/gitlab/pgbouncer'
  1884. # pgbouncer['env_directory'] = '/opt/gitlab/etc/pgbouncer/env'
  1885. # pgbouncer['env'] = {
  1886. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1887. # }
  1888. # pgbouncer['listen_addr'] = '0.0.0.0'
  1889. # pgbouncer['listen_port'] = '6432'
  1890. # pgbouncer['pool_mode'] = 'transaction'
  1891. # pgbouncer['server_reset_query'] = 'DISCARD ALL'
  1892. # pgbouncer['application_name_add_host'] = '1'
  1893. # pgbouncer['max_client_conn'] = '2048'
  1894. # pgbouncer['default_pool_size'] = '100'
  1895. # pgbouncer['min_pool_size'] = '0'
  1896. # pgbouncer['reserve_pool_size'] = '5'
  1897. # pgbouncer['reserve_pool_timeout'] = '5.0'
  1898. # pgbouncer['server_round_robin'] = '0'
  1899. # pgbouncer['log_connections'] = '0'
  1900. # pgbouncer['server_idle_timeout'] = '30'
  1901. # pgbouncer['dns_max_ttl'] = '15.0'
  1902. # pgbouncer['dns_zone_check_period'] = '0'
  1903. # pgbouncer['dns_nxdomain_ttl'] = '15.0'
  1904. # pgbouncer['admin_users'] = %w(gitlab-psql postgres pgbouncer)
  1905. # pgbouncer['stats_users'] = %w(gitlab-psql postgres pgbouncer)
  1906. # pgbouncer['ignore_startup_parameters'] = 'extra_float_digits'
  1907. # pgbouncer['databases'] = {
  1908. # DATABASE_NAME: {
  1909. # host: HOSTNAME,
  1910. # port: PORT
  1911. # user: USERNAME,
  1912. # password: PASSWORD
  1913. ###! generate this with `echo -n '$password + $username' | md5sum`
  1914. # }
  1915. # ...
  1916. # }
  1917. # pgbouncer['logfile'] = nil
  1918. # pgbouncer['unix_socket_dir'] = nil
  1919. # pgbouncer['unix_socket_mode'] = '0777'
  1920. # pgbouncer['unix_socket_group'] = nil
  1921. # pgbouncer['auth_type'] = 'md5'
  1922. # pgbouncer['auth_hba_file'] = nil
  1923. # pgbouncer['auth_query'] = 'SELECT username, password FROM public.pg_shadow_lookup($1)'
  1924. # pgbouncer['users'] = {
  1925. # {
  1926. # name: USERNAME,
  1927. # password: MD5_PASSWORD_HASH
  1928. # }
  1929. # }
  1930. # postgresql['pgbouncer_user'] = nil
  1931. # postgresql['pgbouncer_user_password'] = nil
  1932. # pgbouncer['server_reset_query_always'] = 0
  1933. # pgbouncer['server_check_query'] = 'select 1'
  1934. # pgbouncer['server_check_delay'] = 30
  1935. # pgbouncer['max_db_connections'] = nil
  1936. # pgbouncer['max_user_connections'] = nil
  1937. # pgbouncer['syslog'] = 0
  1938. # pgbouncer['syslog_facility'] = 'daemon'
  1939. # pgbouncer['syslog_ident'] = 'pgbouncer'
  1940. # pgbouncer['log_disconnections'] = 1
  1941. # pgbouncer['log_pooler_errors'] = 1
  1942. # pgbouncer['stats_period'] = 60
  1943. # pgbouncer['verbose'] = 0
  1944. # pgbouncer['server_lifetime'] = 3600
  1945. # pgbouncer['server_connect_timeout'] = 15
  1946. # pgbouncer['server_login_retry'] = 15
  1947. # pgbouncer['query_timeout'] = 0
  1948. # pgbouncer['query_wait_timeout'] = 120
  1949. # pgbouncer['client_idle_timeout'] = 0
  1950. # pgbouncer['client_login_timeout'] = 60
  1951. # pgbouncer['autodb_idle_timeout'] = 3600
  1952. # pgbouncer['suspend_timeout'] = 10
  1953. # pgbouncer['idle_transaction_timeout'] = 0
  1954. # pgbouncer['pkt_buf'] = 4096
  1955. # pgbouncer['listen_backlog'] = 128
  1956. # pgbouncer['sbuf_loopcnt'] = 5
  1957. # pgbouncer['max_packet_size'] = 2147483647
  1958. # pgbouncer['tcp_defer_accept'] = 0
  1959. # pgbouncer['tcp_socket_buffer'] = 0
  1960. # pgbouncer['tcp_keepalive'] = 1
  1961. # pgbouncer['tcp_keepcnt'] = 0
  1962. # pgbouncer['tcp_keepidle'] = 0
  1963. # pgbouncer['tcp_keepintvl'] = 0
  1964. # pgbouncer['disable_pqexec'] = 0
  1965. ## Pgbouncer client TLS options
  1966. # pgbouncer['client_tls_sslmode'] = 'disable'
  1967. # pgbouncer['client_tls_ca_file'] = nil
  1968. # pgbouncer['client_tls_key_file'] = nil
  1969. # pgbouncer['client_tls_cert_file'] = nil
  1970. # pgbouncer['client_tls_protocols'] = 'all'
  1971. # pgbouncer['client_tls_dheparams'] = 'auto'
  1972. # pgbouncer['client_tls_ecdhcurve'] = 'auto'
  1973. #
  1974. ## Pgbouncer server TLS options
  1975. # pgbouncer['server_tls_sslmode'] = 'disable'
  1976. # pgbouncer['server_tls_ca_file'] = nil
  1977. # pgbouncer['server_tls_key_file'] = nil
  1978. # pgbouncer['server_tls_cert_file'] = nil
  1979. # pgbouncer['server_tls_protocols'] = 'all'
  1980. # pgbouncer['server_tls_ciphers'] = 'fast'
  1981. ################################################################################
  1982. # Repmgr (EE only)
  1983. ################################################################################
  1984. # repmgr['enable'] = false
  1985. # repmgr['cluster'] = 'gitlab_cluster'
  1986. # repmgr['database'] = 'gitlab_repmgr'
  1987. # repmgr['host'] = nil
  1988. # repmgr['node_number'] = nil
  1989. # repmgr['port'] = 5432
  1990. # repmgr['trust_auth_cidr_addresses'] = []
  1991. # repmgr['username'] = 'gitlab_repmgr'
  1992. # repmgr['sslmode'] = 'prefer'
  1993. # repmgr['sslcompression'] = 0
  1994. # repmgr['failover'] = 'automatic'
  1995. # repmgr['log_directory'] = '/var/log/gitlab/repmgrd'
  1996. # repmgr['node_name'] = nil
  1997. # repmgr['pg_bindir'] = '/opt/gitlab/embedded/bin'
  1998. # repmgr['service_start_command'] = '/opt/gitlab/bin/gitlab-ctl start postgresql'
  1999. # repmgr['service_stop_command'] = '/opt/gitlab/bin/gitlab-ctl stop postgresql'
  2000. # repmgr['service_reload_command'] = '/opt/gitlab/bin/gitlab-ctl hup postgresql'
  2001. # repmgr['service_restart_command'] = '/opt/gitlab/bin/gitlab-ctl restart postgresql'
  2002. # repmgr['service_promote_command'] = nil
  2003. # repmgr['promote_command'] = '/opt/gitlab/embedded/bin/repmgr standby promote -f /var/opt/gitlab/postgresql/repmgr.conf'
  2004. # repmgr['follow_command'] = '/opt/gitlab/embedded/bin/repmgr standby follow -f /var/opt/gitlab/postgresql/repmgr.conf'
  2005. # repmgr['upstream_node'] = nil
  2006. # repmgr['use_replication_slots'] = false
  2007. # repmgr['loglevel'] = 'INFO'
  2008. # repmgr['logfacility'] = 'STDERR'
  2009. # repmgr['logfile'] = nil
  2010. # repmgr['event_notification_command'] = nil
  2011. # repmgr['event_notifications'] = nil
  2012. # repmgr['rsync_options'] = nil
  2013. # repmgr['ssh_options'] = nil
  2014. # repmgr['priority'] = nil
  2015. #
  2016. # HA setting to specify if a node should attempt to be master on initialization
  2017. # repmgr['master_on_initialization'] = true
  2018. # repmgr['retry_promote_interval_secs'] = 300
  2019. # repmgr['witness_repl_nodes_sync_interval_secs'] = 15
  2020. # repmgr['reconnect_attempts'] = 6
  2021. # repmgr['reconnect_interval'] = 10
  2022. # repmgr['monitor_interval_secs'] = 2
  2023. # repmgr['master_response_timeout'] = 60
  2024. # repmgr['daemon'] = true
  2025. # repmgrd['enable'] = true
  2026. ################################################################################
  2027. # Consul (EEP only)
  2028. ################################################################################
  2029. # consul['enable'] = false
  2030. # consul['dir'] = '/var/opt/gitlab/consul'
  2031. # consul['username'] = 'gitlab-consul'
  2032. # consul['group'] = 'gitlab-consul'
  2033. # consul['config_file'] = '/var/opt/gitlab/consul/config.json'
  2034. # consul['config_dir'] = '/var/opt/gitlab/consul/config.d'
  2035. # consul['data_dir'] = '/var/opt/gitlab/consul/data'
  2036. # consul['log_directory'] = '/var/log/gitlab/consul'
  2037. # consul['env_directory'] = '/opt/gitlab/etc/consul/env'
  2038. # consul['env'] = {
  2039. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  2040. # }
  2041. # consul['monitoring_service_discovery'] = false
  2042. # consul['node_name'] = nil
  2043. # consul['script_directory'] = '/var/opt/gitlab/consul/scripts'
  2044. # consul['configuration'] = {
  2045. # 'client_addr' => nil,
  2046. # 'datacenter' => 'gitlab_consul',
  2047. # 'enable_script_checks' => true,
  2048. # 'server' => false
  2049. # }
  2050. # consul['services'] = []
  2051. # consul['service_config'] = {
  2052. # 'postgresql' => {
  2053. # 'service' => {
  2054. # 'name' => "postgresql",
  2055. # 'address' => '',
  2056. # 'port' => 5432,
  2057. # 'checks' => [
  2058. # {
  2059. # 'script' => "/var/opt/gitlab/consul/scripts/check_postgresql",
  2060. # 'interval' => "10s"
  2061. # }
  2062. # ]
  2063. # }
  2064. # }
  2065. # }
  2066. # consul['watchers'] = {
  2067. # 'postgresql' => {
  2068. # enable: false,
  2069. # handler: 'failover_pgbouncer'
  2070. # }
  2071. # }