Nginx
ELI5 — The Vibe Check
Nginx (pronounced 'engine-x') is a super fast web server and reverse proxy that's been everywhere for 20 years. It handles serving static files, proxying to your app, SSL certificates, and load balancing. It's usually the first thing traffic hits when it reaches your server.
Real Talk
Nginx is a high-performance HTTP web server, reverse proxy, and load balancer. It uses an event-driven, non-blocking architecture to handle thousands of concurrent connections efficiently. It's commonly used to serve static assets, proxy requests to application servers, terminate SSL, and as a Kubernetes Ingress controller.
Show Me The Code
# nginx.conf
server {
listen 80;
server_name myapp.com;
location /api {
proxy_pass http://backend:3000;
}
location / {
root /var/www/html;
try_files $uri /index.html;
}
}
When You'll Hear This
"nginx is serving the frontend and proxying API calls to the backend." / "Check the nginx error logs — the 502 is coming from there."
Related Terms
Container
A container is a running instance of a Docker image — it's the lunchbox you made and actually opened to eat from.
Ingress
Ingress is data coming INTO the cloud from outside — the opposite of egress.
Load Balancer
A load balancer is like a traffic cop for servers.
Reverse Proxy
A reverse proxy sits in front of your servers and handles incoming traffic on their behalf.