-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
49 lines (48 loc) · 1.58 KB
/
Copy pathrender.yaml
File metadata and controls
49 lines (48 loc) · 1.58 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
# Render Blueprint — deploys the Synthica backend + a managed Postgres database.
# Import this repo at https://render.com/deploy and Render reads this file.
#
# Note: Render's free Postgres instances expire after a trial period — upgrade
# the database to a paid plan for real production use (Settings → Instance Type).
databases:
- name: synthica-db
plan: free
databaseName: synthica
user: synthica
services:
- type: web
name: synthica-backend
runtime: node
rootDir: backend
plan: free
buildCommand: npm install
startCommand: node server.js
healthCheckPath: /api/health
envVars:
- key: PORT
value: 4000
- key: NODE_ENV
value: production
- key: AUTH_SECRET
generateValue: true
- key: DATA_PROVIDER
value: postgres
- key: DATABASE_URL
fromDatabase:
name: synthica-db
property: connectionString
# Set these in the Render dashboard when prompted (your real frontend URLs).
- key: CORS_ORIGINS
sync: false
- key: FRONTEND_URL
sync: false
# Resend API key for transactional emails (verification, password reset, etc.)
- key: RESEND_API_KEY
sync: false
# Guaranteed owner login. Production refuses the shared demo password, so
# without this a fresh deploy has NO usable accounts. Set both in the
# Render dashboard; the matching account is created (or password-reset) on
# every boot as a platform admin.
- key: ADMIN_EMAIL
sync: false
- key: ADMIN_PASSWORD
sync: false