ZEAL DOWNLOAD HOSTING -- 2026-10-13

Public installer: https://zeal.family/downloads/zeal-installer.exe
Checksum: https://zeal.family/downloads/zeal-installer.sha256
Native source: https://zeal.family/downloads/ranked-native-source.tar.gz
Base package: https://zeal.family/downloads/packages/20261013/iw4x-base.zip
Optional DLC: https://zeal.family/downloads/packages/20261013/iw4x-dlc.zip

MS-02 hosts all of these. There is no Google Drive dependency in installer 1.26.
DirectX, only when missing, still downloads from Microsoft's HTTPS endpoint.
Core Zeal features stay mandatory; DLC is the only optional component.

ARCHITECTURE
The existing zeal.family Cloudflare Tunnel sends only /downloads/ to a separate
static origin at 127.0.0.1:8793. The rest of the website continues to 127.0.0.1:8792.
The public connection is HTTPS; the tunnel encrypts transport to MS-02. Loopback
HTTP is confined to that machine. No new public port or LAN route was opened.

Service: zeal-downloads.service, user zealdownload (no backend group membership).
Config: /etc/zeal-downloads/nginx.conf, from deploy/zeal-downloads.conf.
Files: /srv/zeal/downloads, root-owned and read-only to the download service.
Only named installer/source/checksum files and versioned package names are served.
Directory listings, writes, symlinks and other filesystem paths are denied.
The download service cannot read /etc/zeal, either database directory, game state,
/root or /workspace. NoNewPrivileges is enabled, including the Incus override.
nginx's default service is masked; this custom service binds only to loopback.

Range and HEAD requests are supported. There are at most 3 simultaneous download
requests per client IP, 12 total, at 8 MiB/s per request. These are ceilings, not a
promise of WAN throughput; MS-02's uplink and the tunnel still determine speed.
Cache-Control: no-store passes large-file ranges through to this origin. Ordinary
Cloudflare caching has a 512 MB per-file limit on Free/Pro/Business, so these
multi-GB archives do not rely on edge caching:
https://developers.cloudflare.com/cache/concepts/default-cache-behavior/
https://developers.cloudflare.com/cache/reference/range-requests/

INSTALLER INTEGRITY AND RESUME
Installer.cs pins both archive SHA-256 values, including manual/browser copies.
No archive is extracted until its entire hash matches. Package filenames in the
temporary directory contain that hash. Cancellation/network failures preserve
partial packages; successful installation cleans them up. Bad hashes discard the
invalid download. A full response to a Range request replaces the partial file;
a partial response must start at the requested byte and describe the exact length.
HTTP 416 is only treated as already complete when the size matches, followed by
the same hash verification. Redirects are validated before following and cannot
downgrade HTTPS. Networking runs outside the WinForms UI context.

This pins the archive content to this installer release, not a Windows publisher
identity. The executable is not Authenticode-signed. Do not silently replace a
versioned package; a changed package needs new pins, URLs and installer version.

BUILD / UPDATE
Run installer/package_downloads.py against the working game directory, targeting
a NEW dated version directory. The builder uses a strict allowlist, rejects
symlinks and checks the DLC manifest. It includes multiplayer assets, runtime
libraries and shared map textures; the installed Zeal DLL/menu remain embedded
in the installer. Profiles, userraw, server configs, identities, databases, logs,
x64/alternate launchers and the single-player campaign are excluded.

Example (adjust the version for the next release):
  python3 installer/package_downloads.py /srv/zeal/game-qa /srv/zeal/downloads/packages/YYYYMMDD

Review each generated manifest, verify all pool maps are present, and test the
archives before publishing. Copy the manifest SHA-256 values and versioned URLs
into Config.BaseSha256/DlcSha256 and BaseSources/DlcSources. Bump AssemblyVersion,
AssemblyFileVersion, app.rc, and the downloader User-Agent. Build as BUILD.md says.
Run the Windows workflow harness and the live-download/fresh-game QA. Upload the
new EXE/checksum using temporary files and atomic rename, preserving the previous
release privately for rollback. Never put configs/keys/DBs in the public directory.
Do not delete earlier version directories while clients may be using old releases.

DEPLOYMENT / ROLLBACK
Use deploy/zeal-downloads.service with deploy/zeal-downloads.conf. Create the system
user zealdownload and /etc/zeal-downloads first. In Incus, the existing generated
zzz-lxc-service.conf can override NoNewPrivileges; the installed
zzzz-download-hardening.conf restores it. Validate nginx and tunnel config before
reloading. Put this ingress rule before the generic zeal.family rule:

  - hostname: zeal.family
    path: ^/downloads/.*
    service: http://127.0.0.1:8793
    originRequest:
      httpHostHeader: zeal.family

The registration service's old fixed installer/source routes remain compatible
if the static ingress is rolled back, but it intentionally does not stream the
large game archives through account request workers. Check healthz and both API
origins after tunnel changes. Rollback backups are in
/root/qa-state/downloads-20261013. No rating/account database migration is involved.
