medium-go-nginx-docker
medium-go-nginx-docker copied to clipboard
Use Nginx with Docker to serve a Golang app.
I tested with [wrk](https://github.com/wg/wrk/) such config as in your docker ``` location /api/ { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $http_host; proxy_pass http://goservice:8080/; } ``` and I noticed that performance is...
I'm getting ` *1 connect() failed (111: Connection refused) while connecting to upstream` when hitting the proxy from a public ip. E.g. `http://public_ip/api` fails Though `http://public_ip` gives 404