OhMySkills
基础设施与运维 nginx-config 更新于 2026-09-01

Nginx 工程规则

Nginx rules: explicit includes, upstream health checks and cache-header discipline

技术栈
Nginx
主题
工程基线
条目
9 条
版本
v0.2.0

✓ 应当这么做

  • ✓ Terminate TLS with automatic certificate management and renewals proven to work
  • ✓ Serve precompressed static assets with long-lived cache headers and hashed names
  • ✓ Keep one reverse proxy as the single ingress owner of port 443

✕ 常见反模式

  • ✕ Manual certificate installs with no renewal reminder
  • ✕ Cache headers that let stale HTML survive deploys
  • ✕ Configuration snippets copied without matching the proxy version

◎ 交付前验证

  • ◎ Certificate chain and expiry verified from an external vantage point
  • ◎ Cache headers inspected on HTML and on hashed assets
  • ◎ Proxy configuration validated before reload, with rollback ready

同分类条目

38 篇

同一技术栈的其他条目