Skip to content
Browse files

nginx upstream using all chef_server workers available

  • Loading branch information...
1 parent 1744391 commit e7574b41e5ce616d9e5bc6939362af7b303fd211 @mdxp committed Aug 17, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 cookbooks/chef-server/templates/default/chef_server.nginx.conf.erb
View
4 cookbooks/chef-server/templates/default/chef_server.nginx.conf.erb
@@ -1,5 +1,7 @@
upstream chef_server {
- server 127.0.0.1:<%= node['chef_server']['api_port'] %> fail_timeout=0;
+ <% for port in node['chef_server']['api_port'].to_i..node['chef_server']['api_port'].to_i+node['chef_server']['workers'].to_i %>
+ server 127.0.0.1:<%= port %> fail_timeout=0;
+ <% end %>
}
upstream chef_server_webui {

0 comments on commit e7574b4

Please sign in to comment.
Something went wrong with that request. Please try again.