Skip to content

Commit

Permalink
[digital ocean] Fixed swap indexer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Sep 26, 2024
1 parent b1633d2 commit 942bf87
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
22 changes: 14 additions & 8 deletions kube/indexer/swap/swap-stat-main-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,37 @@ spec:
value: "0"
- name: BULK_SIZE
value: "100"
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch-pw-elastic
key: password
- name: STARCOIN_ES_URL
value: "elasticsearch.default.svc.cluster.local"
- name: STARCOIN_ES_PROTOCOL
value: "http"
- name: STARCOIN_ES_PORT
value: "9200"
- name: STARCOIN_ES_USER
value: elastic
valueFrom:
secretKeyRef:
name: elasticsearch
key: username
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch
key: password
- name: SWAP_API_URL
value: "https://swap-api.starswap.xyz"
- name: SWAP_CONTRACT_ADDR
value: "0x8c109349c6bd91411d6bc962e080c4a3"
- name: DS_URL
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin"
- name: DB_USER_NAME
value: "starcoin"
valueFrom:
secretKeyRef:
name: postgresql
key: username
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
name: postgresql
key: password
- name: DB_SCHEMA
value: "main"
Expand Down
7 changes: 5 additions & 2 deletions kube/indexer/swap/swap-txns-main-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,14 @@ spec:
- name: DS_URL
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin"
- name: DB_USER_NAME
value: "starcoin"
valueFrom:
secretKeyRef:
name: postgresql
key: username
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
name: postgresql
key: password
- name: DB_SCHEMA
value: "main"
Expand Down

0 comments on commit 942bf87

Please sign in to comment.