Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加对授权用户的访问频率限制功能,可限制某段时间该用户的访问总次数及并发访问数 #818

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tongsq
Copy link

@tongsq tongsq commented Apr 18, 2022

限速器配置参数说明:num1,num2,num3
num1: 时间段秒数,可为大于0的整数,0表示不限制
num2: 时间段内的访问总次数,可为大于0的整数,0表示不限制
num3: 并发数,可为大于0的整数,0表示不限制

1、支持将限速器参数放在url中配置,如(设置10秒内可访问10次,最大并发数2):
-L http://root:123@:8888?limiter=10,10,2
2、也可将限速器配置在secrets文件中用户名密码后面,secrets.txt示例文件如下:

period for live reloading

reload 10s

username password

root 123 10,10,6
root2 123 0,0,3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant