Advertisement
Guest User

Untitled

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