Advertisement
cellsheet

gitlab.rb default

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