-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
66 lines (64 loc) · 3.02 KB
/
Copy pathrender.yaml
File metadata and controls
66 lines (64 loc) · 3.02 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
services:
# ==========================================
# RECURRA BACKEND API (Web Service)
# ==========================================
- type: web
name: recurra-backend
env: node
region: oregon
plan: free # ⚠ Free tier: 50-second cold starts. Upgrade to 'starter' ($7/mo) to eliminate.
# When upgrading: also set KEEPALIVE_ENABLED=false to disable the ping workaround.
buildCommand: "cd frontend && npm install --include=dev && npm run build && cd ../backend && npm install --include=dev && npm run build"
startCommand: "cd backend && npm start"
envVars:
- key: NODE_ENV
value: production
- key: APP_PORT
value: "3001"
- key: DATABASE_URL
sync: false # You will need to paste your Supabase Postgres URL here in the Render Dashboard
- key: REDIS_URL
fromService:
type: redis
name: recurra-redis
property: connectionString
- key: JWT_SECRET
generateValue: true # Render will automatically generate a secure 64-char secret
- key: KEEPER_CRON_SCHEDULE
value: "*/15 * * * *" # Run keeper every 15 minutes (or as desired)
# --- Stellar Config ---
- key: STELLAR_NETWORK
value: "mainnet"
- key: STELLAR_RPC_URL
value: "https://soroban-rpc.mainnet.stellar.gateway.fm"
- key: STELLAR_HORIZON_URL
value: "https://horizon.stellar.org"
- key: STELLAR_NETWORK_PASSPHRASE
value: "Public Global Stellar Network ; September 2015"
- key: CORS_ALLOWED_ORIGINS
value: "http://localhost:3000,http://localhost:5173,https://recurra-omega.vercel.app"
# --- Keepalive (prevents free-tier cold starts by pinging /health every 14 min) ---
- key: KEEPALIVE_ENABLED
value: "true" # Set to 'false' when upgrading to Render Starter plan
- key: RENDER_EXTERNAL_URL
sync: false # Paste your Render service URL here (e.g., https://recurra-backend.onrender.com)
# --- Keeper config ---
- key: KEEPER_BATCH_SIZE
value: "500" # Number of subscriptions processed in parallel per keeper run
- key: MAINNET_GATE_TEST
value: "false" # Set to 'true' during the 500-tx testnet gate test
# --- Recurra Treasury (receives 0.5% protocol fee from every payment) ---
- key: RECURRA_TREASURY_PUBLIC_KEY
value: "GDQVRBAWJ62PYHEDJCZOQFCWJQXPHM5SPEFXGO6IHODONRNOZM27LEBJ"
# IMPORTANT: Store the SECRET key securely — NEVER commit it to git.
# Treasury keypair was generated 2026-06-03. Fund on testnet via friendbot first.
- key: RECURRA_TREASURY_SECRET_KEY
sync: false # Paste the secret key in Render Dashboard (never in code)
# ==========================================
# RECURRA REDIS (Cache & Job Queue)
# ==========================================
- type: redis
name: recurra-redis
region: oregon
plan: free # Change to a paid plan for persistence in production
ipAllowList: [] # Blank array allows internal connections from Render web services