-
Notifications
You must be signed in to change notification settings - Fork 7
/
render.yaml
88 lines (84 loc) · 2.11 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
services:
# Entropy Frontend - Production
- type: web
name: legendary-octo-chainsaw
env: static
repo: https://github.com/meatflavourdev/legendary-octo-chainsaw.git
branch: main
healthCheckPath: /healthz
buildCommand: yarn && yarn build
staticPublishPath: ./build
pullRequestPreviewsEnabled: true
autoDeploy: true
routes:
- type: rewrite
source: /*
destination: /index.html
domains:
- entropy.meatflavour.dev
envVars:
- fromGroup: frontend-production
# Entropy Frontend - Development
- type: web
name: ontological-binary-chainsaw
env: static
repo: https://github.com/meatflavourdev/legendary-octo-chainsaw.git
branch: dev
healthCheckPath: /healthz
buildCommand: yarn && yarn build
staticPublishPath: ./build
pullRequestPreviewsEnabled: true
autoDeploy: true
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- fromGroup: frontend-development
# Yjs Backend - Production
- type: web
name: yjs
env: node
repo: https://github.com/meatflavourdev/yjs-server.git
region: oregon
plan: starter
healthCheckPath: /
numInstances: 1
buildCommand: yarn
startCommand: node ./bin/server.js
pullRequestPreviewsEnabled: false
autoDeploy: true
disk:
name: data-leveldb
mountPath: /var/data
sizeGB: 5
envVars:
- fromGroup: yjs-production
# ----- Environment Variable Groups -----
envVarGroups:
- name: frontend-production
envVars:
- key: REACT_APP_WSHOST
value: yjs.onrender.com
- key: REACT_APP_WSPORT
value: 80
- key: REACT_APP_WSPROTOCOL
value: wss
- name: frontend-development
envVars:
- key: REACT_APP_WSHOST
value: yjs.onrender.com
- key: REACT_APP_WSPORT
value: 80
- key: REACT_APP_WSPROTOCOL
value: wss
- name: yjs-production
envVars:
- key: GC
value: false
- key: HOST
value: 0.0.0.0
- key: PORT
value: 80
- key: YPERSISTENCE
value: /var/data/leveldb