nginx-configuration
Configure Nginx web server for high-performance reverse proxy, load balancing, SSL/TLS, caching, and API gateway functionality.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o nginx-configuration.zip https://jpskill.com/download/21485.zip && unzip -o nginx-configuration.zip && rm nginx-configuration.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21485.zip -OutFile "$d\nginx-configuration.zip"; Expand-Archive "$d\nginx-configuration.zip" -DestinationPath $d -Force; ri "$d\nginx-configuration.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
nginx-configuration.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
nginx-configurationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 6
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Nginxの設定
目次
概要
本番環境レベルのWebサーバー、リバースプロキシ、ロードバランシング、SSLターミネーション、キャッシング、APIゲートウェイパターンにおけるNginxの設定を、高度なパフォーマンスチューニングとともに習得します。
使用場面
- リバースプロキシのセットアップ
- バックエンドサービス間のロードバランシング
- SSL/TLSターミネーション
- HTTP/2およびgRPCのサポート
- キャッシングと圧縮
- レート制限とDDoS保護
- URLのリライトとルーティング
- APIゲートウェイ機能
クイックスタート
最小限の動作例:
# /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
worker_rlimit_nofile 65535;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
use epoll;
multi_accept on;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Logging
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
log_format upstream_time '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
// ... (完全な実装についてはリファレンスガイドを参照してください)
リファレンスガイド
references/ディレクトリにある詳細な実装:
| ガイド | 内容 |
|---|---|
| 本番環境Nginx設定 | 本番環境Nginx設定 |
| ロードバランシング付きHTTPSサーバー | ロードバランシング付きHTTPSサーバー |
| Nginx設定スクリプト | Nginx設定スクリプト |
| Nginx監視設定 | Nginx監視設定 |
ベストプラクティス
✅ 実施すべきこと
- パフォーマンスのためにHTTP/2を使用する
- 強力な暗号スイートでSSL/TLSを有効にする
- 適切なキャッシング戦略を実装する
- アップストリーム接続プーリングを使用する
- stub_statusまたはprometheusで監視する
- 悪用を防ぐためにレート制限を行う
- セキュリティヘッダーを追加する
- least_connロードバランシングを使用する
- エラーログとアクセスログを分離する
❌ 実施すべきでないこと
- gzip圧縮を無効にする
- 弱いSSL暗号スイートを使用する
- 認証済みレスポンスをキャッシュする
- バックエンドへの直接アクセスを許可する
- アップストリームのヘルスチェックを無視する
- リダイレクトなしでHTTPとHTTPSを混在させる
- 本番環境でデフォルトのエラーページを使用する
- 機密性の高いユーザーデータをキャッシュする
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Nginx Configuration
Table of Contents
Overview
Master Nginx configuration for production-grade web servers, reverse proxies, load balancing, SSL termination, caching, and API gateway patterns with advanced performance tuning.
When to Use
- Reverse proxy setup
- Load balancing between backend services
- SSL/TLS termination
- HTTP/2 and gRPC support
- Caching and compression
- Rate limiting and DDoS protection
- URL rewriting and routing
- API gateway functionality
Quick Start
Minimal working example:
# /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
worker_rlimit_nofile 65535;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
use epoll;
multi_accept on;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Logging
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
log_format upstream_time '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Production Nginx Configuration | Production Nginx Configuration |
| HTTPS Server with Load Balancing | HTTPS Server with Load Balancing |
| Nginx Configuration Script | Nginx Configuration Script |
| Nginx Monitoring Configuration | Nginx Monitoring Configuration |
Best Practices
✅ DO
- Use HTTP/2 for performance
- Enable SSL/TLS with strong ciphers
- Implement proper caching strategies
- Use upstream connection pooling
- Monitor with stub_status or prometheus
- Rate limit to prevent abuse
- Add security headers
- Use least_conn load balancing
- Keep error logs separate from access logs
❌ DON'T
- Disable gzip compression
- Use weak SSL ciphers
- Cache authenticated responses
- Allow direct access to backends
- Ignore upstream health checks
- Mix HTTP and HTTPS without redirect
- Use default error pages in production
- Cache sensitive user data
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,860 bytes)
- 📎 references/https-server-with-load-balancing.md (3,268 bytes)
- 📎 references/nginx-configuration-script.md (901 bytes)
- 📎 references/nginx-monitoring-configuration.md (554 bytes)
- 📎 references/production-nginx-configuration.md (2,647 bytes)
- 📎 scripts/validate-api.sh (440 bytes)