-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
55 lines (54 loc) · 2.07 KB
/
Copy pathrender.yaml
File metadata and controls
55 lines (54 loc) · 2.07 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
# Render Blueprint for the Vega backend.
#
# Connect this repo to Render via Blueprints (https://render.com/docs/infrastructure-as-code).
# Render reads this file on the connected branch and provisions the
# service. Secrets (VEGA_DATABASE_URL, VEGA_CORS_ORIGINS) are NOT
# committed; they are set once in the Render dashboard, marked
# `sync: false` here so Blueprint reconciliation does not overwrite
# them.
#
# Deploy flow: a push to main triggers a new Render build, which runs
# the Dockerfile under backend/, then promotes the resulting image to
# the live web service. The /health endpoint gates the rollout.
services:
- type: web
name: vega-backend
runtime: docker
repo: https://github.com/MustafaNazeer/Vega
branch: main
rootDir: backend
dockerfilePath: ./Dockerfile
plan: free
region: oregon
healthCheckPath: /health
autoDeploy: true
envVars:
- key: VEGA_ENVIRONMENT
value: production
- key: VEGA_LOG_LEVEL
value: INFO
- key: VEGA_RATE_LIMIT_DEFAULT
value: 60/minute
# Set in the Render dashboard. Comma separated list of allowed
# frontend origins (e.g., the Cloudflare Pages URL).
- key: VEGA_CORS_ORIGINS
sync: false
# Set in the Render dashboard. Postgres DSN from Neon. Use the
# application role (SELECT, INSERT only on calculation_inputs and
# calculation_outputs); the migration role's DSN never goes here
# so a runtime container cannot DDL the schema.
- key: VEGA_DATABASE_URL
sync: false
# Set in the Render dashboard. Auth0 tenant domain (e.g., tenant.us.auth0.com).
- key: VEGA_AUTH0_DOMAIN
sync: false
# Set in the Render dashboard. Auth0 API identifier for this backend.
- key: VEGA_AUTH0_AUDIENCE
sync: false
- key: HOST
value: 0.0.0.0
# Render terminates TLS in front of the container and forwards via
# X-Forwarded-For. Wildcard is acceptable here because uvicorn
# only accepts external traffic via Render's edge.
- key: FORWARDED_ALLOW_IPS
value: "*"