-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
79 lines (76 loc) · 1.97 KB
/
render.yaml
File metadata and controls
79 lines (76 loc) · 1.97 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
services:
# Frontend React app
- type: web
name: canairy
env: static
plan: free
buildCommand: npm install && npm run build
staticPublishPath: ./dist
headers:
- path: /*
name: X-Frame-Options
value: DENY
- path: /*
name: X-Content-Type-Options
value: nosniff
- path: /*
name: Referrer-Policy
value: strict-origin-when-cross-origin
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: VITE_USE_MOCK_DATA
value: false
- key: VITE_API_URL
value: https://canairy-api.onrender.com/api/v1
- key: NODE_VERSION
value: "18"
# AI synthesis is disabled to stop Anthropic token usage.
# To re-enable: set VITE_CANAIRY_AI_ENABLED=true and re-add VITE_ANTHROPIC_API_KEY in the Render dashboard.
# Backend FastAPI
- type: web
name: canairy-api
env: python
plan: free
buildCommand: |
pip install --upgrade pip
pip install -r api/requirements.txt
startCommand: uvicorn api.simple_main:app --host 0.0.0.0 --port $PORT
envVars:
- key: PYTHON_VERSION
value: "3.11"
- key: ENVIRONMENT
value: production
- key: SECRET_KEY
generateValue: true
# API Keys (should be set in Render dashboard)
- key: FRED_API_KEY
sync: false
- key: LEGISCAN_API_KEY
sync: false
- key: CONGRESS_API_KEY
sync: false
- key: BLS_API_KEY
sync: false
- key: NEWS_API_KEY
sync: false
- key: ALPHA_VANTAGE_API_KEY
sync: false
- key: ACLED_API_KEY
sync: false
- key: ACLED_EMAIL
sync: false
- key: OPENAI_API_KEY
sync: false
# Redis Cache (if available on your plan)
- type: redis
name: canairy-redis
plan: free
ipAllowList: []
databases:
- name: canairy-db
plan: free
databaseName: canairy
postgresMajorVersion: 15