-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
66 lines (62 loc) · 2.38 KB
/
Copy pathrender.yaml
File metadata and controls
66 lines (62 loc) · 2.38 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
# Render Blueprint — deploys DealSentry as a Docker web service.
# In Render: New → Blueprint → connect this repo. Render reads this file,
# builds the Dockerfile, and provisions the service. Fill in the `sync: false`
# secrets in the dashboard (they are intentionally not stored in git).
#
# Free plan (512 MB). Note the trade-offs:
# - Spins down after ~15 min idle → first request after a lull is slow (cold start).
# - PDF export (headless Chromium) is the one feature that may OOM at 512 MB even
# with the memory flags in src/api/proposals.ts. If PDF exports fail, the only
# real fix is to bump `plan` to `starter`/`standard`.
services:
- type: web
name: dealsentry
runtime: docker
dockerfilePath: ./Dockerfile
plan: free
healthCheckPath: /api/health
autoDeploy: true
envVars:
- key: NODE_ENV
value: production
# JWT signing secret — Render generates a strong value (rotates the old one).
- key: NEXTAUTH_SECRET
generateValue: true
# --- Secrets: set these in the Render dashboard (rotate first!) ---
- key: DATABASE_URL
sync: false
- key: SUPABASE_URL
sync: false
- key: SUPABASE_ANON_KEY
sync: false
# Optional: preferred over the anon key when set (survives enabling RLS).
- key: SUPABASE_SERVICE_ROLE_KEY
sync: false
- key: AZURE_OPENAI_ENDPOINT
sync: false
- key: OPENAI_API_KEY
sync: false
# --- Non-secret config (override in dashboard if needed) ---
# No sign-in screen: every request is served as this user. Falls back to
# the first ADMIN in the User table if unset.
- key: DEMO_USER_EMAIL
value: admin@reviewer.ai
- key: AZURE_OPENAI_DEPLOYMENT
value: gpt-4o
- key: AZURE_OPENAI_API_VERSION
value: 2024-12-01-preview
- key: AZURE_OPENAI_EMBEDDING_DEPLOYMENT
value: text-embedding-ada-002
# Set both to the service's public URL after the first deploy
# (e.g. https://dealsentry.onrender.com). Used for CORS + OAuth redirects.
- key: PRODUCTION_URL
sync: false
- key: FRONTEND_URL
sync: false
# --- Email (optional; off until enabled) ---
- key: EMAIL_ENABLED
value: "false"
- key: RESEND_API_KEY
sync: false
- key: EMAIL_FROM
value: DealSentry <noreply@dealsentry.ai>