@nikita.harvey
1 2 3 4 5 6 7 8 9 10 |
server { listen 80; server_name mysite.com; location / { proxy_pass http://localhost:3000; # замените 3000 на порт вашего приложения в Node.js proxy_set_header Host $host; proxy_buffering off; } } |
1 2 3 |
sudo rm /etc/nginx/sites-enabled/default sudo ln -s /etc/nginx/sites-available/mysite.conf /etc/nginx/sites-enabled/mysite.conf sudo service nginx restart |