About nginx • pronounced "engine-x" • A web server, reverse proxy and load balancer • First developed in 2004 by Igor Sysoev • Designed to solve the C10K Problem1 • Written in C 1 Concurrently handling ten thousand connections @kimschles
Moar about nginx • Open Source nginx and nginx Plus • Serves 28.5% active sites on the web2 • Apache is 2nd with 27.8% websites 2 Netcraft April 2020 Web Server Survey @kimschles
Look at the http response headers using your browser's dev tools. • Open dev tools • Go to the network tab • Refresh the page • Look at response headers @kimschles
Prerequisite Skills • Setting up a remote server • Using SSH to connect to the server • Building an app with Node.js and Express • Containerizing Node.js apps with Docker • Deploying apps using Docker @kimschles
One with a little more info server { location / { proxy_pass http://:8080/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } } @kimschles
How to setup a Reverse Proxy • Download nginx • Find and edit the configuration file • /etc/nginx/sites-available/default • Reload nginx with service nginx reload • Check to see if nginx is the server @kimschles