server {
listen 80;
server_name your_droplet_ip:8000 www.your_droplet_ip:8000;
root /var/www/html;
location / {
proxy_pass http://your_droplet_ip:8000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
}
}
попробуйте это и после запуска service nginx restart