-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
38 lines (37 loc) · 1.08 KB
/
render.yaml
File metadata and controls
38 lines (37 loc) · 1.08 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 Configuration for API Deployment
version: 1
services:
- type: web
name: aegis-express-api
env: node
plan: free # Change to starter/standard for production
buildCommand: cd api && rm -f package-lock.json && npm install
startCommand: cd api && npm start
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 10000
- key: FRONTEND_URL
sync: false # Add your Vercel URL manually
- key: CLIENT_ORIGIN
value: https://aegis-express.vercel.app
- key: MONGODB_URI
sync: false # Add your MongoDB connection string
- key: JWT_SECRET
sync: false # Add your JWT secret
- key: CLOUDINARY_CLOUD_NAME
sync: false # Add Cloudinary credentials
- key: CLOUDINARY_API_KEY
sync: false
- key: CLOUDINARY_API_SECRET
sync: false
- key: SMTP_HOST
sync: false # Add email configuration
- key: SMTP_USER
sync: false
- key: SMTP_PASS
sync: false
healthCheckPath: /api/health
autoDeploy: true
branch: main