9951 explained code solutions for 126 technologies


nginxUsing Nginx to serve Golang app


server {
  location / {
    proxy_pass http://localhost:9991;
  }
}ctrl + c
server {

virtual server configuration block

location / {

default location block

proxy_pass

send this request to the following upstream (other server)

localhost:9991

host and port that our Golang app is listening to