Showing
3 changed files
with
10 additions
and
3 deletions
1 | # inventory file for az2 | 1 | # inventory file for az2 |
2 | -# auto generated at 2018-11-19 10:42:51 | 2 | +# auto generated at 2018-12-05 14:46:13 |
3 | 3 | ||
4 | [nameservers] | 4 | [nameservers] |
5 | 10.66.105.5 | 5 | 10.66.105.5 |
@@ -17,6 +17,9 @@ | @@ -17,6 +17,9 @@ | ||
17 | 10.66.105.35 | 17 | 10.66.105.35 |
18 | 10.66.105.32 | 18 | 10.66.105.32 |
19 | 19 | ||
20 | +[ufo-nginx] | ||
21 | +10.66.104.18 | ||
22 | + | ||
20 | 23 | ||
21 | [java-activity] | 24 | [java-activity] |
22 | 10.66.104.17 | 25 | 10.66.104.17 |
@@ -25,7 +25,8 @@ http { | @@ -25,7 +25,8 @@ http { | ||
25 | 25 | ||
26 | log_format fenxi '$remote_addr|$http_x_forwarded_for|[$time_local]|$http_host|$request|' | 26 | log_format fenxi '$remote_addr|$http_x_forwarded_for|[$time_local]|$http_host|$request|' |
27 | '$status|$body_bytes_sent|$request_time|$upstream_response_time|$upstream_cache_status|$http_referer|' | 27 | '$status|$body_bytes_sent|$request_time|$upstream_response_time|$upstream_cache_status|$http_referer|' |
28 | - '$http_user_agent|$upstream_addr'; | 28 | + '$http_user_agent|$upstream_addr|' |
29 | + '$real_ip|$request_api_method|$request_uid|$request_udid'; | ||
29 | 30 | ||
30 | 31 | ||
31 | # limit req configuration limit for 20r/s for every ip | 32 | # limit req configuration limit for 20r/s for every ip |
@@ -14,7 +14,10 @@ server { | @@ -14,7 +14,10 @@ server { | ||
14 | error_log /Data/logs/nginx/ufo_error.log; | 14 | error_log /Data/logs/nginx/ufo_error.log; |
15 | 15 | ||
16 | 16 | ||
17 | - set $real_ip ""; | 17 | + set $real_ip "-"; |
18 | + set $request_api_method "-"; | ||
19 | + set $request_udid "-"; | ||
20 | + set $request_uid "-"; | ||
18 | # set_by_lua_file $real_ip conf/setup.lua; | 21 | # set_by_lua_file $real_ip conf/setup.lua; |
19 | 22 | ||
20 | # access_by_lua_file 'conf/lua/limit_api_flow.lua'; | 23 | # access_by_lua_file 'conf/lua/limit_api_flow.lua'; |
-
Please register or login to post a comment