mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-07-25 05:55:46 +00:00
pass the feed URL via env var rather than config map so that standalone Docker usage is simplified
This commit is contained in:
@@ -59,19 +59,12 @@ spec:
|
||||
mountPath: /etc/nginx/nginx.conf
|
||||
subPath: nginx.conf
|
||||
readOnly: true
|
||||
- name: env-config
|
||||
mountPath: /usr/share/nginx/html/env-config.js
|
||||
subPath: env-config.js
|
||||
readOnly: true
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumes:
|
||||
- name: nginx
|
||||
configMap:
|
||||
name: frontend-nginx
|
||||
- name: env-config
|
||||
configMap:
|
||||
name: frontend-env-config
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: frontend-env-config
|
||||
data:
|
||||
env-config.js: |
|
||||
window.process_env = {
|
||||
SUBSTRATE_TELEMETRY_URL: "wss://feed.telemetry.parity-stg.parity.io/feed",
|
||||
SUBSTRATE_TELEMETRY_SAMPLE: "",
|
||||
}
|
||||
+4
-1
@@ -26,7 +26,10 @@ fullnameOverride: ""
|
||||
envVars:
|
||||
shard: {}
|
||||
core: {}
|
||||
frontend: {}
|
||||
frontend:
|
||||
# The frontend docker container makes this available to the UI,
|
||||
# so that it knows where to look for feed information:
|
||||
SUBSTRATE_TELEMETRY_URL: wss://feed.telemetry.parity-stg.parity.io/feed
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user