Skip to content

Commit

Permalink
Keep upstream Pow connections alive
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Jul 15, 2015
1 parent 2f7be56 commit b13dd53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libexec/powprox-generate-nginx-config
Expand Up @@ -18,5 +18,6 @@ pow_dns_port = pow_config.fetch('POW_DNS_PORT').to_i
pow_domains = pow_config.fetch('POW_DOMAINS').split(',') +
pow_config['POW_EXT_DOMAINS'].to_s.split(',')
pow_host_root = pow_config.fetch('POW_HOST_ROOT')
pow_workers = pow_config.fetch('POW_WORKERS')

print ERB.new(File.read(template_path)).result
1 change: 1 addition & 0 deletions share/powprox/nginx.conf.erb
Expand Up @@ -65,6 +65,7 @@ http {
# Pow @ localhost
upstream pow {
server 127.0.0.1:<%= pow_http_port %>;
keepalive <%= pow_workers %>;
}

# Include optional per-site server config
Expand Down

0 comments on commit b13dd53

Please sign in to comment.