Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target/
__pycache__/
.worktrees/
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ anyhow = "1"
thiserror = "1"
async-trait = "0.1"
rand = "0.8"
time = { version = "0.3", features = ["formatting"] }

# Temp files for thumbnail extraction
tempfile = "3"
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ Rust upload data plane for Divine Blossom media uploads.

It does not own the Blossom control plane. `divine-blossom` remains the Fastly-facing service that answers client control-plane requests such as `HEAD /upload`, validates Blossom auth, and proxies short `init` and `complete` calls to this service.

In the approved Divine resumable flow:

- `https://media.divine.video` is the client-facing control plane
- `https://upload.divine.video` is the opaque resumable session data plane
- `uploadUrl` values returned to clients are server-issued session URLs and must be treated as opaque

## Runtime Configuration

The service reads configuration from environment variables:
Expand All @@ -27,6 +33,9 @@ The service reads configuration from environment variables:
- `TRANSCRIBER_URL`
- `RESUMABLE_SESSION_TTL_SECS`
- `RESUMABLE_CHUNK_SIZE`
- `RESUMABLE_MAX_REQUEST_BODY_SIZE`

`RESUMABLE_CHUNK_SIZE` is capped to `RESUMABLE_MAX_REQUEST_BODY_SIZE` before it is advertised in `/upload/init`, so the published chunk contract cannot exceed the actual request-body limit on `upload.divine.video`. The default route limit is `1048576` bytes, matching the current production nginx ingress behavior. `UPLOAD_ROUTE_MAX_BODY_SIZE` is also accepted as a compatibility alias.

## Development

Expand Down
Loading
Loading