Re: Using single persistent socket to send subrequests

2022-01-23 Thread Devashi Tandon
Hi, We have the following configuration: location / { proxy_http_version 1.1; proxy_pass http://ext-authz-upstream-server; } upstream ext-authz-upstream-server { server 172.20.10.6:9006; keepalive 4; } Wit

444 response generated from backend?

2022-01-23 Thread Skip Montanaro
I have a small website, nginx in front of gunicorn which is in front of flask. Pretty typical stuff. I'm messing around with what I can and can't do in some situations. I'm intrigued by the non-standard 444 response. Is it possible to trigger the no-response response from the backend like this or i

Re: how to create session persistence or hash_ip within server context for an if statement

2022-01-23 Thread Francis Daly
On Fri, Jan 21, 2022 at 12:45:16PM +0100, Jelle de Jong wrote: Hi there, > How can I use an nginx session or hash_ip in the server context to only do > the following if statement code once and not a second time an client visits > the website: > > server { > if ($geoip2_data_country_iso_code

Re: Nginx performance data

2022-01-23 Thread James Read
On Fri, Jan 14, 2022 at 12:47 AM James Read wrote: > > > On Sun, Jan 9, 2022 at 12:47 AM Reinis Rozitis wrote: > >> > Otherwise why is my application running into such performance limits as >> mentioned in this question on stackoverflow >> https://stackoverflow.com/questions/70584121/why-doesnt-

Re: Using Graylog to log from Nginx in a Docker container.

2022-01-23 Thread Julian Brown
OK, thank you On Sun, Jan 23, 2022 at 9:47 AM Sergey A. Osokin wrote: > Hi Julian, > > hope you're doing well. > > On Sat, Jan 22, 2022 at 03:22:40PM -0600, Julian Brown wrote: > > Currently I run Nginx as a reverse proxy in a Docker container. > > > > FROM nginx > > > > ENV DEBIAN_FRONTEND noni

Re: Using Graylog to log from Nginx in a Docker container.

2022-01-23 Thread Sergey A. Osokin
Hi Julian, hope you're doing well. On Sat, Jan 22, 2022 at 03:22:40PM -0600, Julian Brown wrote: > Currently I run Nginx as a reverse proxy in a Docker container. > > FROM nginx > > ENV DEBIAN_FRONTEND noninteractive > > ... Details hidden ... > > EXPOSE 80 > EXPOSE 443 > > CMD nginx -g 'dae