Advertisement
Guest User

Untitled

a guest
Sep 14th, 2016
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.06 KB | None | 0 0
  1. root@rockerschuppen:/etc/nginx/sites-enabled# cat /etc/gitlab/gitlab.rb
  2. ## Url on which GitLab will be reachable.
  3. ## For more details on configuring external_url see:
  4. ## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#configuring-the-external-url-for-gitlab
  5. external_url 'https://git.razorness.de'
  6.  
  7.  
  8. ## Note: configuration settings below are optional.
  9. ## Uncomment and change the value.
  10. ############################
  11. # gitlab.yml configuration #
  12. ############################
  13.  
  14. # gitlab_rails['gitlab_ssh_host'] = 'ssh.host_example.com'
  15. # gitlab_rails['time_zone'] = 'UTC'
  16. # gitlab_rails['gitlab_email_enabled'] = true
  17. # gitlab_rails['gitlab_email_from'] = 'example@example.com'
  18. # gitlab_rails['gitlab_email_display_name'] = 'Example'
  19. # gitlab_rails['gitlab_email_reply_to'] = 'noreply@example.com'
  20. # gitlab_rails['gitlab_default_can_create_group'] = true
  21. # gitlab_rails['gitlab_username_changing_enabled'] = true
  22. # gitlab_rails['gitlab_default_theme'] = 2
  23. # gitlab_rails['gitlab_restricted_visibility_levels'] = nil # to restrict public and internal: ['public', 'internal']
  24. # gitlab_rails['gitlab_default_projects_features_issues'] = true
  25. # gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
  26. # gitlab_rails['gitlab_default_projects_features_wiki'] = true
  27. # gitlab_rails['gitlab_default_projects_features_snippets'] = false
  28. # gitlab_rails['gitlab_default_projects_features_visibility_level'] = 'private'
  29. # gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
  30. # gitlab_rails['gravatar_plain_url'] = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
  31. # gitlab_rails['gravatar_ssl_url'] = 'https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
  32. # gitlab_rails['webhook_timeout'] = 10
  33.  
  34. ## For setting up LDAP
  35. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#setting-up-ldap-sign-in
  36. ## Be careful not to break the identation in the ldap_servers block. It is in
  37. ## yaml format and the spaces must be retained. Using tabs will not work.
  38.  
  39. # gitlab_rails['ldap_enabled'] = false
  40. # gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below
  41. # main: # 'main' is the GitLab 'provider ID' of this LDAP server
  42. # label: 'LDAP'
  43. # host: '_your_ldap_server'
  44. # port: 389
  45. # uid: 'sAMAccountName'
  46. # method: 'plain' # "tls" or "ssl" or "plain"
  47. # bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  48. # password: '_the_password_of_the_bind_user'
  49. # active_directory: true
  50. # allow_username_or_email_login: false
  51. # block_auto_created_users: false
  52. # base: ''
  53. # user_filter: ''
  54. # ## EE only
  55. # group_base: ''
  56. # admin_group: ''
  57. # sync_ssh_keys: false
  58. #
  59. # secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
  60. # label: 'LDAP'
  61. # host: '_your_ldap_server'
  62. # port: 389
  63. # uid: 'sAMAccountName'
  64. # method: 'plain' # "tls" or "ssl" or "plain"
  65. # bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  66. # password: '_the_password_of_the_bind_user'
  67. # active_directory: true
  68. # allow_username_or_email_login: false
  69. # block_auto_created_users: false
  70. # base: ''
  71. # user_filter: ''
  72. # ## EE only
  73. # group_base: ''
  74. # admin_group: ''
  75. # sync_ssh_keys: false
  76. # EOS
  77.  
  78. ## For setting up omniauth
  79. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#omniauth-google-twitter-github-login
  80.  
  81. # gitlab_rails['omniauth_enabled'] = true
  82. # gitlab_rails['omniauth_allow_single_sign_on'] = false
  83. # gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'saml'
  84. # gitlab_rails['omniauth_block_auto_created_users'] = true
  85. # gitlab_rails['omniauth_auto_link_ldap_user'] = false
  86. # gitlab_rails['omniauth_providers'] = [
  87. # {
  88. # "name" => "google_oauth2",
  89. # "app_id" => "YOUR APP ID",
  90. # "app_secret" => "YOUR APP SECRET",
  91. # "args" => { "access_type" => "offline", "approval_prompt" => "" }
  92. # }
  93. # ]
  94. #
  95. # If you setup bitbucket importer under omniauth providers you will need to add the keys
  96. # which will allow connection between bitbucket and gitlab.
  97. # For details see http://doc.gitlab.com/ce/integration/bitbucket.html
  98. # gitlab_rails['bitbucket'] = {
  99. # 'known_hosts_key' => 'bitbucket.org,207.223.240.182 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==',
  100. # 'private_key' => '-----BEGIN RSA PRIVATE KEY-----
  101. # MIIEowIBAAKCAQEAyXxYHwz2KjcwSjTREwlhYHqrf/8U0UM8ej3cqQ551gE4Wo3t
  102. # -----END RSA PRIVATE KEY-----',
  103. # 'public_key' => 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJfFgfDPYqN git@gitlab.example.com'
  104. # }
  105.  
  106. ## For setting up backups
  107. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#backups
  108.  
  109. # gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
  110. # gitlab_rails['backup_keep_time'] = 604800
  111. # gitlab_rails['backup_upload_connection'] = {
  112. # 'provider' => 'AWS',
  113. # 'region' => 'eu-west-1',
  114. # 'aws_access_key_id' => 'AKIAKIAKI',
  115. # 'aws_secret_access_key' => 'secret123'
  116. # }
  117. # gitlab_rails['backup_upload_remote_directory'] = 'my.s3.bucket'
  118. # gitlab_rails['backup_multipart_chunk_size'] = 104857600
  119.  
  120. ## For setting up different data storing directory
  121. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#storing-git-data-in-an-alternative-directory
  122. ## If you want to use a single non-default directory to store git data use
  123. ## a path that doesn't contain symlinks.
  124. # git_data_dir "/var/opt/gitlab/git-data"
  125.  
  126. # gitlab_rails['satellites_timeout'] = 30
  127.  
  128. ## GitLab Shell settings for GitLab
  129. # gitlab_rails['gitlab_shell_ssh_port'] = 22
  130. # gitlab_rails['git_max_size'] = 20971520
  131. # gitlab_rails['git_timeout'] = 10
  132.  
  133. ## Extra customization
  134. # gitlab_rails['extra_google_analytics_id'] = '_your_tracking_id'
  135. # gitlab_rails['extra_piwik_url'] = '_your_piwik_url'
  136. # gitlab_rails['extra_piwik_site_id'] = '_your_piwik_site_id'
  137. # gitlab_rails['extra_sign_in_text'] = '|
  138. # ![Company Logo](http://www.companydomain.com/logo.png)
  139. # [Learn more about CompanyName](http://www.companydomain.com/)'
  140.  
  141. # gitlab_rails['env'] = {
  142. # 'BUNDLE_GEMFILE' => "/opt/gitlab/embedded/service/gitlab-rails/Gemfile",
  143. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
  144. # }
  145.  
  146. # gitlab_rails['rack_attack_git_basic_auth'] = {
  147. # 'enabled' => true,
  148. # 'ip_whitelist' => ["127.0.0.1"],
  149. # 'maxretry' => 10,
  150. # 'findtime' => 60,
  151. # 'bantime' => 3600
  152. # }
  153.  
  154. # We do not recommend changing these directories.
  155. # gitlab_rails['dir'] = "/var/opt/gitlab/gitlab-rails"
  156. # gitlab_rails['log_directory'] = "/var/log/gitlab/gitlab-rails"
  157.  
  158. ###############################
  159. # GitLab application settings #
  160. ###############################
  161.  
  162. # gitlab_rails['uploads_directory'] = "/var/opt/gitlab/gitlab-rails/uploads"
  163. # gitlab_rails['rate_limit_requests_per_period'] = 10
  164. # gitlab_rails['rate_limit_period'] = 60
  165.  
  166. # Change the initial default admin password.
  167. # Only applicable on inital setup, changing this setting after database is created and seeded
  168. # won't yield any change.
  169. # gitlab_rails['initial_root_password'] = "password"
  170.  
  171. ############################
  172. # GitLab database settings #
  173. ############################
  174. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/database.md#database-settings
  175. ## Only needed if you use an external database.
  176.  
  177. # gitlab_rails['db_adapter'] = "postgresql"
  178. # gitlab_rails['db_encoding'] = "unicode"
  179. # gitlab_rails['db_database'] = "gitlabhq_production"
  180. # gitlab_rails['db_pool'] = 10
  181. # gitlab_rails['db_username'] = "gitlab"
  182. # gitlab_rails['db_password'] = nil
  183. # gitlab_rails['db_host'] = nil
  184. # gitlab_rails['db_port'] = 5432
  185. # gitlab_rails['db_socket'] = nil
  186. # gitlab_rails['db_sslmode'] = nil
  187. # gitlab_rails['db_sslrootcert'] = nil
  188.  
  189.  
  190. #########################
  191. # GitLab redis settings #
  192. #########################
  193. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/redis.md#redis-settings
  194. ## Connect to your own redis instance.
  195.  
  196. # gitlab_rails['redis_host'] = "127.0.0.1"
  197. # gitlab_rails['redis_port'] = nil
  198. # gitlab_rails['redis_database'] = 0
  199. # gitlab_rails['redis_socket'] = "/var/opt/gitlab/redis/redis.socket"
  200.  
  201. ################################
  202. # GitLab email server settings #
  203. ################################
  204. # see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/smtp.md#smtp-settings
  205. # Use smtp instead of sendmail/postfix.
  206.  
  207. gitlab_rails['smtp_enable'] = true
  208. gitlab_rails['smtp_address'] = "mail.razorness.de"
  209. gitlab_rails['smtp_port'] = 25
  210. gitlab_rails['smtp_user_name'] = "git@razorness.de"
  211. gitlab_rails['smtp_password'] = "7EKQI73q08D3"
  212. gitlab_rails['smtp_domain'] = "razorness.de"
  213. gitlab_rails['smtp_authentication'] = "plain"
  214. gitlab_rails['smtp_enable_starttls_auto'] = true
  215. gitlab_rails['smtp_tls'] = false
  216. 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
  217. # gitlab_rails['smtp_ca_path'] = "/etc/ssl/certs"
  218. # gitlab_rails['smtp_ca_file'] = "/etc/ssl/certs/ca-certificates.crt"
  219.  
  220. ###############
  221. # GitLab user #
  222. ###############
  223. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#changing-the-name-of-the-git-user-group
  224. ## Modify default git user.
  225.  
  226.  
  227. # user['username'] = "git"
  228. # user['group'] = "git"
  229. # user['uid'] = nil
  230. # user['gid'] = nil
  231. # # The shell for the git user
  232. # user['shell'] = "/bin/sh"
  233. # # The home directory for the git user
  234. # user['home'] = "/var/opt/gitlab"
  235. # user['git_user_name'] = "GitLab"
  236. # user['git_user_email'] = "gitlab@#{node['fqdn']}"
  237.  
  238. ##################
  239. # GitLab Unicorn #
  240. ##################
  241. ## Tweak unicorn settings.
  242.  
  243. # unicorn['worker_timeout'] = 60
  244. # unicorn['worker_processes'] = 2
  245.  
  246. ## Advanced settings
  247. # unicorn['listen'] = '127.0.0.1'
  248. # unicorn['port'] = 8080
  249. # unicorn['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  250. # unicorn['pidfile'] = '/opt/gitlab/var/unicorn/unicorn.pid'
  251. # unicorn['tcp_nopush'] = true
  252. # unicorn['backlog_socket'] = 1024
  253. # Make sure somaxconn is equal or higher then backlog_socket
  254. # unicorn['somaxconn'] = 1024
  255. # We do not recommend changing this setting
  256. # unicorn['log_directory'] = "/var/log/gitlab/unicorn"
  257.  
  258. ## Only change these settings if you understand well what they mean
  259. ## see https://about.gitlab.com/2015/06/05/how-gitlab-uses-unicorn-and-unicorn-worker-killer/
  260. ## and https://github.com/kzk/unicorn-worker-killer
  261. # unicorn['worker_memory_limit_min'] = "200*(1024**2)"
  262. # unicorn['worker_memory_limit_max'] = "250*(1024**2)"
  263.  
  264.  
  265. ##################
  266. # GitLab Sidekiq #
  267. ##################
  268.  
  269. # sidekiq['log_directory'] = "/var/log/gitlab/sidekiq"
  270. # sidekiq['shutdown_timeout'] = 4
  271.  
  272.  
  273. ################
  274. # gitlab-shell #
  275. ################
  276.  
  277. # gitlab_shell['audit_usernames'] = false
  278. # gitlab_shell['log_level'] = 'INFO'
  279. # gitlab_shell['http_settings'] = { user: 'username', password: 'password', ca_file: '/etc/ssl/cert.pem', ca_path: '/etc/pki/tls/certs', self_signed_cert: false}
  280. # gitlab_shell['log_directory'] = "/var/log/gitlab/gitlab-shell/"
  281.  
  282. ## If enabled, git-annex needs to be installed on the server where gitlab is setup
  283. # For Debian and Ubuntu systems this can be done with: sudo apt-get install git-annex
  284. # For CentOS: sudo yum install epel-release && sudo yum install git-annex
  285. # gitlab_shell['git_annex_enabled'] = false
  286.  
  287. #####################
  288. # GitLab PostgreSQL #
  289. #####################
  290.  
  291. # postgresql['enable'] = true
  292. # postgresql['listen_address'] = nil
  293. # postgresql['port'] = 5432
  294. # postgresql['data_dir'] = "/var/opt/gitlab/postgresql/data"
  295. # postgresql['shared_buffers'] = "256MB" # recommend value is 1/4 of total RAM, up to 14GB.
  296.  
  297. ## Advanced settings
  298. # postgresql['ha'] = false
  299. # postgresql['dir'] = "/var/opt/gitlab/postgresql"
  300. # postgresql['log_directory'] = "/var/log/gitlab/postgresql"
  301. # postgresql['username'] = "gitlab-psql"
  302. # postgresql['uid'] = nil
  303. # postgresql['gid'] = nil
  304. # postgresql['shell'] = "/bin/sh"
  305. # postgresql['home'] = "/var/opt/gitlab/postgresql"
  306. # postgresql['user_path'] = "/opt/gitlab/embedded/bin:/opt/gitlab/bin:$PATH"
  307. # postgresql['sql_user'] = "gitlab"
  308. # postgresql['sql_ci_user'] = "gitlab_ci"
  309. # postgresql['max_connections'] = 200
  310. # postgresql['md5_auth_cidr_addresses'] = []
  311. # postgresql['trust_auth_cidr_addresses'] = []
  312. # postgresql['shmmax'] = 17179869184 # or 4294967295
  313. # postgresql['shmall'] = 4194304 # or 1048575
  314. # postgresql['work_mem'] = "8MB"
  315. # postgresql['effective_cache_size'] = "1MB"
  316. # postgresql['checkpoint_segments'] = 10
  317. # postgresql['checkpoint_timeout'] = "5min"
  318. # postgresql['checkpoint_completion_target'] = 0.9
  319. # postgresql['checkpoint_warning'] = "30s"
  320.  
  321.  
  322. ################
  323. # GitLab Redis #
  324. ################
  325. ## Can be disabled if you are using your own redis instance.
  326.  
  327. # redis['enable'] = true
  328. # redis['username'] = "gitlab-redis"
  329. # redis['uid'] = nil
  330. # redis['gid'] = nil
  331.  
  332.  
  333. #####################
  334. # GitLab Web server #
  335. #####################
  336. ## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/nginx.md#using-a-non-bundled-web-server
  337. ## When bundled nginx is disabled we need to add the external webserver user to the GitLab webserver group.
  338.  
  339. web_server['external_users'] = [ 'www-data' ]
  340. # web_server['username'] = 'gitlab-www'
  341. # web_server['group'] = 'gitlab-www'
  342. # web_server['uid'] = nil
  343. # web_server['gid'] = nil
  344. # web_server['shell'] = '/bin/false'
  345. # web_server['home'] = '/var/opt/gitlab/nginx'
  346.  
  347.  
  348. ################
  349. # GitLab Nginx #
  350. ################
  351. ## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/nginx.md
  352.  
  353. nginx['enable'] = false
  354. # nginx['client_max_body_size'] = '250m'
  355. nginx['redirect_http_to_https'] = true
  356. # nginx['redirect_http_to_https_port'] = 80
  357. # nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
  358. # nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
  359. # nginx['ssl_ciphers'] = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256"
  360. # nginx['ssl_prefer_server_ciphers'] = "on"
  361. # nginx['ssl_protocols'] = "TLSv1 TLSv1.1 TLSv1.2" # recommended by https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html & https://cipherli.st/
  362. # nginx['ssl_session_cache'] = "builtin:1000 shared:SSL:10m" # recommended in http://nginx.org/en/docs/http/ngx_http_ssl_module.html
  363. # nginx['ssl_session_timeout'] = "5m" # default according to http://nginx.org/en/docs/http/ngx_http_ssl_module.html
  364. # nginx['ssl_dhparam'] = nil # Path to dhparams.pem, eg. /etc/gitlab/ssl/dhparams.pem
  365. # nginx['listen_addresses'] = ['*']
  366. # 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
  367. # 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
  368. # nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
  369. # nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;"
  370.  
  371. ## Advanced settings
  372. # nginx['dir'] = "/var/opt/gitlab/nginx"
  373. # nginx['log_directory'] = "/var/log/gitlab/nginx"
  374. # nginx['worker_processes'] = 4
  375. # nginx['worker_connections'] = 10240
  376. # nginx['sendfile'] = 'on'
  377. # nginx['tcp_nopush'] = 'on'
  378. # nginx['tcp_nodelay'] = 'on'
  379. # nginx['gzip'] = "on"
  380. # nginx['gzip_http_version'] = "1.0"
  381. # nginx['gzip_comp_level'] = "2"
  382. # nginx['gzip_proxied'] = "any"
  383. # nginx['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ]
  384. # nginx['keepalive_timeout'] = 65
  385. # nginx['cache_max_size'] = '5000m'
  386.  
  387.  
  388.  
  389. ##################
  390. # GitLab Logging #
  391. ##################
  392. ## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#logs
  393.  
  394. # logging['svlogd_size'] = 200 * 1024 * 1024 # rotate after 200 MB of log data
  395. # logging['svlogd_num'] = 30 # keep 30 rotated log files
  396. # logging['svlogd_timeout'] = 24 * 60 * 60 # rotate after 24 hours
  397. # logging['svlogd_filter'] = "gzip" # compress logs with gzip
  398. # logging['svlogd_udp'] = nil # transmit log messages via UDP
  399. # logging['svlogd_prefix'] = nil # custom prefix for log messages
  400. # logging['logrotate_frequency'] = "daily" # rotate logs daily
  401. # logging['logrotate_size'] = nil # do not rotate by size by default
  402. # logging['logrotate_rotate'] = 30 # keep 30 rotated logs
  403. # logging['logrotate_compress'] = "compress" # see 'man logrotate'
  404. # logging['logrotate_method'] = "copytruncate" # see 'man logrotate'
  405. # logging['logrotate_postrotate'] = nil # no postrotate command by default
  406. # Enterprise Edition only
  407. # logging['udp_log_shipping_host'] = nil # remote host to ship log messages to via UDP
  408. # logging['udp_log_shipping_port'] = 514 # remote host to ship log messages to via UDP
  409.  
  410. #############
  411. # Logrotate #
  412. #############
  413. ## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#logrotate
  414. ## You can disable built in logrotate feature.
  415.  
  416. # logrotate['enable'] = true
  417.  
  418. #######
  419. # Git #
  420. #######
  421. ## Advanced setting for configuring git system settings for omnibus-gitlab internal git
  422. ## For multiple options under one header use array of comma separated values, eg.
  423. ## { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] }
  424.  
  425. # omnibus_gitconfig['system'] = { "receive" => ["fsckObjects = true"] }
  426.  
  427. ############################################
  428. # Url on which GitLab CI will be reachable #
  429. ############################################
  430. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/gitlab-ci/README.md
  431.  
  432. # ci_external_url 'https://ci.razorness.de'
  433.  
  434.  
  435. #################################
  436. # application.yml configuration #
  437. #################################
  438.  
  439. # gitlab_ci['gitlab_server'] = { "url" => 'http://gitlab.example.com', "app_id" => '12345678', "app_secret" => 'QWERTY12345' }
  440.  
  441. gitlab_ci['gitlab_ci_email_from'] = 'git@razorness.de'
  442. gitlab_ci['gitlab_ci_support_email'] = 'git@razorness.de'
  443. # gitlab_ci['gitlab_ci_all_broken_builds'] = true
  444. # gitlab_ci['gitlab_ci_add_pusher'] = true
  445. # gitlab_ci['builds_directory'] = '/var/opt/gitlab/gitlab-ci/builds'
  446.  
  447. # gitlab_ci['gravatar_enabled'] = true
  448. # gitlab_ci['gravatar_plain_url'] = "http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm"
  449. # gitlab_ci['gravatar_ssl_url'] = "https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=mm"
  450.  
  451. ## For setting up backups
  452. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#backups
  453.  
  454. # gitlab_ci['backup_path'] = "/var/opt/gitlab/ci-backups"
  455. # gitlab_ci['backup_keep_time'] = 604800
  456. # gitlab_ci['backup_upload_connection'] = {
  457. # 'provider' => 'AWS',
  458. # 'region' => 'eu-west-1',
  459. # 'aws_access_key_id' => 'AKIAKIAKI',
  460. # 'aws_secret_access_key' => 'secret123'
  461. # }
  462. # gitlab_ci['backup_upload_remote_directory'] = 'my.s3.bucket'
  463. # gitlab_ci['backup_multipart_chunk_size'] = 104857600
  464.  
  465. ###############################
  466. # GitLab CI database settings #
  467. ###############################
  468. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/database.md#database-settings
  469. ## Only needed if you use an external database.
  470.  
  471. # gitlab_ci['db_adapter'] = "postgresql"
  472. # gitlab_ci['db_encoding'] = "unicode"
  473. # gitlab_ci['db_database'] = "gitlab_ci_production"
  474. # gitlab_ci['db_pool'] = 10
  475. # gitlab_ci['db_username'] = "gitlab_ci"
  476. # gitlab_ci['db_password'] = nil
  477. # gitlab_ci['db_host'] = nil
  478. # gitlab_ci['db_port'] = 5432
  479. # gitlab_ci['db_socket'] = nil
  480. # gitlab_ci['db_sslmode'] = nil
  481. # gitlab_ci['db_sslrootcert'] = nil
  482.  
  483. ############################
  484. # GitLab CI redis settings #
  485. ############################
  486. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/redis.md#redis-settings
  487. ## Connect to your own redis instance.
  488.  
  489. # gitlab_ci['redis_host'] = "127.0.0.1"
  490. # gitlab_ci['redis_port'] = nil
  491. # gitlab_ci['redis_socket'] = "/var/opt/gitlab/ci-redis/redis.socket"
  492.  
  493. ###################################
  494. # GitLab CI email server settings #
  495. ###################################
  496. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/smtp.md#smtp-settings
  497.  
  498. gitlab_ci['smtp_enable'] = true
  499. gitlab_ci['smtp_address'] = "mail.razorness.de"
  500. gitlab_ci['smtp_port'] = 25
  501. gitlab_ci['smtp_user_name'] = "git@razorness.de"
  502. gitlab_ci['smtp_password'] = "7EKQI73q08D3"
  503. gitlab_ci['smtp_domain'] = "razorness.de"
  504. gitlab_ci['smtp_authentication'] = "plain"
  505. gitlab_ci['smtp_enable_starttls_auto'] = true
  506. gitlab_ci['smtp_tls'] = false
  507. gitlab_ci['smtp_openssl_verify_mode'] = "none"
  508.  
  509.  
  510. #############
  511. # GitLab CI #
  512. #############
  513.  
  514. # gitlab_ci['schedule_builds_minute'] = "0"
  515. # gitlab_ci['env'] = {
  516. # 'BUNDLE_GEMFILE' => "/opt/gitlab/embedded/service/gitlab-ci/Gemfile",
  517. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
  518. # }
  519.  
  520. # gitlab_ci['username'] = "gitlab-ci"
  521. # gitlab_ci['uid'] = nil
  522. # gitlab_ci['gid'] = nil
  523.  
  524.  
  525. #####################
  526. # GitLab CI Unicorn #
  527. #####################
  528. ## Tweak unicorn settings.
  529.  
  530. # ci_unicorn['worker_processes'] = 2
  531. # ci_unicorn['worker_timeout'] = 60
  532. ## Advanced settings
  533. # ci_unicorn['listen'] = '127.0.0.1'
  534. # ci_unicorn['port'] = 8181
  535. # ci_unicorn['socket'] = '/var/opt/gitlab/gitlab-ci/sockets/gitlab.socket'
  536. # ci_unicorn['pidfile'] = '/opt/gitlab/var/ci-unicorn/unicorn.pid'
  537. # ci_unicorn['tcp_nopush'] = true
  538. # ci_unicorn['backlog_socket'] = 1024
  539.  
  540.  
  541. ###################
  542. # GitLab CI Redis #
  543. ###################
  544. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/redis.md
  545. ## You can turn off bundled redis if you want to use your own redis instanance
  546.  
  547. # ci_redis['enable'] = true
  548.  
  549.  
  550. ###################
  551. # GitLab CI NGINX #
  552. ###################
  553. ## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/nginx.md
  554. ## You can tell the bundled NGINX that it should not serve up GitLab CI by setting ci_nginx['enable'] to false.
  555.  
  556. ci_nginx['enable'] = false
  557. # ci_nginx['client_max_body_size'] = '250m'
  558. ci_nginx['redirect_http_to_https'] = true
  559. # ci_nginx['redirect_http_to_https_port'] = 80
  560. # ci_nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
  561. # ci_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
  562. # ci_nginx['ssl_ciphers'] = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256"
  563. # ci_nginx['ssl_prefer_server_ciphers'] = "on"
  564. # 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/
  565. # ci_nginx['ssl_session_cache'] = "builtin:1000 shared:SSL:10m" # recommended in http://nginx.org/en/docs/http/ngx_http_ssl_module.html
  566. # ci_nginx['ssl_session_timeout'] = "5m" # default according to http://nginx.org/en/docs/http/ngx_http_ssl_module.html
  567. # ci_nginx['ssl_dhparam'] = nil # Path to ci_dhparams.pem, eg. /etc/gitlab/ssl/ci_dhparams.pem
  568. # ci_nginx['listen_addresses'] = ['*']
  569. # 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
  570. # 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
  571. # ci_nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
  572. # ci_nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;"
  573.  
  574. ## Advanced settings
  575. # ci_nginx['dir'] = "/var/opt/gitlab/nginx"
  576. # ci_nginx['log_directory'] = "/var/log/gitlab/nginx"
  577. # ci_nginx['worker_processes'] = 4
  578. # ci_nginx['worker_connections'] = 10240
  579. # ci_nginx['sendfile'] = 'on'
  580. # ci_nginx['tcp_nopush'] = 'on'
  581. # ci_nginx['tcp_nodelay'] = 'on'
  582. # ci_nginx['gzip'] = "on"
  583. # ci_nginx['gzip_http_version'] = "1.0"
  584. # ci_nginx['gzip_comp_level'] = "2"
  585. # ci_nginx['gzip_proxied'] = "any"
  586. # ci_nginx['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ]
  587. # ci_nginx['keepalive_timeout'] = 65
  588. # ci_nginx['cache_max_size'] = '5000m'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement