-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
53 lines (53 loc) · 2.06 KB
/
Copy pathrender.yaml
File metadata and controls
53 lines (53 loc) · 2.06 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
# Render Blueprint for the CiteMind backend (Express + Socket.io).
# Render runs a persistent Node process, so WebSockets and the in-memory store
# both work. Deploy: render.com → New → Blueprint → pick this repo.
# Then add the secret env vars (GROQ_API_KEY, HINDSIGHT_API_KEY) in the dashboard.
services:
- type: web
name: citemind-backend
runtime: node
rootDir: backend
plan: free
buildCommand: npm install
startCommand: node server.js
envVars:
- key: GROQ_MODEL
value: openai/gpt-oss-120b
- key: HINDSIGHT_BASE_URL
value: https://api.hindsight.vectorize.io
- key: JWT_SECRET
generateValue: true
- key: CLIENT_URL
value: "*" # tighten to your Vercel URL after the frontend is live
# Set these as secrets in the Render dashboard (do NOT commit them):
- key: GROQ_API_KEY
sync: false
- key: HINDSIGHT_API_KEY
sync: false
# Strongly recommended: a free MongoDB Atlas connection string. Render's
# free plan sleeps when idle and restarts with an empty in-memory store,
# so without this every tracked site is lost between demo sessions.
# Leave it unset only for a throwaway run.
- key: MONGODB_URI
sync: false
# Welcome email. Render's free plan blocks outbound SMTP, so prefer Resend
# (HTTPS). Leave unset and the email is logged instead of sent — signup
# still works either way.
- key: APP_URL
value: https://cite-mind-six.vercel.app
- key: MAIL_FROM
sync: false
# Option A — Resend (HTTPS, unaffected by SMTP port restrictions).
- key: RESEND_API_KEY
sync: false
# Option B — SMTP (e.g. Gmail app password). If the welcome email works
# locally but not on Render, the platform is blocking the SMTP port —
# switch to RESEND_API_KEY, which the same code path already supports.
- key: SMTP_HOST
sync: false
- key: SMTP_PORT
value: "587"
- key: SMTP_USER
sync: false
- key: SMTP_PASS
sync: false