Showing
1 changed file
with
36 additions
and
0 deletions
@@ -103,4 +103,40 @@ server { | @@ -103,4 +103,40 @@ server { | ||
103 | } | 103 | } |
104 | 104 | ||
105 | 105 | ||
106 | +# open ufo api for priority sellers | ||
107 | +server { | ||
108 | + | ||
109 | + listen 80; | ||
110 | + server_name open-ufo.yohobuy.com; | ||
111 | + | ||
112 | + access_log /Data/logs/nginx/openufo_access.log fenxi; | ||
113 | + error_log /Data/logs/nginx/openufo_error.log; | ||
114 | + | ||
115 | + ## for proxy | ||
116 | + proxy_http_version 1.1; | ||
117 | + proxy_set_header Connection ""; | ||
118 | + | ||
119 | + set $real_ip ""; | ||
120 | + set $request_api_method "-"; | ||
121 | + set $request_udid "-"; | ||
122 | + set $request_uid "-"; | ||
123 | + | ||
124 | + set_by_lua_file $real_ip conf/setup.lua; | ||
125 | + access_by_lua_file 'conf/lua/limit_api_flow.lua'; | ||
126 | + log_by_lua_file conf/lua/set_log_params.lua; | ||
127 | + | ||
128 | + location ~ ^/erp/fastDelivery/ { | ||
129 | + proxy_redirect off; | ||
130 | + proxy_pass http://ufogateway/ufo-gateway/; | ||
131 | + proxy_set_header X-Real-IP $real_ip; | ||
132 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
133 | + proxy_set_header Accept-Encoding "gzip"; | ||
134 | + proxy_http_version 1.1; | ||
135 | + proxy_set_header Connection ""; | ||
136 | + proxy_set_header Host $host; | ||
137 | + } | ||
138 | + | ||
139 | +} | ||
140 | + | ||
141 | + | ||
106 | 142 |
-
Please register or login to post a comment