nginx proxy set up

PHOTO EMBED

Tue Sep 21 2021 16:53:04 GMT+0000 (UTC)

Saved by @ExplodeMilk #javascript

sudo nano /etc/nginx/sites-available/default

location / {
    proxy_pass http://localhost:8080;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}

sudo nginx -t 
sudo service nginx restart
content_copyCOPY