feat: organizer Android app and token-gated upload API
CI / lint-and-test (push) Failing after 1m18s
CI / lint-and-test (push) Failing after 1m18s
Replace Syncthing as the product upload path with a share-target app and POST /api/jobs. Web UI live-polls job progress. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -107,3 +107,7 @@ STABLE_WAIT_SECONDS = _float_env("STABLE_WAIT_SECONDS", 2)
|
||||
|
||||
# --- Web ---------------------------------------------------------------
|
||||
SITE_TITLE = os.environ.get("SITE_TITLE", "live.f12.rocks")
|
||||
# Shared secret for POST /api/jobs. Empty = upload API disabled (fail closed).
|
||||
UPLOAD_TOKEN = os.environ.get("UPLOAD_TOKEN", "")
|
||||
# Hard cap after client-side 2000px JPEG; 25 MB is generous for a bad encode.
|
||||
MAX_UPLOAD_BYTES = _int_env("MAX_UPLOAD_BYTES", 25 * 1024 * 1024)
|
||||
|
||||
Reference in New Issue
Block a user