Skip to content

Commit

Permalink
Config params for the stats page in Blockscout (#9329)
Browse files Browse the repository at this point in the history
### Description

Added env variables that control the Stats page in Blockscout.

### Other changes

No.

### Tested

Tested on Alfajores.

### Backwards compatibility

Yes.
  • Loading branch information
carterqw2 authored and martinvol committed May 13, 2022
1 parent 13906c5 commit ff9d776
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ spec:
value: {{ .Values.blockscout.networkID | quote }}
- name: APPS_MENU
value: {{ .Values.blockscout.web.appsMenu.enabled | quote }}
- name: DISABLE_STATS
value: {{ not .Values.blockscout.web.stats.enabled | quote }}
- name: STATS_REPORT_URL
value: {{ .Values.blockscout.web.stats.reportUrl | quote }}
- name: EXTERNAL_APPS
value: {{ .Values.blockscout.web.appsMenu.externalApps | quote }}
- name: BRIDGES
Expand Down
3 changes: 3 additions & 0 deletions packages/helm-charts/blockscout/values-rc1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ blockscout:
memory: 500Mi
cpu: 1500m
recaptchaSecretName: rc1-blockscout-recaptcha
stats:
enabled: true
reportUrl: https://datastudio.google.com/embed/reporting/e0a253b1-fa37-43d0-bbc3-2706a64f2211/page/hDehC?hl=en
metrics:
enabled: true
3 changes: 3 additions & 0 deletions packages/helm-charts/blockscout/values-rc1staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ blockscout:
memory: 250M
cpu: 500m
recaptchaSecretName: rc1staging-blockscout-recaptcha
stats:
enabled: true
reportUrl: https://datastudio.google.com/embed/reporting/e0a253b1-fa37-43d0-bbc3-2706a64f2211/page/hDehC?hl=en
metrics:
enabled: true
jsonrpc_http_url: http://rc1staging-archivenodes-rpc:8545
Expand Down
3 changes: 3 additions & 0 deletions packages/helm-charts/blockscout/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ blockscout:
resourcesList: '[{"url":"https://docs.celo.org/", "title":"Celo Docs"}, {"url":"https://celoreserve.org/", "title":"Celo Reserve"}, {"url":"https://forum.celo.org/", "title":"Celo Forum"}, {"url":"https://celohub.org/", "title":"Celo Hub"}, {"url":"https://thecelo.com/", "title":"TheCelo"}, {"url":"https://stats.celo.org/", "title":"Celo Stats"}, {"url":"https://celo.org/validators/explore", "title":"Validators"}]'
learningList: '[{"url": "https://celo.org/papers/whitepaper", "title":"Celo Whitepaper"}, {"url": "https://learn.figment.io/protocols/celo", "title":"Learn Celo"}, {"url": "https://celo.org/papers/stability", "title":"Celo Stability Analysis"}, {"url": "https://www.coinbase.com/price/celo", "title":"Coinbase Earn"}]'
recaptchaSecretName: "" # k8s secret that needs to pre-exist
stats:
enabled: false
reportUrl: ""
image:
repository: gcr.io/celo-testnet/blockscout
tag: v2.0.4-beta-celo
Expand Down

0 comments on commit ff9d776

Please sign in to comment.