Commit df94b2c5d2ee0dd8b3b8f962901b1ff3e0e0dbee
1 parent
40e2ddf7
Exists in
master
and in
17 other branches
Bring back some of the nginx attributes
Showing
1 changed file
with
22 additions
and
0 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/attributes/default.rb
... | ... | @@ -138,3 +138,25 @@ default['gitlab']['redis']['username'] = "gitlab-redis" |
138 | 138 | default['gitlab']['redis']['shell'] = "/bin/nologin" |
139 | 139 | default['gitlab']['redis']['home'] = "/var/opt/gitlab/redis" |
140 | 140 | default['gitlab']['redis']['port'] = 6379 |
141 | + | |
142 | + | |
143 | +#### | |
144 | +# Nginx | |
145 | +#### | |
146 | +default['gitlab']['nginx']['enable'] = true | |
147 | +default['gitlab']['nginx']['ha'] = false | |
148 | +default['gitlab']['nginx']['dir'] = "/var/opt/gitlab/nginx" | |
149 | +default['gitlab']['nginx']['log_directory'] = "/var/log/gitlab/nginx" | |
150 | +default['gitlab']['nginx']['worker_processes'] = node['cpu']['total'].to_i | |
151 | +default['gitlab']['nginx']['worker_connections'] = 10240 | |
152 | +default['gitlab']['nginx']['sendfile'] = 'on' | |
153 | +default['gitlab']['nginx']['tcp_nopush'] = 'on' | |
154 | +default['gitlab']['nginx']['tcp_nodelay'] = 'on' | |
155 | +default['gitlab']['nginx']['gzip'] = "on" | |
156 | +default['gitlab']['nginx']['gzip_http_version'] = "1.0" | |
157 | +default['gitlab']['nginx']['gzip_comp_level'] = "2" | |
158 | +default['gitlab']['nginx']['gzip_proxied'] = "any" | |
159 | +default['gitlab']['nginx']['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ] | |
160 | +default['gitlab']['nginx']['keepalive_timeout'] = 65 | |
161 | +default['gitlab']['nginx']['client_max_body_size'] = '250m' | |
162 | +default['gitlab']['nginx']['cache_max_size'] = '5000m' | ... | ... |