Unknown 428 http status code description via nginx

2022-06-01 Thread libresco_27
Hello, I added 428 as an allowed http status code that can be returned from nginx. But when I access this from postman/insomnia the status code description comes out to be "unknown". eg - HTTP/1.1 428 Unknown, instead of HTTP/1.1 428 Precondition Required >From my nginx gateway, I am just returnin

Proxy buffering query

2022-08-02 Thread libresco_27
Hi, What is the relationship between these three directives - proxy_busy_buffers_size, proxy_buffers and proxy_buffer_size? Currently, I'm only using proxy_buffer_size in my location block but whenever I set it to some higher number, for ex: 32k, it throws the following error - nginx: [emerg] "pro

Re: Proxy buffering query

2022-08-03 Thread libresco_27
But I'm not explicitly defining the value for proxy_busy_buffers_size to something. Right now it is set with the default value Posted at Nginx Forum: https://forum.nginx.org/read.php?2,294892,294904#msg-294904 ___ nginx mailing list -- nginx@nginx.org

negation in the map directive of nginx

2022-09-08 Thread libresco_27
Hi, I'm working on rate limiting for specific group of client ids where if the client id is equal to XYZ don't map it, thus, the zone doesn't get incremented. For ex - limit_req_zone $default_rate_client_id zone=globalClientRateLimit_zone:50k rate=10r/m sync; map $client_id $default_rate_client_

Re: negation in the map directive of nginx

2022-09-11 Thread libresco_27
Thanks Francis for your response. I tried the approach you suggested and it still doesn't seem to work. This is what I am doing right now :- limit_req_zone $default_client_id zone=sample_zone:50k rate=3r/m sync; map $client_id $default_client_id { Z ""; $client_id $client_id;

help with regex in nginx map

2022-09-15 Thread libresco_27
Hello there, I'm trying to write a simple regex for a map where only the first part of a string should match. I went through the documentation, which unfortunately didn't have much examples. Heres what I'm trying to achieve - map $string $redirct_string{ "~^abc*$" 1; } I also tried to

Disabling keepalive

2022-10-21 Thread libresco_27
Hello, Is there a way to totally disable keepalive form upstream? Right now, I have the following configuration in upstream to keep the figures to a minimum- keepalive: 1; keepalive_requests: 1; keepalive_timeout: 1s; keepalive_time: 1s Since, I can't change the keepalive directive's value to 0,

Re: Disabling keepalive

2022-10-28 Thread libresco_27
Thanks for your answer! I have another query if we can actually see that keepalive is being disabled in nginx logs. Is it possible to confirm that if we run nginx in debug mode and if so, what kind of logs should I look for? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295571,295628

Re: Disabling keepalive

2022-11-16 Thread libresco_27
Thank you so much for your help! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295571,295776#msg-295776 ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org

Getting current date and time with milliseconds precision

2022-11-16 Thread libresco_27
Hello, I'm trying to get the current time and date with milliseconds precision. I'm using lua with nginx/openresty. Can someone help? Many thanks! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295777,295777#msg-295777 ___ nginx mailing li