Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
ffay committed Feb 27, 2018
1 parent 144b97a commit 958ad68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
worker_processes 2;
worker_processes 1;

events {
worker_connections 102400;
Expand All @@ -23,6 +23,7 @@ http {
local balancer = require "balancer"
balancer.balancing()
}
keepalive 32;
}

init_worker_by_lua_block{
Expand All @@ -46,6 +47,7 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass $upstream;
}
error_log logs/error.log;
Expand Down

0 comments on commit 958ad68

Please sign in to comment.