mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
fbdd913d8e
* Add translation tracker for stale translations audit Generated-By: mintlify-agent * translations: add missing pages and update content for es, fr, zh Phase 1: Add translations for 4 new API analytics pages (feedback-by-page, searches, views, visitors) in es, fr, and zh. Phase 2: Update 3 pages with content changes: - agent/workflows: add "Disable a workflow" subsection - ai/skillmd: add 24-hour generation note - editor/publish: add AI PR title tip, reformat publishing workflows, promote "Publish your changes" heading from h3 to h2 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * update descriptions * translations * translations * translations * Delete TRANSLATION_TRACKER.md * translations * a * a * translations * translations * translations * translations * translations * translations * translations * translations * Update use-cases.mdx * translations * translations * Update ai-native.mdx * Update accordions.mdx * Update accordions.mdx * Update accordions.mdx * translations * translations * Update fonts.mdx * translations * translations: update SEO descriptions for es, fr, zh (150 pages) Update the description: frontmatter field across 150 pages × 3 languages to match the current English descriptions updated on 2026-03-31. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
39 lines
1.7 KiB
Plaintext
39 lines
1.7 KiB
Plaintext
---
|
|
title: "在 Vercel 前使用外部代理"
|
|
description: "在你的 Vercel 部署前配置 Cloudflare 或 Nginx 等外部反向代理,以在自定义子路径下提供 Mintlify 文档。"
|
|
keywords: ["Vercel", "外部代理", "CloudFront", "域名验证", "SSL 证书"]
|
|
---
|
|
|
|
如果你在 Vercel 部署前使用了 Cloudflare 或 AWS CloudFront 等外部代理,则需要对其进行正确配置,以避免与 Vercel 的域名验证和 SSL 证书签发流程发生冲突。
|
|
|
|
错误的代理配置可能会阻止 Vercel 签发 Let's Encrypt SSL 证书,并导致域名验证失败。
|
|
|
|
请参阅 Vercel 文档中的[支持的提供商](https://vercel.com/guides/how-to-setup-verified-proxy#supported-providers-verified-proxy-lite)。
|
|
|
|
<div id="required-path-allowlist">
|
|
## 必需的路径白名单
|
|
</div>
|
|
|
|
你的外部代理必须允许访问以下特定路径的流量,不得阻止、重定向或进行强缓存:
|
|
|
|
- `/.well-known/acme-challenge/*` - 用于 Let's Encrypt 证书验证
|
|
- `/.well-known/vercel/*` - 用于 Vercel 域名验证
|
|
- `/mintlify-assets/_next/static/*` - 用于静态资源
|
|
|
|
这些路径应直接透传到你的 Vercel 部署,不进行任何修改。
|
|
|
|
<div id="header-forwarding-requirements">
|
|
## 请求头转发要求
|
|
</div>
|
|
|
|
确保你的代理正确转发 `HOST` 请求头。如果请求头未正确转发,验证请求会失败。
|
|
|
|
<div id="testing-your-proxy-setup">
|
|
## 测试你的代理配置
|
|
</div>
|
|
|
|
要验证你的代理是否已正确配置:
|
|
|
|
1. 测试 `https://[yourdomain].com/.well-known/vercel/` 是否有响应。
|
|
2. 确认 SSL 证书已在你的 Vercel 控制台中正确签发并生效。
|
|
3. 检查 domain 验证是否已成功完成。 |