Jul 29 - Photo stamping files

This commit is contained in:
2026-07-29 17:35:54 -04:00
parent 7c064b6ca1
commit bd994e75e6
3 changed files with 411 additions and 5 deletions
+8
View File
@@ -80,6 +80,14 @@ class Config:
# full verification, so objects exist.
R2_MEDIA_FALLBACK = os.environ.get('R2_MEDIA_FALLBACK', 'false').lower() == 'true'
# ── Photo capture-time / geo overlay (MT-12) ────────────────────────────
# When true (default), POST /api/v1/photos/upload burns a timestamp + GPS
# bar into the image before storing it. Set false to store raw uploads.
# Global, not per-tenant: the overlay is evidence provenance, which every
# tenant wants and none should be able to switch off from the UI. Promote to
# a TenantSettings column only if a tenant ever has a real reason to opt out.
PHOTO_STAMP_ENABLED = os.environ.get('PHOTO_STAMP_ENABLED', 'true').lower() == 'true'
# ── Session / cookies ───────────────────────────────────────────────────
PERMANENT_SESSION_LIFETIME = timedelta(hours=24)
# Secure by default — subclasses must explicitly opt out for local dev.