Skip to content

Fix the proxy header config keys and register nginx and toml code blocks - #3460

Merged
pwizla merged 6 commits into
mainfrom
repo/proxy-keys-and-code-languages
Sep 11, 2026
Merged

Fix the proxy header config keys and register nginx and toml code blocks#3460
pwizla merged 6 commits into
mainfrom
repo/proxy-keys-and-code-languages

Conversation

@derrickmehaffy

@derrickmehaffy derrickmehaffy commented Sep 10, 2026

Copy link
Copy Markdown
Member

This PR corrects the reverse proxy options in the server configuration documentation: the keys are server.proxy.ipHeader and server.proxy.maxIpsCount, not app.proxyIpHeader and app.maxIpsCount, which are read from a path Strapi ignores at runtime. It registers nginx and toml as recognized code block languages in both the Prism configuration and the llms-code validator, since each keeps its own language list. It also adds 4 shared snippets covering the Strapi-side configuration the deployment guides have in common, so a correction to the public url, the proxy header options, the upload body limits, or the multi-instance caveats lands once instead of in every guide.

derrickmehaffy and others added 2 commits September 10, 2026 09:54
The keys are server.proxy.ipHeader and server.proxy.maxIpsCount. They were
documented as app.proxyIpHeader and app.maxIpsCount, which Strapi never reads,
so anyone configuring header trust behind a proxy was setting an ignored option.
Verified against packages/core/core/src/services/server/index.ts.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Prism and the llms-code validator each keep their own language list, so a
fence needs registering in both. Adding these lets the deployment guides
fence proxy configuration examples with a real language.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
documentation Ready Ready Preview Sep 11, 2026 8:23am UTC

Request Review

@github-actions github-actions Bot added pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo labels Sep 10, 2026
@github-actions github-actions Bot added the internal PRs created by the Strapi core team label Sep 10, 2026
The proxy and process manager guides repeat the same Strapi-side
configuration: the public url, the proxy header options, the upload body
limits, and the caveats that apply when several instances share a database.
Extracting them means a correction lands once instead of in every guide.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@pwizla
pwizla merged commit cf7a90f into main Sep 11, 2026
5 checks passed
@pwizla
pwizla deleted the repo/proxy-keys-and-code-languages branch September 11, 2026 08:32
@pwizla pwizla added this to the 7.2.0 milestone Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal PRs created by the Strapi core team pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants