I have the following location directive in a dockerized machine
server {
listen 80;
location ~* ^/openchain/ {
rewrite ^/openchain/(.*) /$1 break;
proxy_pass http://0.0.0.0:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location / {
root /usr/share/nginx/html;
}
}
But when I try to access the url http://192.168.99.100/record/?key=29189392 I get a 502 Bad Gateway error which is a result of
7#7: *1 connect() failed (111: Connection refused) while connecting to upstream
I'm not sure what I have wrong here....is the location regex correct?