The Fundamentals of NGINX
  • Introduction
  • Download Slides here
  • What is NGINX?
  • NGINX Use Cases
  • Layer 4 and Layer 7 Load Balancing in NGINX
  • TLS Termination and TLS Passthrough
  • NGINX Internal Architecture
  • Threading and Connections
  • NGINX Threading Architecture
Running NGINX in Docker
  • What are we building?
  • Download source code and config here
  • NGINX WebServer Container
  • Three Node app containers with NGINX in One Docker Network
  • Two NGINX containers load balancing to same backends
  • 10 Node JS containers, 2 NGINX containers
  • Docker networking
Understanding NGINX Timeouts for efficient configuration
  • NGINX Frontend Timeouts
  • client_header_timeout
  • client_body_timeout
  • send_timeout
  • keepalive_timeout
  • lingering_timeout
  • resolver_timeout
  • NGINX Backend Timeouts
  • proxy_connect_timeout
  • proxy_send_timeout
  • proxy_read_timeout
  • proxy_next_upstream_timeout
  • keepalive_timeout_backend
More NGINX Configurations
  • Read this before you continue with this section
  • Spin up lightweight Docker Container with your application (nodeapp)
  • Working with NGINX - What will we do?
  • Installing NGINX
  • NGINX as a Web Server
  • NGINX as a Layer 7 Proxy
  • NGINX as a Layer 4 Proxy
  • Enable HTTPS on NGINX
  • Enabling Fast and Secure TLS 1.3 on NGINX
  • Enable HTTP/2 on NginX
Scaling WebSockets with NGINX
  • Download section slides, code, config and resources here
  • NGINX and WebSockets Agenda
  • Introduction to WebSockets
  • Layer 4 vs Layer 7 WebSockets Proxying
  • Spin up a WebSockets Server
  • Configure NGINX as Layer 4 WebSocket Proxying
  • Configure NGINX as Layer 7 WebSocket Proxying
  • Section Summary
Answering your Questions
  • How to Scale NGINX?
  • How many Backends do we need for NGINX?
Bonus Content
  • NGINRat - a remote access trojan injecting NGINX (article)
  • Bonus - Proxy vs Reverse Proxy
  • NGINX Process Architecture
  • The Limitations of NGINX which made Cloudflare build their own proxy
  • Course Summary