Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
51 lines (49 loc) · 1.44 KB
/
Copy pathrender.yaml
File metadata and controls
51 lines (49 loc) · 1.44 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
databases:
- name: skyguard-db
plan: free
databaseName: skyguard
user: skyguard
services:
# ── FastAPI backend ──
- type: web
name: skyguard-api
runtime: python
plan: free
buildCommand: pip install uv && uv sync --frozen --no-dev
startCommand: uv run --no-sync uvicorn backend.app.main:app --host 0.0.0.0 --port $PORT
healthCheckPath: /health
envVars:
- key: DATABASE_URL
fromDatabase:
name: skyguard-db
property: connectionString
- key: SKYGUARD_MODE
value: simulation
- key: SKYGUARD_API_KEY
generateValue: true
- key: CORS_ORIGINS
value: https://skyguard-ui.onrender.com
- key: PYTHON_VERSION
value: "3.12"
# ── React frontend (static site) ──
- type: web
name: skyguard-ui
runtime: static
buildCommand: cd frontend && npm ci && npm run build
staticPublishPath: frontend/dist
routes:
- type: rewrite
source: /api/*
destination: https://skyguard-api.onrender.com/api/*
- type: rewrite
source: /ws/*
destination: https://skyguard-api.onrender.com/ws/*
- type: rewrite
source: /docs
destination: https://skyguard-api.onrender.com/docs
- type: rewrite
source: /openapi.json
destination: https://skyguard-api.onrender.com/openapi.json
- type: rewrite
source: /*
destination: /index.html