Skip to content

Commit 5576317

Browse files
committed
Addresses merge request feedback.
* remove multitenancy from args file and ** Move them to a new config YAML file for multitenancy * auto-provision param remains in args file as it is required to produce the previously known behaviour from before v0.6
1 parent 795ce40 commit 5576317

File tree

3 files changed

+63
-6
lines changed

3 files changed

+63
-6
lines changed

configuration/aries-args-advanced.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,3 @@ debug-connections: true
5757
debug-credentials: true
5858
debug-presentations: true
5959
enable-undelivered-queue: true
60-
multitenant: true
61-
multitenant-admin: true
62-
jwt-secret: "password"

configuration/aries-args-basic.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ wallet-name: !ENV ${WALLET_NAME}
3434
wallet-key: !ENV ${WALLET_KEY}
3535
seed: !ENV ${WALLET_SEED}
3636
auto-provision: true
37-
multitenant: true
38-
multitenant-admin: true
39-
jwt-secret: "password"
37+
4038

4139
## run a local postgres (docker) like:
4240
## docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres:10
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# see: https://pypi.org/project/ConfigArgParse/ for file format overview
2+
# before running aca-py, run the following (the commands are embedded below, next to the related parameters):
3+
# - run a local postgres database
4+
# - run a local instance of von-network
5+
# - register your did (seed) on the network
6+
# run aca-py as:
7+
# ACAPY_WALLET_SEED=my_seed_000000000000000000000000 ACAPY_WALLET_KEY=key ./bin/aca-py start --arg-file ./demo/local-indy-args.yaml
8+
9+
log-level: info
10+
genesis-url: !ENV ${GENESIS_URL}
11+
# Admin insecure mode and api key will come from the following two variables
12+
# which is parsed and used automatically by ACA-Py
13+
# ACAPY_ADMIN_API_KEY
14+
# ACAPY_ADMIN_INSECURE_MODE
15+
admin: [0.0.0.0, !ENV '${ADMIN_PORT}']
16+
label: !ENV ${AGENT_NAME}
17+
# the following is the callback url for your controller
18+
webhook-url: !ENV ${WEBHOOK_URL}
19+
# assumes you are running a local von-network, like:
20+
# cd von-network
21+
# ./manage start <my local ip>
22+
inbound-transport:
23+
- [http, 0.0.0.0, !ENV '${HTTP_PORT}']
24+
# - [ws, 0.0.0.0, !ENV '${HTTP_PORT}']
25+
outbound-transport: http
26+
# the following is the public endpoint advertised by the agent
27+
endpoint: !ENV ${AGENT_ENDPOINT}
28+
auto-ping-connection: true
29+
# register your did using (this example is for von-network):
30+
# curl -d '{"seed":"my_seed_000000000000000000000000", "role":"TRUST_ANCHOR", "alias":"My Agent"}' -X POST http://localhost:9000/register
31+
# note that the env var name is configured in argparse.py
32+
# seed = comes from ACAPY_WALLET_SEED
33+
wallet-type: !ENV ${WALLET_TYPE}
34+
wallet-name: !ENV ${WALLET_NAME}
35+
wallet-key: !ENV ${WALLET_KEY}
36+
seed: !ENV ${WALLET_SEED}
37+
38+
## run a local postgres (docker) like:
39+
## docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres:10
40+
#wallet-storage-type: postgres_storage
41+
## could be sent using env var ACAPY_WALLET_STORAGE_CONFIG
42+
#wallet-storage-config: '{"url":"localhost:5432","max_connections":5}'
43+
## could be sent using env var ACAPY_WALLET_STORAGE_CREDS
44+
#wallet-storage-creds: '{"account":"postgres","password":"mysecretpassword","admin_account":"postgres","admin_password":"mysecretpassword"}'
45+
46+
47+
auto-accept-requests: true
48+
auto-provision: true
49+
auto-respond-credential-proposal: true
50+
auto-respond-credential-offer: true
51+
auto-respond-credential-request: true
52+
auto-store-credential: true
53+
auto-respond-presentation-proposal: true
54+
auto-respond-presentation-request: true
55+
preserve-exchange-records: true
56+
debug-connections: true
57+
debug-credentials: true
58+
debug-presentations: true
59+
enable-undelivered-queue: true
60+
multitenant: true
61+
multitenant-admin: true
62+
jwt-secret: "password"

0 commit comments

Comments
 (0)