lolly/docs/config/basic/AGENTS.md
xfy 4562dd5a7d docs: 添加子目录 AGENTS.md 文档
deepinit 生成的子目录级 AGENTS.md 文件,帮助 AI agents 理解各功能模块:
- docs/config/: advanced, basic, caching, load-balancing, lua, rewriting, security, ssl
- docs/lua/: api-gateway, authentication, caching, dynamic-routing, logging-monitoring, middleware, rate-limiting, websocket

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-23 10:35:49 +08:00

39 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- Parent: ../AGENTS.md -->
<!-- Generated: 2026-04-23 | Updated: 2026-04-23 -->
# basic
## Purpose
基础配置示例目录,包含静态文件服务器、反向代理、虚拟主机等核心功能的 nginx 配置示例。
## Key Files
| File | Description |
|------|-------------|
| `static-server.conf` | 静态文件服务器配置sendfile、try_files、缓存策略 |
| `reverse-proxy.conf` | 反向代理配置proxy_pass、超时设置、缓冲配置 |
| `virtual-host.conf` | 虚拟主机配置多域名、server_name 匹配 |
## For AI Agents
### Working In This Directory
- 每个配置文件包含 Lolly YAML 对照注释
- 修改基础功能时应参考这些配置了解 nginx 兼容需求
- 配置文件使用 nginx 指令风格,注释说明 Lolly 对应项
### Testing Requirements
- 配置示例通过集成测试验证功能兼容性
- 运行测试:`go test ./internal/integration/...`
### Common Patterns
- 配置对照格式nginx 指令 ↔ Lolly YAML 配置项
- 注释使用 `# Lolly 对应:` 标记映射关系
## Dependencies
### Internal
- `../../../internal/config/` - Lolly 配置解析实现
- `../../../internal/handler/` - 静态文件处理器
<!-- MANUAL: -->