openvibers/openvibe.cam .env.example
.env.example
| 1 | # OpenVibe.Cam — environment (production: /etc/openvibe/cam.env). Only names are committed; every value is set on |
| 2 | # the host. A secret is never printed, logged or committed. |
| 3 | |
| 4 | # ── The service ── |
| 5 | NODE_ENV=production |
| 6 | PORT=5160 |
| 7 | HOST=127.0.0.1 |
| 8 | BASE_URL=https://openvibe.cam |
| 9 | TRUST_PROXY=2 |
| 10 | CAM_DRILL=0 |
| 11 | |
| 12 | # ── PostgreSQL (ADR-035) and Valkey ── |
| 13 | DATABASE_URL=postgres://cam:[email protected]:6432/cam |
| 14 | DATABASE_DIRECT_URL=postgres://cam_owner:[email protected]:5432/cam |
| 15 | # CAM_PGLITE_DIR=/opt/openvibe.cam/data/pglite |
| 16 | # VALKEY_URL=redis://127.0.0.1:6379 |
| 17 | VALKEY_PREFIX=ov:cam: |
| 18 | |
| 19 | # ── OpenVibe.Network: SSO (OAuth client cam, PKCE S256) and JWKS ── |
| 20 | OV_NETWORK_URL=https://openvibe.network |
| 21 | OV_NETWORK_INTERNAL_URL=http://127.0.0.1:4000 |
| 22 | OV_NETWORK_ISSUER=https://openvibe.network |
| 23 | OV_OAUTH_CLIENT_ID=cam |
| 24 | OV_OAUTH_CLIENT_SECRET=... |
| 25 | OV_OAUTH_REDIRECT_URI=https://openvibe.cam/auth/callback |
| 26 | OV_SESSION_AUDIENCE=openvibe.network |
| 27 | CAM_AUDIENCE=openvibe.cam |
| 28 | COOKIE_SECURE=true |
| 29 | |
| 30 | # ── OpenVibe.Events → /internal/events (account export/deletion) ── |
| 31 | CAM_EVENTS_SECRET=... |
| 32 | CAM_EVENTS_URL=https://openvibe.events |
| 33 | CAM_EVENTS_ENDPOINT=https://openvibe.cam/internal/events |
| 34 | CAM_EVENTS_INTERVAL_MS=5000 |
| 35 | CAM_EVENTS_SCOPE=events.subscription.manage |
| 36 | |
| 37 | # F1: the owner's own Vision face library (called with the owner's token), and the event timeline. |
| 38 | OV_VISION_URL=https://openvibe.vision |
| 39 | #CAM_CLIP_BEFORE_SECONDS=10 |
| 40 | #CAM_CLIP_AFTER_SECONDS=20 |
| 41 | #CAM_EVENT_MAX_BODY_MB=12 |
| 42 | #CAM_EVENT_SHARE_DAYS=7 |
| 43 | #CAM_NOTIFICATION_SCOPE=network.notifications.push |
| 44 | |
| 45 | # ── The existing public APIs Cam uses ── |
| 46 | OV_MEDIA_URL=https://openvibe.media |
| 47 | OV_LIVE_URL=https://openvibe.live |
| 48 | OV_PICS_URL=https://openvibe.pics |
| 49 | CAM_UPSTREAM_TIMEOUT_MS=8000 |
| 50 | |
| 51 | # ── Photos, stills, cameras and grants ── |
| 52 | CAM_PHOTO_MAX_BYTES=12582912 |
| 53 | # Where a saved photo's "Edit in Studio" goes. |
| 54 | CAM_STUDIO_URL=https://openvibe.studio |
| 55 | CAM_STILL_MAX_BYTES=8388608 |
| 56 | CAM_STILL_WIDTH=640 |
| 57 | CAM_MAX_CAMERAS=20 |
| 58 | CAM_GRANT_DAYS=7 |
| 59 | CAM_GRANT_MAX_DAYS=90 |
| 60 | CAM_GRANTS_PER_CAMERA=50 |
| 61 | CAM_LIMITS_MINUTE=120 |
| 62 | CAM_LIMITS_HOUR=3000 |
| 63 | # CAM_API_RATE_LIMIT_PER_MIN=240 |
| 64 | # CAM_RATE_LIMIT_PER_MIN=300 |
| 65 |