4
0

Patrick.net Suggestions


 invite response                
2012 Apr 2, 7:09am   205,750 views  506 comments

by Patrick   ➕follow (60)   💰tip   ignore  

This is the place to make suggestions for how Patrick.net can be most helpful to you and to discuss them.

 _suggestion

« First        Comments 503 - 506 of 506        Search these comments

503   Patrick   2024 Aug 13, 11:47am  

I'm actually a bit confused as to how nginx rate limiting works. Here are the relevant lines:

limit_req_zone $binary_remote_addr zone=ratelimit:10m rate=30r/m; # 30 requests per minute, to match robots.txt "Crawl-Delay: 2"
limit_req_status 429;
...
limit_req zone=ratelimit burst=10 nodelay; # commented out in dev, uncomment in prod!

I think I'm saying create a 10 mb memory area called "ratelimit" and limit each ip address to 30 requests per minute, but allowing up to 10 requests at once and not just delaying requests that exceed that 10 to match the rate limit.

"When the 'nodelay' parameter is set, requests that exceed the burst limit will be rejected immediately with a 503 Service Unavailable error, instead of being delayed."
504   DemocratsAreTotallyFucked   2024 Sep 5, 4:45pm  

@Patrick

For the link to the latest images, can you add the #footer param to it?

Because it is at the bottom of the last page of them where the actual latest image is.
505   Patrick   2024 Sep 5, 8:04pm  

@DemocratsAreTotallyFucked

Sure thing, done. Though I used #last because that's more consistent with how that image thread works. Oversight on my part not to have it there to begin with.
506   DemocratsAreTotallyFucked   2024 Sep 5, 8:07pm  

Patrick says

DemocratsAreTotallyFucked

Sure thing, done. Though I used #last because that's more consistent with how that image thread works. Oversight on my part not to have it there to begin with.


Cool! Just tested it. Works great.

« First        Comments 503 - 506 of 506        Search these comments

Please register to comment:

api   best comments   contact   latest images   memes   one year ago   random   suggestions   gaiste