Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.6k views
in Technique[技术] by (71.8m points)

node-express 如何限制静态资源访问速度?

因为不计划使用 “七牛/oss” 等等的产品,也不想仅仅因为这样一个简单需求而使用NGINX。
而服务器是一个网速只有10M的服务器。
所以需要限制静态资源的访问速度,防止恶意请求导致网速耗尽。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

可以通过pipe对sream进行限速


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...