sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx -y
sudo apt-get install libnginx-mod-rtmp -y
| @echo off | |
| netsh wlan show interfaces | Findstr /c:"Signal" && set "CStatus=true" || set "CStatus=false" | |
| for /f "tokens=2,3 delims={,}" %%a in ('"WMIC NICConfig where IPEnabled="True" get DefaultIPGateway /value | find "I" "') do set "location=%%a" | |
| set location=%location:"=% | |
| echo opening explorer at %location% | |
| IF /i "%CStatus%"=="true" explorer.exe ftp://%location%:2221 |
| @echo off | |
| netsh wlan show interfaces | Findstr /c:"Signal" && set "CStatus=true" || set "CStatus=false" | |
| for /f "tokens=2,3 delims={,}" %%a in ('"WMIC NICConfig where IPEnabled="True" get DefaultIPGateway /value | find "I" "') do set "location=%%a" | |
| set location=%location:"=% | |
| IF /i "%CStatus%"=="true" "C:\Program Files\Google\Chrome\Application\chrome.exe" --new-window --app=https://%location%:9090 | |
| #region NameSpaceRegion | |
| using System; | |
| using System.Windows.Forms; | |
| using System.Data; | |
| using System.Drawing; | |
| using System.Collections; | |
| using System.ComponentModel; | |
| using System.Xml; | |
| using System.Xml.Linq; | |
| using BeeSys.Wasp3D.Hosting; |
| #region NameSpaceRegion | |
| using System; | |
| using System.Windows.Forms; | |
| using System.Data; | |
| using System.Drawing; | |
| using System.Collections; | |
| using System.ComponentModel; | |
| using System.Xml; | |
| using System.Xml.Linq; | |
| using BeeSys.Wasp3D.Hosting; |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <script src="https://apis.google.com/js/api.js"></script> | |
| <script> | |
| <VirtualHost *:80> | |
| ServerName sub.example.com | |
| ProxyPreserveHost On | |
| SSLProxyEngine On | |
| RewriteEngine on | |
| RewriteCond %{HTTP:Upgrade} websocket [NC] | |
| RewriteCond %{HTTP:Connection} upgrade [NC] |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
| #!/bin/sh | |
| dirbase="/var/www/" | |
| # cd $dirbase | |
| read -p "Current Directory as base?(y/N) " isCurrDir | |
| if [ "$isCurrDir" = "Y" ] || [ "$isCurrDir" = "y" ]; then | |
| dirpath=$(pwd) |
| var inX = 0; // -100 to +100; | |
| var inY = 0; // -100 to +100;; | |
| var inZ = 0; // -100 to +100; | |
| var inW = 100; // 0 to 100; | |
| var inH = 100; // 0 to 100; | |
| var areaW = d; // out Width range | |
| var areaH = e; // out Height range |