Re: limit requests and CORS Policy

2021-01-05 Thread Francis Daly
On Tue, Dec 29, 2020 at 12:33:02PM +0500, Ali Mohsin wrote: Hi there, > Hello, I have solved the issue, Thank you for following-up to the list with the solution. Great that you now have a working system; and even better that the next person searching the list with the same problem, will be able

Re: limit requests and CORS Policy

2020-12-28 Thread Ali Mohsin
Hello, I have solved the issue, the problem was because of low request limit, I had to add burst of 10 to make it work and I also changed my configuration to the following. limit_req_zone $binary_remote_addr$request_uri zone=mylimit:10m rate=5r/s; and then limit_req zone=mylimit burst=10 nodelay;

Re: limit requests and CORS Policy

2020-12-26 Thread Francis Daly
On Fri, Dec 18, 2020 at 06:54:57PM +0500, Ali Mohsin wrote: Hi there, > I have achieved this with the following code > > limit_req_zone $binary_remote_addr$v1 zone=mylimit:10m rate=3r/s; > > location ~ "^/api/(?)$" { > limit_req zone=mylimit; > > but i'm unable to set my CORS in headers and my

limit requests and CORS Policy

2020-12-18 Thread Ali Mohsin
Hello, I want to setup limit requests on my API server but I want separate limit to every separate link. e.g i'm requesting to /api/link1 and i'm being blocked I should be able to use /api/link2 normally if I don't exceed the limit. I have achieved this with the following code limit_req_zone $bin