-
Notifications
You must be signed in to change notification settings - Fork 333
nginz: enable unlimited_requests_endpoint for authenticated requests, too #3138
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
Conversation
I think we should get this in before https://github.com/zinfra/cailleach/pull/1574 to more clearly see possible effects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I am slightly confused by the commit message and the PR title: where is rate_limit_unlimited
defined? I only see unlimited_requests_endpoint
Ah thanks, I got the words all tangled up. Changed description and changelog to use the same word as in the actual settings. |
With this PR, the config diff for the assets endpoint is this: location ~* ^(/v[0-9]+)?/assets/(.*) {
# ...
+ # Note that this endpoint has no rate limit per user for authenticated requests
# ... whereas for other authenticated endpoints: location ~* ^(/v[0-9]+)?/system/settings$ {
# ...
+ limit_req zone=reqs_per_user burst=20;
# ... and at the top - # Limit by $zauth_user if present and not part of rate limit exemptions
- limit_req zone=reqs_per_user burst=20; |
Also allow more than 25 concurrent connections for unlimited_requests_endpoint
Also allow more than 25 concurrent connections for unlimited_requests_endpoint
…quests
The change introduced in #2786 had no effect thus far. With this PR, it should start to have the desired effect.
See also https://github.com/zinfra/cailleach/pull/1574 for context of where this appeared.
Checklist
changelog.d