DocumentationBuild. Deploy. Operate.
DocsQSCSCore HTTP API

QSCSCore HTTP API, Static Pages

On this page 1 sections

Static Pages

When [Static Pages] Path is set in qscs.conf the daemon can satisfy requests for hosts that are not in [Origins] by reading a file from disk. This is how favicons, robots.txt, sitemap.xml, and pre-rendered SEO landing pages are served from every thin client.

Resolution

Lookup order for a request that does not match any origin:

  1. If [Static Pages] Path is set: look for <Path>/<Host>/<uri> on disk. If the URI's last segment has no extension, .html is appended. / becomes /index.html.
  2. Otherwise → 200 OK health-check page (so ALBs don't fail).

Security

Path traversal (..) and null bytes are rejected before resolution. The canonical resolved path must lie under the configured Path; symlinks that escape it are refused.

Content-Type

ExtensionContent-Type
.htmltext/html; charset=utf-8
.jsonapplication/json
.csstext/css
.jsapplication/javascript
anything elsetext/plain; charset=utf-8

Binary assets (favicon.ico, og-image.png, qscs-substrate.wasm) that need a specific MIME type are best served via a TLS terminator that sets the header explicitly, or via the origin so the upstream's Content-Type is preserved verbatim. See SEO & Static Assets for the full pattern.

Need a hand with your deployment?Contact support ↗Back to top ↑