Repository navigation
Document --max-connections, --max-header-size and HSTS changes (v3) - #21
Merged
Merged
Conversation
Add a "Maximum Connections" feature page for the new `--max-connections` option: what the limit counts, how waiting connections behave, the connections held beyond the limit, idle keep-alive connections, and why the idle timeout should stay on. List it in the CLI, env, TOML and defaults references and the features table. The idle timeout page now mentions the debug log of closed connections and points to the limit.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
static-web-server-docs | 8eb5ab0 | Commit Preview URL Branch Preview URL |
Nov 08 2026, 12:13 PM |
Add a "Maximum Request Header Size" page and the `--max-header-size` entries in the CLI, env, TOML and defaults references. Security headers no longer send `Strict-Transport-Security` over plain HTTP, and its value has no `preload`. Update the security headers page and the references, and show how to add HSTS behind a TLS-terminating proxy or opt into preloading with a custom header rule.
joseluisq
marked this pull request as ready for review
November 8, 2026 12:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the
--max-connectionsoption from static-web-server/static-web-server#799: a new "Maximum Connections" page (what the limit counts, how waiting connections behave, the connections held beyond the limit, idle keep-alive connections, and why the idle timeout should stay on), plus entries in the CLI, env, TOML and defaults references and the features table.The page recommends
1024as a starting value when SWS is exposed directly. The default stays0(no limit).The idle timeout page now mentions the debug log of closed connections and points to the new limit in its limitations note.
vitepress buildpasses with no dead links.It also documents the
--max-header-sizeoption and the security headers changes now onmaster:16384bytes, and larger request headers get431.Strict-Transport-Securityis only sent with--tlsand has nopreload. The page shows how to add HSTS behind a TLS-terminating proxy, or opt into preloading, with a custom header rule.