-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
57 lines (55 loc) · 1.36 KB
/
render.yaml
File metadata and controls
57 lines (55 loc) · 1.36 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
# Render Blueprint - CodeContext
# https://render.com/docs/blueprint-spec
services:
# Backend API
- type: web
name: codecontext-api
runtime: node
plan: free
region: oregon
rootDir: server
buildCommand: npm install && npm run build
startCommand: npm start
healthCheckPath: /health
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 5000
- key: CLIENT_URL
value: https://codecontext.tech
- key: GITHUB_CALLBACK_URL
value: https://api.codecontext.tech/api/auth/github/callback
- key: SUPABASE_URL
sync: false
- key: SUPABASE_ANON_KEY
sync: false
- key: GITHUB_CLIENT_ID
sync: false
- key: GITHUB_CLIENT_SECRET
sync: false
- key: NVIDIA_API_KEY
sync: false
- key: JWT_SECRET
generateValue: true
# Frontend Static Site
- type: web
name: codecontext-web
runtime: static
rootDir: client
buildCommand: npm install && npm run build
staticPublishPath: dist
headers:
- path: /*
name: X-Frame-Options
value: DENY
- path: /*
name: X-Content-Type-Options
value: nosniff
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: VITE_API_URL
value: https://api.codecontext.tech/api