$ ufw allow 22 # SSH — do this FIRST
ufw allow 80 # HTTP
ufw allow 443 # HTTPS
ufw -weight: 500;">enable # now -weight: 500;">enable it
ufw -weight: 500;">status # verify
ufw allow 22 # SSH — do this FIRST
ufw allow 80 # HTTP
ufw allow 443 # HTTPS
ufw -weight: 500;">enable # now -weight: 500;">enable it
ufw -weight: 500;">status # verify
ufw allow 22 # SSH — do this FIRST
ufw allow 80 # HTTP
ufw allow 443 # HTTPS
ufw -weight: 500;">enable # now -weight: 500;">enable it
ufw -weight: 500;">status # verify
server { listen 80; server_name your-domain.com; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection '-weight: 500;">upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; }
}
server { listen 80; server_name your-domain.com; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection '-weight: 500;">upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; }
}
server { listen 80; server_name your-domain.com; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection '-weight: 500;">upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; }
}
-weight: 500;">npm -weight: 500;">install -g pm2
pm2 -weight: 500;">start app.js --name myapp
pm2 startup # generates a command — run it
pm2 save # saves the process list for reboot
-weight: 500;">npm -weight: 500;">install -g pm2
pm2 -weight: 500;">start app.js --name myapp
pm2 startup # generates a command — run it
pm2 save # saves the process list for reboot
-weight: 500;">npm -weight: 500;">install -g pm2
pm2 -weight: 500;">start app.js --name myapp
pm2 startup # generates a command — run it
pm2 save # saves the process list for reboot