forward proxy config is causing "upstream server temporarily disabled while connecting to upstream" error

2021-03-01 Thread Señor J Onion
I want to set up nginx as a forward proxy - much like Squid might work. This is my server block: server { listen 3128; server_name localhost; location / { resolver 8.8.8.8; proxy_pass http://$http_host$uri$is_args$args; } }

Re: forward proxy config is causing "upstream server temporarily disabled while connecting to upstream" error

2021-03-01 Thread Señor J Onion
Hi Maxim, > > You are trying to connect to an upstream server with an IPv6 > address, yet your system has no IPv6 addresses configured, so > the connection attempt fails. This is not fatal, as nginx is able > to switch to using other addresses of the same server, but > probably a configura

HEAD request to GCS caching body

2021-03-04 Thread Señor J Onion
I use nginx as a forward proxy, with content caching. My app first performs a HEAD request to a Google Cloud Storage object. Then it may perform a GET request to the same object. The HEAD request (which comes first) causes a cache MISS. The content body length returned to the client is 0 (which