Nginx Routing

Configuring Nginx reverse proxy routing, load balancers, rate limits, and SSL termination.

Lord1Egypt Updated 2 repo stars

File contents

Nginx Routing

Overview

Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.

When to Use This Skill

Use to expose Flask or Node.js web services securely on a public server behind a proxy.

Quick Start (with runnable code examples)

# Simple Nginx configuration block (/etc/nginx/sites-available/default)
server {
    listen 80;
    server_name my-app.domain;

    location / {
        proxy_pass http://127.0.0.1:5000; # Route to local Flask process
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}

Advanced Usage

Set up SSL encryption via Certbot, configure gzip response compression, and customize upstream load balancing.

Key References

Dependencies

  • Nginx Web Server

Lord1Egypt/ai-skillforge/tree/main/js/skills/gemini/nginx-routing commit a8dac9d70a

Frequently asked questions

npx skillmds@latest add lord1egypt/nginx-routing-2