nginx

Configure Nginx server blocks, reverse proxying, load balancing, and SSL/TLS.

6|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill nginx-repairyourtech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nginx
Source: https://github.com/RepairYourTech/cfsa-antigravity/tree/main/.agent/skill-library/stack/devops/nginx
Command: npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill nginx-repairyourtech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to configuring Nginx, enabling users to efficiently set up web servers, reverse proxies, load balancers, and API gateways with a focus on security, performance, and best practices.

Core Features & Use Cases

  • Server Blocks: Define virtual hosts for multiple domains.
  • Reverse Proxying: Route traffic to backend applications.
  • SSL/TLS Configuration: Secure your sites with modern TLS settings.
  • Load Balancing: Distribute traffic across multiple servers.
  • Caching & Compression: Optimize response times and reduce bandwidth.
  • Security: Implement rate limiting, access control, and security headers.
  • API Gateway Patterns: Configure Nginx as a central entry point for microservices.
  • Use Case: Configure Nginx to serve a static website, act as a reverse proxy for a Node.js application, and handle SSL termination for optimal performance and security.

Quick Start

Use the nginx skill to configure a basic server block for example.com with SSL enabled.

Frequently Asked Questions about nginx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Nginx as a reverse proxy for a Node.js application?

This Skill provides Nginx configuration directives to route traffic to backend applications by defining proxy pass rules within server blocks. It covers location matching to ensure client requests are accurately forwarded to your Node.js application.

What is the best way to set up Nginx load balancing across multiple servers?

The best way to set up Nginx load balancing is by defining upstream server pools within your configuration to distribute incoming traffic. This approach ensures high availability and prevents backend servers from becoming overloaded during traffic spikes.

How do I implement SSL termination and modern TLS settings in Nginx?

You implement SSL termination by configuring SSL/TLS directives within your server blocks to handle HTTPS connections directly. This setup offloads encryption tasks from backend applications and secures your sites using modern TLS settings.

Can I use Nginx as an API gateway for microservices?

Yes, you can configure Nginx as an API gateway to serve as a central entry point for microservices. This involves using location matching and reverse proxying to route API requests to the appropriate backend services securely.

How do I optimize Nginx performance with caching and compression?

You optimize Nginx performance by enabling built-in caching and compression directives to reduce bandwidth and improve response times. This configuration stores frequently accessed content and compresses outputs before sending them to clients.

Why should I add security headers and rate limiting to my Nginx configuration?

Adding security headers and rate limiting to your Nginx configuration protects your web server from abuse and mitigates common vulnerabilities. Rate limiting restricts request rates from clients, while security headers enforce browser-side protections.