Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
ffay committed Apr 11, 2017
1 parent f85d947 commit a9090b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ http {
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
client_max_body_size 1024m;
lua_shared_dict cache 10m;

#换成你的实际路径,这里将源码中src目录加入到 lua_package_path
Expand Down Expand Up @@ -42,6 +43,8 @@ http {
access.dispatch()
}
proxy_set_header Host $newhost;
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_pass $upstream;
}
Expand All @@ -50,4 +53,4 @@ http {

#将源码中的 manage.conf 路径
include /usr/local/openresty/nginx/proxygateway/manage.conf;
}
}

0 comments on commit a9090b9

Please sign in to comment.