[{"data":1,"prerenderedAt":176},["ShallowReactive",2],{"term-n\u002Fnginx":3,"related-n\u002Fnginx":160},{"id":4,"title":5,"acronym":6,"body":7,"category":142,"description":143,"difficulty":144,"extension":145,"letter":146,"meta":147,"navigation":71,"path":148,"related":149,"seo":154,"sitemap":155,"stem":158,"subcategory":6,"__hash__":159},"terms\u002Fterms\u002Fn\u002Fnginx.md","Nginx",null,{"type":8,"value":9,"toc":136},"minimark",[10,15,19,23,26,30,125,129,132],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"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.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"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.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-nginx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# nginx.conf\nserver {\n    listen 80;\n    server_name myapp.com;\n\n    location \u002Fapi {\n        proxy_pass http:\u002F\u002Fbackend:3000;\n    }\n\n    location \u002F {\n        root \u002Fvar\u002Fwww\u002Fhtml;\n        try_files $uri \u002Findex.html;\n    }\n}\n","nginx","",[38,39,40,48,54,60,66,73,79,85,91,96,102,108,114,119],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,47],{},"# nginx.conf\n",[41,49,51],{"class":43,"line":50},2,[41,52,53],{},"server {\n",[41,55,57],{"class":43,"line":56},3,[41,58,59],{},"    listen 80;\n",[41,61,63],{"class":43,"line":62},4,[41,64,65],{},"    server_name myapp.com;\n",[41,67,69],{"class":43,"line":68},5,[41,70,72],{"emptyLinePlaceholder":71},true,"\n",[41,74,76],{"class":43,"line":75},6,[41,77,78],{},"    location \u002Fapi {\n",[41,80,82],{"class":43,"line":81},7,[41,83,84],{},"        proxy_pass http:\u002F\u002Fbackend:3000;\n",[41,86,88],{"class":43,"line":87},8,[41,89,90],{},"    }\n",[41,92,94],{"class":43,"line":93},9,[41,95,72],{"emptyLinePlaceholder":71},[41,97,99],{"class":43,"line":98},10,[41,100,101],{},"    location \u002F {\n",[41,103,105],{"class":43,"line":104},11,[41,106,107],{},"        root \u002Fvar\u002Fwww\u002Fhtml;\n",[41,109,111],{"class":43,"line":110},12,[41,112,113],{},"        try_files $uri \u002Findex.html;\n",[41,115,117],{"class":43,"line":116},13,[41,118,90],{},[41,120,122],{"class":43,"line":121},14,[41,123,124],{},"}\n",[11,126,128],{"id":127},"when-youll-hear-this","When You'll Hear This",[16,130,131],{},"\"nginx is serving the frontend and proxying API calls to the backend.\" \u002F \"Check the nginx error logs — the 502 is coming from there.\"",[133,134,135],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":50,"depth":50,"links":137},[138,139,140,141],{"id":13,"depth":50,"text":14},{"id":21,"depth":50,"text":22},{"id":28,"depth":50,"text":29},{"id":127,"depth":50,"text":128},"cicd","Nginx (pronounced 'engine-x') is a super fast web server and reverse proxy that's been everywhere for 20 years.","intermediate","md","n",{},"\u002Fterms\u002Fn\u002Fnginx",[150,151,152,153],"Reverse Proxy","Load Balancer","Ingress","Container",{"title":5,"description":143},{"changefreq":156,"priority":157},"weekly",0.7,"terms\u002Fn\u002Fnginx","qMgpCrZRNLaejkjF7Ha7Boj-7RMErzloSiljMxx-7vc",[161,165,169,173],{"title":153,"path":162,"acronym":6,"category":142,"difficulty":163,"description":164},"\u002Fterms\u002Fc\u002Fcontainer","beginner","A container is a running instance of a Docker image — it's the lunchbox you made and actually opened to eat from.",{"title":152,"path":166,"acronym":6,"category":167,"difficulty":144,"description":168},"\u002Fterms\u002Fi\u002Fingress","cloud","Ingress is data coming INTO the cloud from outside — the opposite of egress.",{"title":151,"path":170,"acronym":6,"category":171,"difficulty":144,"description":172},"\u002Fterms\u002Fl\u002Fload-balancer","networking","A load balancer is like a traffic cop for servers.",{"title":150,"path":174,"acronym":6,"category":171,"difficulty":144,"description":175},"\u002Fterms\u002Fr\u002Freverse-proxy","A reverse proxy sits in front of your servers and handles incoming traffic on their behalf.",1776518297522]