-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
86 lines (66 loc) · 1.99 KB
/
render.yaml
File metadata and controls
86 lines (66 loc) · 1.99 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
# Backend API Service
- type: web
name: se100-backend-api
env: node
region: singapore # Closest to Vietnam
plan: starter # $7/month - always on
buildCommand: npm ci --production
startCommand: npm start
healthCheckPath: /health
# Auto-deploy from main branch
branch: main
# Environment variables
envVars:
# Node environment
- key: NODE_ENV
value: production
- key: PORT
value: 8080
- key: API_PREFIX
value: /api/v1
- key: LOG_LEVEL
value: info
# Database connection (from Neon or Render PostgreSQL)
- key: DATABASE_URL
fromDatabase:
name: se100-postgres
property: connectionString
# Database SSL (required for Neon/Render PostgreSQL)
- key: DB_SSL
value: true
# JWT Secrets (generate new secrets for production)
- key: JWT_SECRET
generateValue: true
sync: false
- key: JWT_REFRESH_SECRET
generateValue: true
sync: false
- key: JWT_EXPIRE
value: 7d
- key: JWT_REFRESH_EXPIRE
value: 30d
# File Upload
- key: MAX_FILE_SIZE
value: 5242880
# Cloudinary (required for avatar uploads)
- key: CLOUDINARY_CLOUD_NAME
sync: false # Set manually in Render dashboard
- key: CLOUDINARY_API_KEY
sync: false
- key: CLOUDINARY_API_SECRET
sync: false
# CORS (Frontend URLs)
- key: CORS_ORIGINS
sync: false # e.g., https://your-frontend.vercel.app,https://your-custom-domain.com
# Database (optional - use Neon for better performance)
databases:
- name: se100-postgres
databaseName: se100_production
user: se100_user
plan: starter # $7/month - 256MB RAM, 1GB storage
region: singapore
# Automatic backups
ipAllowList: [] # Empty = accessible from anywhere (secured by password)
# PostgREST API (optional - auto-generate REST API)
# postgresMajorVersion: 15