Skip to content

kimschles/nginx-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx and Node.js

nodejs-server Deployment

  • SSH to your Ubuntu server
  • apt-get update
  • apt-get install docker.io
  • docker pull kimschles/nodejs-server:latest
  • docker run -p 8080:8080 kimschles/nodejs-server:latest
  • See the json data by opening your browser and going to http://<IP_ADDRESS_OF_YOUR_SERVER>:8080/

example-website Deployment

  • apt-get update
  • apt-get install docker.io
  • docker pull kimschles/example-website:latest
  • docker run -p 3000:3000 kimschles/example-website:latest
  • See the webpage by opening your browser and going to http://<IP_ADDRESS_OF_YOUR_SERVER>:3000/
  • See the json data by opening your browser and going to http://<IP_ADDRESS_OF_YOUR_SERVER>:3000/

Installing nginx

  • apt install nginx-core
  • vim /etc/nginx/sites-available/default
  • Delete the default config :%d
  • Paste in server block
  • service nginx reload

About

Example code for nginx and node.js talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published