forked from CtrlAlt07/civicsense
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
60 lines (56 loc) · 1.56 KB
/
render.yaml
File metadata and controls
60 lines (56 loc) · 1.56 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
# render.yaml — Render.com deployment configuration
# Place this file in your repo root (civicsense/)
# Then connect repo on Render → "New Blueprint"
services:
- type: web
name: civicsense-api
runtime: node
region: singapore # closest to India
rootDir: .
buildCommand: npm install
startCommand: node backend/server.js
plan: free
# Environment variables — set secret values in Render dashboard
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 5000
- key: FRONTEND_STATIC_DIR
value: /opt/render/project/src/frontend/public
- key: UPLOADS_DIR
value: /opt/render/project/src/uploads
- key: TEMP_UPLOAD_DIR
value: /opt/render/project/src/uploads/tmp
# These must be set manually in Render Dashboard (sensitive):
- key: MONGODB_URI
sync: false
- key: JWT_SECRET
sync: false
- key: SMTP_HOST
sync: false
- key: SMTP_PORT
sync: false
- key: SMTP_USER
sync: false
- key: SMTP_PASS
sync: false
- key: SMTP_FROM
sync: false
- key: ADMIN_EMAIL
sync: false
- key: TWILIO_ACCOUNT_SID
sync: false
- key: TWILIO_AUTH_TOKEN
sync: false
- key: TWILIO_FROM_PHONE
sync: false
- key: GEMINI_API_KEY
sync: false
- key: FRONTEND_URL
sync: false
# Persistent disk for user-uploaded files
disk:
name: civicsense-uploads
mountPath: /opt/render/project/src/uploads
sizeGB: 1