This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum -y install nginx | |
sudo mkdir /etc/nginx/ssl | |
sudo openssl req -nodes -x509 -days 1024 -newkey rsa:2048 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj '/C=US/ST=YOURSTATE/L=YOURCITY/O=YOURORG/OU=Web/CN=YOURWEBSITE' | |
sudo yum -y update | |
sudo yum install -y gcc-c++ make | |
sudo curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash - | |
sudo yum install -y nodejs | |
sudo npm install forever -g --save | |
sudo echo "map \$http_upgrade \$connection_upgrade { |