【文件属性】:
文件名称:nginx-limit-req-test:在Nginx中测试limit_req(使用Koa)
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-07 17:56:35
HTML
极限要求测试
如何使用
1.运行服务器
cd server
npm install
npm run start
2.运行Nginx
下载Nginx
用此仓库替换nginx.conf
nginx-1.16.1 / conf / nginx.conf(Windows10)
nginx细节
# ...
http {
# ...
limit_req_zone $binary_remote_addr zone=testZone:10m rate=10r/s;
server {
listen 80 ;
server_name localhost;
location / {
proxy_pass http://localhost:4000;
# ...
【文件预览】:
nginx-limit-req-test-master
----server()
--------package.json(316B)
--------package-lock.json(21KB)
--------src()
----README.md(2KB)
----nginx.conf(1KB)