Notes

app update
apt install nginx-full
ufw allow 'Nginx HTTP'
cd /etc/nginx/sites-available
cp default default.bak
vi default
1000dd
Add following:
server {
  listen 80,
  server_name yourdomain.com;

  location / {
     proxy_set_header X-Forward-For $proxy_add_x_forward_for;
     proxy_set_header X-Forward-Proto $schema;
     proxy_set_header X-Forward-IP $remote_addr;
     proxy_set_header Host $http_host;
     proxy_http_version 1.1;
     proxy_pass http://localhost:10000;
  }

  client_max_body_size 50m;
}
:wq
systemctl restart nginx

Leave a Reply

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny