
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
A simple frontend for caching requests to an upstream source. This is a custom-built Nginx with modules statically linked in. The VTS module is included for live metrics. It supports multiple upstreams, including health check options.
| Path | Description |
|---|---|
| /cache | Store nginx cache data here |
The container includes VTS metrics module and the default nginx.conf includes a path
that exposes live metrics.
| URL | |
|---|---|
| /status | Live metrics |
This module has cache purging enable with no restrictions on IP range. To purge the cache use the PURGE method with a wildcard.
curl -X PURGE -D – "[***]"
| Name | Default | Description |
|---|---|---|
| LISTENPORT | 8888 | Bind the webserver to this port (useful for host network) |
| UPSTREAM | Include server address and port for upstream target, multiple targets can be split with a semicolon ';' | |
| UPSTREAM_PROTOCOL | http | The upstream protocol to use (all upstreams must match) |
| UPSTREAM_OPTS | max_fails=5 fail_timeout=15s | Options to append to each upstream |
| WORKERS | 4 | How many nginx worker processes to spawn |
| MAX_EVENTS | 1024 | How many connections we can handle |
| SENDFILE | on | Turn sendfile kerenel optimization on? |
| TCP_NOPUSH | off | Disable TCP push? |
| CACHE_SIZE | 1G | Size of cache on disk |
| CACHE_MEM | 10m | Ram size for cache keys |
| CACHE_AGE | 365d | When should we auto retire entries? |
| USE_PERFLOG | 0 | Also logs to /log/access.log if set to 1, useful for exporting |
| PROXY_CACHE_LOCK | on | Only allow one cache request to the upstream |
| SSL | off | Set to on, to use SSL over the listenport |
| CERTIFICATE | /etc/certs.d/bad.pem | Use this to map in a proper certificate |
| CERTIFICATE_KEY | /etc/certs.d/bad.key | Use this to map in a proper key |
| CUSTOM_CONFIGURATION | Use this to include any custom nginx configuration in the root location |
The following docker compose
yamlversion: '2' services: cache: image: seanhoughton/nginx-cache:1.16.0 environment: - LISTENPORT=3333 - UPSTREAM=server1.com:80;server2.com:80 - UPSTREAM_OPTS="max_fails=3 fail_timeout=30s" - UPSTREAM_PROTOCOL=http - CACHE_SIZE=1024g - CACHE_MEM=256g - CACHE_AGE=30d - MAX_EVENTS=1024 - WORKERS=16 ports: - 3333:3333 volumes: - cache:/cache volumes: cache:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务