forked from near/near-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
248 lines (233 loc) · 8.55 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
previewsEnabled: true
services:
## Explorer frontend
- type: web
name: frontend
env: node
plan: starter plus
scaling:
minInstances: 1
maxInstances: 4
targetMemoryPercent: 85
targetCPUPercent: 85
repo: https://github.com/near/near-explorer.git
buildCommand: npm clean-install && npm run -w frontend build
startCommand: npm run -w frontend start
healthCheckPath: /api/ping
envVars:
- key: NEAR_EXPLORER_CONFIG__BACKEND__HOSTS__MAINNET
fromService:
type: web
name: backend/mainnet
envVarKey: RENDER_EXTERNAL_HOSTNAME
- key: NEAR_EXPLORER_CONFIG__BACKEND_SSR__HOSTS__MAINNET
fromService:
type: web
name: backend/mainnet
property: host
- key: NEAR_EXPLORER_CONFIG__BACKEND__HOSTS__TESTNET
fromService:
type: web
name: backend/testnet
envVarKey: RENDER_EXTERNAL_HOSTNAME
- key: NEAR_EXPLORER_CONFIG__BACKEND_SSR__HOSTS__TESTNET
fromService:
type: web
name: backend/testnet
property: host
- key: NEAR_EXPLORER_CONFIG__BACKEND__HOSTS__SHARDNET
fromService:
type: web
name: backend/shardnet
envVarKey: RENDER_EXTERNAL_HOSTNAME
- key: NEAR_EXPLORER_CONFIG__BACKEND_SSR__HOSTS__SHARDNET
fromService:
type: web
name: backend/shardnet
property: host
- key: NEAR_EXPLORER_CONFIG__BACKEND__HOSTS__GUILDNET
fromService:
type: web
name: backend/guildnet
envVarKey: RENDER_EXTERNAL_HOSTNAME
- key: NEAR_EXPLORER_CONFIG__BACKEND_SSR__HOSTS__GUILDNET
fromService:
type: web
name: backend/guildnet
property: host
- fromGroup: frontend
- key: NEAR_EXPLORER_CONFIG__GOOGLE_ANALYTICS
value: UA-100373569-14
- key: NEAR_EXPLORER_CONFIG__SEGMENT_WRITE_KEY
value: HyPKyainIhsaHvjkOGTIxn3x8JBDpEmy
- key: NEAR_EXPLORER_CONFIG__NETWORKS
value: |
{
"mainnet": {
"explorerLink": "https://explorer.near.org/",
"aliases": ["explorer.near.org", "explorer.mainnet.near.org", "explorer.nearprotocol.com", "explorer.mainnet.nearprotocol.com"],
"nearWalletProfilePrefix": "https://wallet.near.org/profile"
},
"testnet": {
"explorerLink": "https://explorer.testnet.near.org/",
"aliases": ["explorer.testnet.near.org", "explorer.testnet.nearprotocol.com"],
"nearWalletProfilePrefix": "https://wallet.testnet.near.org/profile"
},
"shardnet": {
"explorerLink": "https://explorer.shardnet.near.org/",
"offline": true,
"aliases": ["explorer.shardnet.near.org"],
"nearWalletProfilePrefix": "https://wallet.shardnet.near.org/profile"
},
"guildnet": {
"explorerLink": "https://explorer.guildnet.near.org/",
"offline": true,
"aliases": ["explorer.guildnet.near.org"],
"nearWalletProfilePrefix": "https://wallet.openshards.io/profile"
}
}
## Explorer backend [mainnet]
- type: web
name: backend/mainnet
env: node
plan: starter plus
scaling:
minInstances: 1
maxInstances: 4
targetMemoryPercent: 85
targetCPUPercent: 85
repo: https://github.com/near/near-explorer.git
buildCommand: npm clean-install && npm run -w backend build
startCommand: npm run -w backend start
healthCheckPath: /ping
envVars:
- fromGroup: backend
- fromGroup: backend/mainnet
- fromGroup: backend/mainnet/secret
## Explorer backend [testnet]
- type: web
name: backend/testnet
env: node
repo: https://github.com/near/near-explorer.git
buildCommand: npm clean-install && npm run -w backend build
startCommand: npm run -w backend start
healthCheckPath: /ping
envVars:
- fromGroup: backend
- fromGroup: backend/testnet
- fromGroup: backend/testnet/secret
## Explorer backend [shardnet]
- type: web
name: backend/shardnet
env: node
repo: https://github.com/near/near-explorer.git
buildCommand: npm clean-install && npm run -w backend build
startCommand: npm run -w backend start
healthCheckPath: /ping
envVars:
- fromGroup: backend
- fromGroup: backend/shardnet
- fromGroup: backend/shardnet/secret
## Explorer backend [guildnet]
- type: web
name: backend/guildnet
env: node
repo: https://github.com/near/near-explorer.git
buildCommand: npm clean-install && npm run -w backend build
startCommand: npm run -w backend start
healthCheckPath: /ping
envVars:
- fromGroup: backend
- fromGroup: backend/guildnet
- fromGroup: backend/guildnet/secret
envVarGroups:
- name: frontend
envVars:
- key: NEAR_EXPLORER_CONFIG__BACKEND_SSR__PORT
value: 10000
- key: NEAR_EXPLORER_CONFIG__BACKEND__PORT
value: 443
- key: NEAR_EXPLORER_CONFIG__BACKEND_SSR__SECURE
value: false
- key: NEAR_EXPLORER_CONFIG__BACKEND__SECURE
value: true
- name: backend
envVars:
- key: NEAR_EXPLORER_CONFIG__PORT
value: 10000
- name: backend/mainnet
envVars:
- key: NEAR_EXPLORER_CONFIG__NETWORK_NAME
value: mainnet
- key: NEAR_EXPLORER_CONFIG__ARCHIVAL_RPC_URL
value: https://archive-internal-rpc.mainnet.near.org/
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__HOST
value: 34.78.19.198
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__DATABASE
value: indexer_analytics_mainnet
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__USER
value: public_readonly
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__PASSWORD
value: nearprotocol
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_TELEMETRY__HOST
value: 34.78.19.198
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_TELEMETRY__DATABASE
value: telemetry_mainnet
- name: backend/testnet
envVars:
- key: NEAR_EXPLORER_CONFIG__NETWORK_NAME
value: testnet
- key: NEAR_EXPLORER_CONFIG__ARCHIVAL_RPC_URL
value: https://archive-internal-rpc.testnet.near.org/
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__HOST
value: 35.241.197.241
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__DATABASE
value: indexer_analytics_testnet
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__USER
value: public_readonly
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__PASSWORD
value: nearprotocol
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_TELEMETRY__HOST
value: 35.241.197.241
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_TELEMETRY__DATABASE
value: telemetry_testnet
- name: backend/shardnet
envVars:
- key: NEAR_EXPLORER_CONFIG__NETWORK_NAME
value: shardnet
- key: NEAR_EXPLORER_CONFIG__ARCHIVAL_RPC_URL
value: http://34.147.104.174:3030/
- key: NEAR_EXPLORER_CONFIG__OFFLINE
value: true
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_TELEMETRY__HOST
value: 34.150.152.210
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_TELEMETRY__DATABASE
value: telemetry_shardnet
- name: backend/guildnet
envVars:
- key: NEAR_EXPLORER_CONFIG__NETWORK_NAME
value: guildnet
- key: NEAR_EXPLORER_CONFIG__ARCHIVAL_RPC_URL
value: https://rpc.openshards.io
- key: NEAR_EXPLORER_CONFIG__OFFLINE
value: true
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_INDEXER__HOST
value: 159.89.46.95
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_INDEXER__DATABASE
value: guildnet_explorer
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_INDEXER__USER
value: public_readonly
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_INDEXER__PASSWORD
value: nearprotocol
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__HOST
value: 35.205.19.192
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__DATABASE
value: indexer_analytics_guildnet
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__USER
value: public_readonly
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_ANALYTICS__PASSWORD
value: nearprotocol
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_TELEMETRY__HOST
value: 35.205.19.192
- key: NEAR_EXPLORER_CONFIG__DB__READ_ONLY_TELEMETRY__DATABASE
value: telemetry_guildnet