一、nginx.conf配置
http {
...
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
limit_req_zone $binary_remote_addr zone=req_one:10m rate=1r/s;
##
# Gzip Settings
##
...
}
server {
location /pay {
limit_req zone=req_one nodelay;
include uwsgi_params;
uwsgi_pass unix:/tmp/test.sock;
uwsgi_ignore_client_abort on;
}
}