-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
59 lines (58 loc) · 1.75 KB
/
Copy pathrender.yaml
File metadata and controls
59 lines (58 loc) · 1.75 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
services:
# Main Node.js API Service
- type: web
name: khronos-api
env: node
plan: starter
buildCommand: npm ci && npm run build:render
startCommand: npm run serve
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 10000
# Use external MongoDB Atlas (set this manually in dashboard)
- key: MONGODB_URI
value: your-mongodb-connection-string-here
# Redis connection using connection string (more reliable)
- key: REDIS_URL
fromService:
type: redis
name: khronos-redis
property: connectionString
# Individual Redis components as backup
- key: REDIS_HOST
fromService:
type: redis
name: khronos-redis
property: host
- key: REDIS_PORT
fromService:
type: redis
name: khronos-redis
property: port
- key: REDIS_PASSWORD
value: ''
# Add your other environment variables here
- key: JWT_SECRET
generateValue: true
- key: STATE_SECRET
generateValue: true
- key: FRONTEND_URL
value: https://your-frontend-domain.com
- key: CORS_URL
value: https://your-frontend-domain.com
- key: API_URL
value: https://khronos-api-bp71.onrender.com
# Google OAuth Configuration (Set these manually in Render Dashboard)
- key: GOOGLE_CLIENT_ID
value: your-google-client-id
- key: GOOGLE_CLIENT_SECRET
value: your-google-client-secret
- key: GOOGLE_CALLBACK_URL
value: https://khronos-api-bp71.onrender.com/api/v1/auth/google/callback
# Redis Cache Service
- type: redis
name: khronos-redis
plan: starter
maxmemoryPolicy: allkeys-lru