location /api/ {
proxy_pass http://服务器IP:8000/api/;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
nginx给springboot的8000端口做代理,为什么在安全组中必须把8000端口开放才可以,关了就无法访问了,请教大神们