Just an update on this regardless of the mappings all the traffic appears to go through whatever's specified as the default i.e. in the case below the charles route. map $ssl_preread_server_name $name { hostnames; www.google.com charles; kong mitmproxy; 172.17.0.4 mitmproxy; default charles; } I updated the log_format to print out what nginx thinks is the ssl_preread_server_name oby mark.gargan - How to...
I have the following nginx configuration for redirecting traffic to one of two proxies. One is charles running locally on port 8889 and the other is an mitmproxy docker instance running on the exposed port 8080. I map the traffic to either proxy based on the server_name using the $ssl_preread_server_name map as below. When I curl through the nginx server on port 9991 with www.google.com it correctby mark.gargan - How to...
I'm trying to setup nginx to allow me to redirecct traffic through one of two outbound proxies on our internal lan I'm using the nginx docker image as he's baked it with the ngx_http_proxy_connect_module pre-loaded https://hub.docker.com/r/reiz/nginx_proxy when I start the image I can hit www.google.com through the nginx proxy as follows curl -v -k --proxy http://localhost:8888 www.google.by mark.gargan - How to...
Hey there Frank, did you have any luck getting this working? I'm looking for a similar solution.by mark.gargan - How to...