-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
65 lines (63 loc) · 2.03 KB
/
Copy pathrender.yaml
File metadata and controls
65 lines (63 loc) · 2.03 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
services:
# 1. PostgreSQL Database
- type: pg
name: cloudgauge-db
plan: free
databaseName: costanalyzer
user: dev
# 2. Redis Instance
- type: redis
name: cloudgauge-redis
plan: free
ipAllowList: [] # Allows connections from other Render services
# 3. Fastify Web Service (Backend)
- type: web
name: cloudgauge-server
env: node
plan: free
rootDir: . # Assuming this file is placed in the server repository root
buildCommand: npm install && npm run build
# This preDeploy command ensures the database is migrated before the app starts, preventing crashes!
# If the migration fails, the deploy stops, saving your live app from crashing.
preDeployCommand: npm run migrate
startCommand: npm start
envVars:
- key: NODE_ENV
value: production
- key: HOST
value: 0.0.0.0
- key: DATABASE_URL
fromDatabase:
name: cloudgauge-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: cloudgauge-redis
property: connectionString
- key: JWT_SECRET
generateValue: true # Render will automatically generate a secure 256-bit secret string for you
- key: GOOGLE_CLIENT_ID
sync: false # You must add this manually in the Render dashboard
- key: GOOGLE_CLIENT_SECRET
sync: false # You must add this manually in the Render dashboard
- key: GOOGLE_CALLBACK_URL
sync: false # Set this to https://<your-render-url>/auth/google/callback manually
- key: GITHUB_TOKEN
sync: false # Add manually
- key: OPENAI_API_KEY
sync: false # Add manually
- key: ANTHROPIC_API_KEY
sync: false # Add manually
- key: AWS_PRICING_REGION
value: us-east-1
- key: PRICING_TTL_SECS
value: 3600
- key: MAX_FILE_SIZE_KB
value: 500
- key: RATE_LIMIT_MAX
value: 100
- key: RATE_LIMIT_WINDOW
value: 1 minute
- key: LOG_LEVEL
value: info