Authored by chunhua.zhang

add

... ... @@ -103,4 +103,40 @@ server {
}
# open ufo api for priority sellers
server {
listen 80;
server_name open-ufo.yohobuy.com;
access_log /Data/logs/nginx/openufo_access.log fenxi;
error_log /Data/logs/nginx/openufo_error.log;
## for proxy
proxy_http_version 1.1;
proxy_set_header Connection "";
set $real_ip "";
set $request_api_method "-";
set $request_udid "-";
set $request_uid "-";
set_by_lua_file $real_ip conf/setup.lua;
access_by_lua_file 'conf/lua/limit_api_flow.lua';
log_by_lua_file conf/lua/set_log_params.lua;
location ~ ^/erp/fastDelivery/ {
proxy_redirect off;
proxy_pass http://ufogateway/ufo-gateway/;
proxy_set_header X-Real-IP $real_ip;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
}
}
... ...