Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
87 lines (83 loc) · 3.31 KB
/
Copy pathrender.yaml
File metadata and controls
87 lines (83 loc) · 3.31 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
80
81
82
83
84
85
86
87
# Render blueprint — v2 (audit fixes). Review plan names in the Render dashboard before applying:
# they change over time, and the free tier is NOT suitable here (cold starts, expiring Postgres,
# no private networking).
#
# • gateway : public Go service (JWT/RBAC, LLM gateway). Name kept so the existing URL keeps working.
# • engine : PRIVATE service (`pserv`) — not reachable from the internet, only from the gateway.
# Built from data-engine/Dockerfile so the Rust core and H3 are actually installed
# (v1 ran `pip install` only → Python fallback + grid pseudo-index in production).
# • database : managed Postgres (the code speaks plain Postgres; the SUPABASE_* vars were unused).
envVarGroups:
- name: prexus-shared-secrets
envVars:
- key: ENGINE_SECRET
generateValue: true # one generated value, shared by gateway + engine
databases:
- name: prexus-db
databaseName: prexus
user: prexus
plan: basic-256mb # verify current plan names in the dashboard
services:
- type: web
name: prexus-intelligence
runtime: go
rootDir: backend/backend
buildCommand: go build -o app ./apps/api-gateway/
startCommand: ./app
plan: starter # always-on (free instances sleep → first request times out)
healthCheckPath: /health # liveness only; /ready also checks the database
disk:
name: gateway-audit-ledger
mountPath: /var/lib/prexus-audit
sizeGB: 1
envVars:
- fromGroup: prexus-shared-secrets
- key: ENV
value: production
- key: JWT_SECRET
generateValue: true
- key: DATABASE_URL
fromDatabase: { name: prexus-db, property: connectionString }
- key: DATA_ENGINE_URL # Render private-network host:port (the gateway adds http://)
fromService: { type: pserv, name: meteorium-engine, property: hostport }
- key: AUDIT_LEDGER_DIR
value: /var/lib/prexus-audit
- key: AUDIT_LEDGER_PRIVATE_KEY # Add this secret file in the Render dashboard before deploying
value: /etc/secrets/prexus-audit-ed25519.pem
- key: ALLOWED_ORIGINS
value: https://prexus.in,https://www.prexus.in
- key: TRUSTED_PROXIES # all traffic arrives via Render's proxy; the container is not directly reachable
value: 0.0.0.0/0,::/0
- key: AI_DAILY_QUOTA
value: "100"
- key: ANTHROPIC_API_KEY
sync: false
- key: GEMINI_API_KEY
sync: false
- key: OPENAI_API_KEY
sync: false
- key: SMTP_HOST
sync: false
- key: SMTP_PORT
value: "587"
- key: SMTP_USER
sync: false
- key: SMTP_PASS
sync: false
- key: NOTIFY_EMAILS # comma-separated; applications are stored in Postgres even if unset
sync: false
- type: pserv
name: meteorium-engine
runtime: docker
dockerfilePath: ./data-engine/Dockerfile
dockerContext: ./data-engine
plan: starter
healthCheckPath: /health
disk: # the engine's lake/feature store (v1 wrote to /tmp and lost it on every deploy)
name: engine-state
mountPath: /var/lib/meteorium
sizeGB: 5
envVars:
- fromGroup: prexus-shared-secrets
- key: NASA_FIRMS_KEY
sync: false