This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathrender.yaml
147 lines (138 loc) · 4.95 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
services:
## Explorer frontend
- type: web
name: frontend
env: node
plan: standard
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
- 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__GLEAP_KEY
value: CSjNAbQnKXhYOtqLjCTVH4wx11y3muUX
- 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"
}
}
## Explorer backend [mainnet]
- type: web
name: backend/mainnet
env: node
plan: standard
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
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