Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
38 lines (38 loc) · 1.48 KB
/
Copy pathrender.yaml
File metadata and controls
38 lines (38 loc) · 1.48 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
# Render Blueprint for the API: Dashboard → New → Blueprint → pick this repository.
# Secrets marked `sync: false` are asked for once, in the Render dashboard; they never live here.
services:
- type: web
name: collabedit-api # becomes https://collabedit-api.onrender.com (or with a suffix if taken)
runtime: docker
plan: free
region: singapore # keep Postgres (Neon) and Redis in the same region
branch: main
dockerContext: ./apps/api
dockerfilePath: ./apps/api/Dockerfile
healthCheckPath: /api/healthz
autoDeploy: true
envVars:
- key: ENV
value: production
- key: LOG_LEVEL
value: INFO
- key: COOKIE_SECURE
value: 'true'
# Render's proxy is the only way in, so its forwarded client address can be trusted.
- key: FORWARDED_ALLOW_IPS
value: '*'
- key: JWT_SECRET
generateValue: true
- key: DATABASE_URL # Neon connection string (the direct one, not "-pooler")
sync: false
- key: REDIS_URL # Redis Cloud: redis://default:PASSWORD@HOST:PORT
sync: false
- key: FRONTEND_URL # the Vercel URL, e.g. https://collabedit.vercel.app
sync: false
# Comment notification email (optional: without SMTP_HOST, emails are only logged).
- key: SMTP_HOST # smtp.gmail.com
sync: false
- key: SMTP_USERNAME # the Gmail address
sync: false
- key: SMTP_PASSWORD # a Gmail app password, not the account password
sync: false