Howto force Nginx resolver to use new source UDP port

2022-11-17 Thread jeanpaul
We're using Nginx as ingress controller in a Kubernetes environment. Nginx uses a DNS service inside k8s with 1 single service-IP and multiple DNS PODs behind that. The translation from service-IP to any of the multiple DNS PODs is done via DNAT rules. The problem: - Nginx establishes an UDP 'con

Re: Using proxy_cache_background_update

2017-02-27 Thread jeanpaul
Hi Maxim, I verified the patch and it seems to work! Thanks for your prompt solution on this. JP Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272622,272638#msg-272638 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailma

Re: Using proxy_cache_background_update

2017-02-26 Thread jeanpaul
Hi Maxim, I stripped down my configuration and removed 'unneeded' parts to reproduce. I'm able to reproduce it with the following settings: location / { # Added to mitigate the issue. Removed for testing #rewrite ^/index.html$ / break; proxy_pass http://backends; proxy_

Re: How to cache image urls with query strings?

2017-02-26 Thread jeanpaul
Hi, The proxy_cache_key uses request parameters by default. As stated in http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_key it uses $scheme$proxy_host$request_uri by default. The $request_uti do contain the request parameters: http://nginx.org/en/docs/http/ngx_http_core_mod