{
# Nodejs app upstream
server 127.0.0.1:3000;
keepalive 64;
}
# Server on port 80
server {
listen 80;
server_name //Мой домен;
root /home/root/node-app;
location / {
# Proxy_pass configuration
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_max_temp_file_size 0;
proxy_pass http://node-app/;
proxy_redirect off;
proxy_read_timeout 240s;
}
}
При загрузе выдает Welcome to nginx
proxy_pass http://node-app/; че это за прикол
Обсуждают сегодня