Skip to content

Commit

Permalink
Use environment variables for configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Emiliano Suñé <[email protected]>
  • Loading branch information
esune committed Oct 1, 2024
1 parent 4e4fc81 commit c671c9d
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ ACAPY_ENDORSER_ALIAS=Endorser
ACAPY_AUTO_REQUEST_ENDORSEMENT=true
ACAPY_AUTO_WRITE_TRANSACTIONS=true
ACAPY_CREATE_REVOCATION_TRANSACTIONS=true
ACAPY_PLUGIN=
ACAPY_PLUGIN_CONFIG=
ACAPY_WALLET_TYPE=askar
ACAPY_WALLET_STORAGE_TYPE=postgres_storage
WALLET_HOST=wallet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ ACAPY_AUTO_WRITE_TRANSACTIONS=true
ACAPY_CREATE_REVOCATION_TRANSACTIONS=true
ACAPY_WALLET_TYPE=askar
ACAPY_WALLET_STORAGE_TYPE=postgres_storage
ACAPY_PLUGIN=
ACAPY_PLUGIN_CONFIG=
WALLET_HOST=wallet
WALLET_HOST_PORT=5432
WALLET_STORAGE_CONFIG={\"url\":\"${POSTGRESQL_WALLET_HOST}:${POSTGRESQL_WALLET_PORT}\",\"max_connections\":5}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ ACAPY_ENDORSER_ALIAS=Endorser
ACAPY_AUTO_REQUEST_ENDORSEMENT=true
ACAPY_AUTO_WRITE_TRANSACTIONS=true
ACAPY_CREATE_REVOCATION_TRANSACTIONS=true
ACAPY_PLUGIN=
ACAPY_PLUGIN_CONFIG=
ACAPY_WALLET_TYPE=askar
ACAPY_WALLET_STORAGE_TYPE=postgres_storage
WALLET_HOST=wallet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ ACAPY_GENESIS_TRANSACTIONS_LIST=ledgers-candy.yaml
# ACAPY_AUTO_REQUEST_ENDORSEMENT=true
# ACAPY_AUTO_WRITE_TRANSACTIONS=true
# ACAPY_CREATE_REVOCATION_TRANSACTIONS=true
ACAPY_PLUGIN=rpc.v1_0
# ACAPY_PLUGIN_CONFIG=
# ACAPY_WALLET_TYPE=askar
# ACAPY_WALLET_STORAGE_TYPE=postgres_storage
# WALLET_HOST=wallet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ ACAPY_ENDORSER_ALIAS=Endorser
ACAPY_AUTO_REQUEST_ENDORSEMENT=true
ACAPY_AUTO_WRITE_TRANSACTIONS=true
ACAPY_CREATE_REVOCATION_TRANSACTIONS=true
ACAPY_PLUGIN=
ACAPY_PLUGIN_CONFIG=
ACAPY_WALLET_TYPE=askar
ACAPY_WALLET_STORAGE_TYPE=postgres_storage
WALLET_HOST=wallet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ ACAPY_GENESIS_TRANSACTIONS_LIST=ledgers-candy.yaml
# ACAPY_AUTO_REQUEST_ENDORSEMENT=true
# ACAPY_AUTO_WRITE_TRANSACTIONS=true
# ACAPY_CREATE_REVOCATION_TRANSACTIONS=true
ACAPY_PLUGIN=
# ACAPY_PLUGIN_CONFIG=
# ACAPY_WALLET_TYPE=askar
# ACAPY_WALLET_STORAGE_TYPE=postgres_storage
# WALLET_HOST=wallet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ ACAPY_GENESIS_TRANSACTIONS_LIST=ledgers-candy.yaml
# ACAPY_AUTO_REQUEST_ENDORSEMENT=true
# ACAPY_AUTO_WRITE_TRANSACTIONS=true
# ACAPY_CREATE_REVOCATION_TRANSACTIONS=true
ACAPY_PLUGIN=
# ACAPY_PLUGIN_CONFIG=
# ACAPY_WALLET_TYPE=askar
# ACAPY_WALLET_STORAGE_TYPE=postgres_storage
# WALLET_HOST=wallet
Expand Down
22 changes: 20 additions & 2 deletions openshift/templates/issuer-agent/issuer-agent-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ objects:
--wallet-storage-creds "$(eval echo \"${WALLET_STORAGE_CREDENTIALS}\")"
--seed "${INDY_WALLET_SEED}"
--admin '0.0.0.0' ${ADMIN_INTERFACE_PORT}
$([ ! -z "${AGENT_ADMIN_API_KEY}" ] && echo "--admin-api-key ${AGENT_ADMIN_API_KEY}" || echo "--admin-insecure-mode")
--plugin rpc.v1_0);
$([ ! -z "${AGENT_ADMIN_API_KEY}" ] && echo "--admin-api-key ${AGENT_ADMIN_API_KEY}" || echo "--admin-insecure-mode"));
env:
- name: ACAPY_LABEL
value: ${ACAPY_LABEL}
Expand Down Expand Up @@ -337,6 +336,11 @@ objects:
value: ${ACAPY_AUTO_WRITE_TRANSACTIONS}
- name: ACAPY_CREATE_REVOCATION_TRANSACTIONS
value: ${ACAPY_CREATE_REVOCATION_TRANSACTIONS}

- name: ACAPY_PLUGIN
value: ${ACAPY_PLUGIN}
- name: ACAPY_PLUGIN_CONFIG
value: ${ACAPY_PLUGIN_CONFIG}

- name: AGENT_WALLET_NAME
value: ${NAME}${SUFFIX}-wallet
Expand Down Expand Up @@ -719,6 +723,20 @@ parameters:
value: 'false'
# ===============================================================================

# ===============================================================================
# Plugin Configuration
#--------------------------------------------------------------------------------
- name: ACAPY_PLUGIN
displayName: Plugin list
description: Plugin list
required: false
value:
- name: ACAPY_PLUGIN_CONFIG
displayName: Plugin configuration file
description: Plugin configuration file
required: false
value:

# ===============================================================================
# Wallet Configuration
#--------------------------------------------------------------------------------
Expand Down

0 comments on commit c671c9d

Please sign in to comment.