sudo apt update
sudo apt install nginx
sudo systemctl start nginx
sudo systemctl enable nginxserver {
listen 80;
server_name example.com;
location / {
root /var/www/html;
index index.html index.htm;
}
location /api {
proxy_pass http://localhost:3000;
}
}