Re: Nginx: allow access to admin ONLY if the request has a secret header. Do this without the if-evil case.

2018-05-28 Thread Quintin Par
Thank you for validating. I was not sure if the “if” here was a good use. - Quintin On Mon, May 28, 2018 at 9:28 AM, Aleksandar Lazic wrote: > On 28/05/2018 07:16, Quintin Par wrote: > >> My website’s being hit hard and I am trying to see if I can limit this at >> the load balancer (Nginx) lev

Re: Nginx: allow access to admin ONLY if the request has a secret header. Do this without the if-evil case.

2018-05-28 Thread Aleksandar Lazic
On 28/05/2018 07:16, Quintin Par wrote: My website’s being hit hard and I am trying to see if I can limit this at the load balancer (Nginx) level by cutting off requests that don’t have a special header. I’ve seen some solutions that involve the if statement, notably https://stackoverflow.com/q

Re: Rewrite mirrored request

2018-05-28 Thread Roman Arutyunyan
Hello Jurian, On Mon, May 28, 2018 at 03:38:45PM +0200, Jurian Broertjes wrote: > Hi All, > > I'm trying to do a simple rewrite of a mirrored request, see the snippet > below. I'm under the impression that mirrored requests somehow cannot be > rewritten. Is this the case or am I doing something w

Re: Client body upload fully occupies worker

2018-05-28 Thread Maxim Dounin
Hello! On Fri, May 25, 2018 at 09:58:37AM -0400, python wrote: > While client uploads content into permanent temp file ngx worker doesn't > process any requests until its finished. > > Its an issue in case of large files (GBs) uploading since number of parallel > uploads are limited by number of

Rewrite mirrored request

2018-05-28 Thread Jurian Broertjes
Hi All, I'm trying to do a simple rewrite of a mirrored request, see the snippet below. I'm under the impression that mirrored requests somehow cannot be rewritten. Is this the case or am I doing something wrong here? Is there some other way to get the job done?   location / {     mirror /mi

Nginx: allow access to admin ONLY if the request has a secret header. Do this without the if-evil case.

2018-05-28 Thread Quintin Par
My website’s being hit hard and I am trying to see if I can limit this at the load balancer (Nginx) level by cutting off requests that don’t have a special header. I’ve seen some solutions that involve the if statement, notably https://stackoverflow.com/questions/18970620/nginx-reject-request-if-