gitlab: Setup sidekiq service
[slapos.git] / software / gitlab / gitlab-parameters.cfg
1 # Upstream parameters for a GitLab instance
2 #
3 # Selected parameters - main ones - names and advanced defaults taken from omnibus-gitlab
4 #   https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
5 #   https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/attributes/default.rb
6 #
7 # TODO better autogenerate from ^^^ (?)
8 #
9 # (last updated for omnibus-gitlab 8.2.3+ce.0-0-g8eda093)
10
11 [gitlab-parameters]
12 configuration.external_url              = http://lab.example.com
13
14 # db advanced
15 configuration.db_pool                   = 10
16
17 # rack-attack
18 configuration.rate_limit_requests_per_period    = 10
19 configuration.rate_limit_period                 = 60
20
21 configuration.time_zone                 = UTC
22
23 configuration.email_enabled             = true
24 configuration.email_from                = lab@example.com
25 configuration.email_display_name        = GitLab
26 configuration.email_reply_to            = noreply@example.com
27
28 configuration.smtp_enable               = true
29 configuration.smtp_address              = smtp.server
30 configuration.smtp_port                 = 465
31 configuration.smtp_user_name            = smtp user
32 configuration.smtp_password             = smtp password
33 configuration.smtp_domain               = lab.example.com
34 configuration.smtp_authentication       = login
35 configuration.smtp_enable_starttls_auto = true
36
37 # none | peer | client_once | fail_if_no_peer_cert -> see gitlab-omnibus links at top
38 configuration.smtp_openssl_verify_mode  = peer
39
40 configuration.default_can_create_group  = true
41 configuration.username_changing_enabled = true
42 configuration.default_theme             = 2
43
44 configuration.default_projects_features.issues          = true
45 configuration.default_projects_features.merge_requests  = true
46 configuration.default_projects_features.wiki            = true
47 configuration.default_projects_features.snippets        = true
48 # NOTE can be public|private|internal
49 configuration.default_projects_features.visibility_level= public
50 #configuration.default_projects_features.builds          = false
51
52 configuration.webhook_timeout           = 10
53
54 # 0 means forever (seconds)
55 configuration.backup_keep_time          = 0
56
57 # NOTE empty = default gitlab limits
58 configuration.git_max_size              =
59 configuration.git_timeout               =
60
61
62 # sidekiq
63 configuration.sidekiq_shutdown_timeout  = 4
64 configuration.sidekiq_concurrency       = 25
65 configuration.sidekiq_memory_killer_max_rss = 1000000
66
67
68 # unicorn
69 configuration.unicorn_worker_timeout    = 60
70 configuration.unicorn_worker_processes  = 2
71
72 # unicorn advanced
73 configuration.unicorn_backlog_socket    = 1024
74
75 configuration.unicorn_worker_memory_limit_min   = 200*(1024**2)
76 configuration.unicorn_worker_memory_limit_max   = 250*(1024**2)