强曰为道
与天地相似,故不违。知周乎万物,而道济天下,故不过。旁行而不流,乐天知命,故不忧.
文档目录

Caddy 从入门到精通

Caddy 从入门到精通 / Caddy: From Beginner to Expert

一套由浅入深的 Caddy Web Server 完整教程。 A comprehensive Caddy Web Server tutorial, from shallow to deep.


目录 / Table of Contents

# 章节 / Chapter 关键词 / Keywords
1 初识 Caddy / Introduction to Caddy What, Why, Philosophy
2 安装与部署 / Installation & Deployment Install, Build, Systemd
3 静态文件服务 / Static File Serving file_server, browse, templates
4 反向代理 / Reverse Proxy reverse_proxy, upstream, LB
5 TLS 与 HTTPS / TLS & HTTPS ACME, Let’s Encrypt, OCSP
6 路由与匹配 / Routing & Matching match, handle, route
7 中间件 / Middleware encode, basicauth, rate_limit
8 API 与动态配置 / API & Dynamic Config REST API, adapt, reload
9 Docker 部署 / Docker Deployment Dockerfile, Compose, volumes
10 高级主题 / Advanced Topics Cluster, Metrics, Plugins

阅读建议 / How to Read

  • 初学者 / Beginners: 从第 1 章开始,按顺序阅读 / Start from Chapter 1, read in order.
  • 有经验者 / Experienced: 直接跳到感兴趣的章节 / Jump to the chapter you need.
  • 查阅用途 / Reference: 每章独立成文,可按需查阅 / Each chapter is self-contained.

每章结构:

  • 🟢 基础 — 最简单的用法 / Basic — simplest usage
  • 🟡 进阶 — 生产环境常见配置 / Intermediate — production-ready
  • 🔴 高级 — 深入原理与极限用法 / Advanced — internals & edge cases