You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 20c30c7
Browse filesBrowse the repository at this point in the historyBrowse files
deps: pin vgi-rpc 3a8d584 (advertised upload size never exceeds the fetch cap)
vgi-rpc 3a8d584 makes make_wsgi_app always advertise VGI-Max-Upload-Bytes
when it vends upload URLs, defaulting to and capped by the server's inbound
fetch cap, and adds VGI_RPC_MAX_FETCH_BYTES (default 256 MiB, raised to
VGI_RPC_MAX_UPLOAD_BYTES when larger). This fixes the staging failure where
a worker advertising 1 GiB refused a 300 MB upload after it was sent.
vgi serve already goes through external_config_from_env + make_wsgi_app, so
it gets the invariant; its docstrings now say so. The HTTP test fixture's
--max-upload-bytes now raises the S3/demo-storage fetch cap to match, the
same rule as the env var. Tests: the 1 GiB staging config yields a 1 GiB
fetch cap, an unset upload cap advertises the fetch cap, and contradictory
caps stop startup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|`VGI_STORAGE_EXTERNALIZE`|`1` wraps any storage backend (e.g. SQLite) in `ExternalizingStorage`; needs `VGI_BLOB_VENDOR_URL`. cloudflare-do is always wrapped |
330
330
|`VGI_STORAGE_EXTERNALIZE_BYTES`| Storage values at or over this size go to the blob vendor (default 524288; max 1048576 on cloudflare-do). Alias: `VGI_CF_DO_EXTERNALIZE_BYTES`|
331
331
|`VGI_RPC_MAX_REQUEST_BYTES`|`vgi-serve --http` (and `vgi-fixture-http` with the vendor): advertised and enforced request cap; clients upload larger requests via the vendor's upload URLs |
332
-
|`VGI_RPC_EXTERNALIZE_THRESHOLD_BYTES` / `VGI_RPC_EXTERNAL_COMPRESSION` / `VGI_RPC_MAX_UPLOAD_BYTES`| With the vendor: result externalization threshold (default 1 MiB), its compression, and the advertised upload size |
332
+
|`VGI_RPC_EXTERNALIZE_THRESHOLD_BYTES` / `VGI_RPC_EXTERNAL_COMPRESSION` / `VGI_RPC_MAX_UPLOAD_BYTES`| With the vendor: result externalization threshold (default 1 MiB), its compression, and the advertised upload size (unset: the inbound fetch cap) |
333
+
|`VGI_RPC_MAX_FETCH_BYTES`| With the vendor: largest request fetched from an inbound upload pointer. Default 256 MiB, raised to `VGI_RPC_MAX_UPLOAD_BYTES` when that is larger; an upload cap above an explicit fetch cap fails startup. vgi-rpc never advertises an upload size above it |
0 commit comments