-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
52 lines (44 loc) · 1.69 KB
/
Copy pathrender.yaml
File metadata and controls
52 lines (44 loc) · 1.69 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
# =============================================================================
# Aletheia — Render Web Service (single Docker container)
#
# Serves everything from one URL:
# /api/v2/* → Axum REST API handlers
# /health → health check
# /ready → readiness check (DB ping)
# /* → React SPA (static files, SPA fallback → index.html)
# =============================================================================
services:
- type: web
name: aletheia
runtime: docker
dockerfilePath: ./Dockerfile
healthCheckPath: /health
envVars:
# Auto-wired from the managed Postgres instance below
- key: DATABASE_URL
fromDatabase:
name: aletheia-db
property: connectionString
- key: PORT
value: "8080"
- key: RUST_LOG
value: "aletheia_server=info,tower_http=warn"
- key: ATTESTATION_STRICT
value: "false"
- key: NONCE_TTL_SECS
value: "172800"
- key: RATE_LIMIT_VERIFY
value: "1000"
# Set the following as secrets in the Render dashboard (do NOT put values here):
# JWT_SECRET — openssl rand -base64 48
# SERVER_SIGNING_KEY — openssl genpkey -algorithm ED25519 | openssl pkey -outform DER | base64 -w 0
# APPLE_APP_ID — TeamID.BundleID (optional, Apple App Attest)
# ANDROID_PACKAGE — com.example.app (optional, Play Integrity)
# POLYGON_RPC_URL — https://polygon-rpc.com (optional, on-chain anchoring)
# POLYGON_SIGNER_KEY — 0x… (optional)
# ANCHOR_CONTRACT_ADDRESS (optional)
databases:
- name: aletheia-db
databaseName: aletheia
user: aletheia
plan: free