Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
63 lines (62 loc) · 2.25 KB
/
Copy pathrender.yaml
File metadata and controls
63 lines (62 loc) · 2.25 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
# Render Blueprint for HelPhone Services & Automated Soroban State Exporter
services:
- type: web
name: helphone-backend-server
runtime: node
plan: starter
buildCommand: npm install
startCommand: npm run server
healthCheckPath: /health
autoDeploy: true
envVars:
- key: NODE_VERSION
value: "22"
# Postgres connection. Migrations apply automatically at server startup
# (see server/db/migrator.ts), so the schema always stays in sync.
- key: DATABASE_URL
value: fromEnv
sync: false
- key: SOROBAN_RPC_URL
value: "https://soroban-testnet.stellar.org"
- key: CONTRACT_ID
value: "CC325F37QW7N2F5M3QGHL4A4O7J2K9L0M1N2O3P4Q5R6S7T8U9V0"
# Rate-limit whitelist (#536): verified emergency-service subnets / API keys
# are stored in Redis and managed via /admin/whitelist (see docs/security-runbook.md).
- key: REDIS_URL
sync: false
- key: WHITELIST_ADMIN_TOKEN
sync: false
# Number of proxy hops in front of the app so req.ip is the real client.
- key: TRUST_PROXY
value: "1"
# Automated VACUUM ANALYZE / REINDEX CONCURRENTLY (#538) — opt-in; see docs/database-architecture.md
- key: DB_MAINTENANCE_ENABLED
value: "false"
- key: DB_BLOAT_THRESHOLD_PCT
value: "20"
- key: DB_MAINTENANCE_WINDOW_START_UTC
value: "2"
- key: DB_MAINTENANCE_WINDOW_END_UTC
value: "5"
- key: ALLOWED_ORIGINS
value: "https://helphone.com,https://staging.helphone.com,http://localhost:3000"
# #530: extra connect-src origins beyond the built-in defaults (comma-separated).
- key: CSP_CONNECT_SRC
value: ""
# Set to "true" to roll the policy out in report-only mode first.
- key: CSP_REPORT_ONLY
value: "false"
- type: cron
name: soroban-daily-state-exporter
runtime: node
schedule: "0 0 * * *"
buildCommand: npm install
startCommand: bash scripts/export-contract-state.sh
envVars:
- key: DATABASE_URL
value: fromEnv
sync: false
- key: SOROBAN_RPC_URL
value: "https://soroban-testnet.stellar.org"
- key: CONTRACT_ID
value: "CC325F37QW7N2F5M3QGHL4A4O7J2K9L0M1N2O3P4Q5R6S7T8U9V0"