跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Configure Nginx

技能 已验证 活跃

Configure Nginx as a web server and reverse proxy. Covers static file serving, reverse proxy to upstream services, SSL/TLS termination with Let's Encrypt, location blocks, load balancing, rate limiting, and security headers. Use when serving static files in production, reverse proxying to backend services (Node.js, Python, R/Shiny), terminating SSL/TLS, load balancing across instances, or adding rate limiting and security headers to harden an endpoint.

目的

Configure Nginx for production use cases like serving static files, proxying to backend applications, and securing endpoints with SSL/TLS, rate limiting, and security headers.

功能

  • Configure Nginx as a web server
  • Set up Nginx as a reverse proxy
  • Implement SSL/TLS termination with Let's Encrypt
  • Configure load balancing across backend instances
  • Apply rate limiting and security headers

使用场景

  • Serving static files in production
  • Reverse proxying to backend services (Node.js, Python, R/Shiny)
  • Terminating SSL/TLS with Let's Encrypt certificates
  • Load balancing across multiple backend instances

非目标

  • Complex Nginx module configuration beyond core features
  • Direct management of backend application deployment
  • Automated Let's Encrypt certificate renewal setup (user must implement cron/timer)

安装

/plugin install agent-almanac@pjt222-agent-almanac

质量评分

已验证
98 /100
about 24 hours ago 分析

信任信号

最近提交2 days ago
星标14
许可证MIT
状态
查看源代码

类似扩展

Configure Reverse Proxy

98

Configure reverse proxy patterns across multiple tools including Nginx, Traefik, and ShinyProxy. Covers WebSocket proxying, path-based and host-based routing, SSL termination, and Docker label auto-discovery. Use when routing multiple services behind a single entry point, proxying WebSocket connections (Shiny, Socket.IO), auto-discovering Docker services with Traefik labels, or adding SSL termination to services that don't handle TLS natively.

技能
pjt222

Containerize MCP Server

100

Containerize an R-based MCP (Model Context Protocol) server using Docker. Covers mcptools integration, port exposure, stdio vs HTTP transport, and connecting Claude Code to the containerized server. Use when deploying an R MCP server without requiring a local R installation, creating a reproducible MCP server environment, running MCP servers alongside other containerized services, or distributing an MCP server to other developers.

技能
pjt222

Setup Docker Compose

99

Configure Docker Compose for multi-container R development environments. Covers service definitions, volume mounts, networking, environment variables, and development vs production configurations. Use when running R alongside other services (databases, APIs), setting up a reproducible R development environment, orchestrating an R-based MCP server container, or managing environment variables and volume mounts for R projects.

技能
pjt222

Optimize Docker Build Cache

99

Optimize Docker build times using layer caching, multi-stage builds, BuildKit features, and dependency-first copy patterns. Applicable to R, Node.js, and Python projects. Use when Docker builds are slow due to repeated package installations, when rebuilds reinstall all dependencies on every code change, when image sizes are unnecessarily large, or when CI/CD pipeline builds are a bottleneck.

技能
pjt222

Create Multistage Dockerfile

99

Create multi-stage Dockerfiles that separate build and runtime environments for minimal production images. Covers builder/runtime stage separation, artifact copying, scratch/distroless/alpine targets, and size comparison. Use when production images are too large, when build tools are included in the final image, when you need separate dev and prod images from one Dockerfile, or when deploying to constrained environments like edge or serverless.

技能
pjt222

Secure Linux Web Hosting

99

用于在设置、加固或审查自托管云服务器时使用,包括 DNS、SSH、防火墙、Nginx、静态网站托管、反向代理应用程序、使用 Let's Encrypt 或 ACME 客户端进行 HTTPS、安全的 HTTP 到 HTTPS 重定向,或可选的启动后网络调优(如 BBR)。

技能
xixu-me