-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
72 lines (69 loc) · 2.72 KB
/
render.yaml
File metadata and controls
72 lines (69 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
services:
- type: web
name: ai-dms-sidecar
runtime: docker
plan: starter
region: oregon
# The orchestrator holds in-memory cancel tokens per process. Running more
# than one instance would let a cancel request hit the wrong worker, so
# pin to one instance until a queue is introduced.
numInstances: 1
rootDir: sidecar
dockerfilePath: Dockerfile
healthCheckPath: /health
autoDeploy: true
envVars:
# ---- baked-in defaults --------------------------------------------
- key: DMS_WEB_MODE
value: "1"
- key: PORT
value: "8080"
# ---- required secrets (set in Render → Environment) ---------------
# Long random string; the UI bakes the SAME value into VITE_DMS_TOKEN.
# Rotating this requires re-deploying the UI with the new value.
- key: DMS_BEARER_TOKEN
sync: false
# OpenAI API key (used for gpt-4o vision + transcription).
- key: OPENAI_API_KEY
sync: false
# Supabase project URL, e.g. https://<ref>.supabase.co
- key: SUPABASE_URL
sync: false
# Supabase service-role key (NOT the anon key).
- key: SUPABASE_SERVICE_ROLE_KEY
sync: false
# Postgres URI from Supabase. Use the **pooler** (port 6543) URI, not
# the direct connection — direct hits the connection limit fast.
- key: DATABASE_URL
sync: false
# Comma-separated list of UI origins permitted by CORS, e.g.
# https://ai-dms.vercel.app,https://ai-dms-staging.vercel.app
- key: WEB_ORIGIN
sync: false
# ---- optional overrides (defaults shown; set in Render to change) -
# - key: OPENAI_VISION_MODEL # default gpt-4o
# sync: false
# - key: OPENAI_REASONER_MODEL # default gpt-4o
# sync: false
# - key: OPENAI_TEXT_MODEL # default gpt-4o
# sync: false
# - key: OPENAI_STT_MODEL # default gpt-4o-transcribe
# sync: false
# - key: DMS_STAGING_BUCKET # default 'staging'
# sync: false
# - key: DMS_ORGANIZED_BUCKET # default 'organized'
# sync: false
# - key: DMS_SIGNED_URL_TTL # default 3600 (seconds)
# sync: false
# - key: DMS_AUDIO_TRIM_SECONDS # default 60
# sync: false
# - key: DMS_LIBREOFFICE_TIMEOUT # default 120 (seconds)
# sync: false
# Optional persistent disk for job/sidecar logs. /tmp is ephemeral on
# Render so `/logs/recent` and `/jobs/{id}/log` lose history at every
# restart without a disk. Uncomment + set DMS_TMP_DIR=/var/dms in
# envVars to enable. Smallest size (1 GB) is fine — logs are JSONL.
# disk:
# name: dms-logs
# mountPath: /var/dms
# sizeGB: 1