forked from owlbear-rodeo/owlbear-rodeo-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
58 lines (58 loc) · 1.46 KB
/
render.yaml
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
services:
- type: web
name: Owlbear Rodeo Legacy
runtime: static
buildCommand: yarn build
staticPublishPath: ./build
pullRequestPreviewsEnabled: false
branch: main
buildFilter:
paths:
- src/**/*.js
- src/**/*.ts
ignoredPaths:
- src/**/*.test.js
routes:
- type: rewrite
source: /*
destination: /index.html
headers:
- path: /*
name: X-Frame-Options
value: sameorigin
- path: /*
name: X-Robots-Tag
value: noindex
envVars:
- key: REACT_APP_BROKER_URL
fromService:
type: web
name: "Owlbear Rodeo Backend"
envVarKey: RENDER_EXTERNAL_URL
- key: REACT_APP_MAINTENANCE
value: false
- key: REACT_APP_VERSION
value: "1.10.2"
- key: NODE_VERSION
value: "16.16.0"
# A Docker web service
- type: web
name: Owlbear Rodeo Backend
runtime: docker
region: oregon # optional (defaults to oregon) check other regions here: https://render.com/docs/regions
plan: free
branch: main
rootDir: ./backend
dockerfilePath: ./Dockerfile
numInstances: 1
healthCheckPath: /health
envVars:
- key: ORIGIN_WHITELIST
fromService:
type: web
name: "Owlbear Rodeo Legacy"
envVarKey: RENDER_EXTERNAL_HOSTNAME
- key: PORT
value: 9000
- key: NODE_VERSION
value: "16.16.0"