[#562] config: parse key on config load

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-06-03 18:24:09 +03:00 committed by Alex Vanin
parent 9142c778c7
commit 2f020a500d
6 changed files with 20 additions and 8 deletions

View file

@ -7,7 +7,7 @@ NEOFS_METRICS_ADDRESS=127.0.0.1:9090
NEOFS_METRICS_SHUTDOWN_TIMEOUT=15s
# Node section
NEOFS_NODE_KEY=path/hex/WIF
NEOFS_NODE_KEY=./wallet.key
NEOFS_NODE_WALLET_PATH=./wallet.json
NEOFS_NODE_WALLET_ADDRESS=NcpJzXcSDrh5CCizf4K9Ro6w4t59J5LKzz
NEOFS_NODE_WALLET_PASSWORD=password

View file

@ -11,7 +11,7 @@
"shutdown_timeout": "15s"
},
"node": {
"key": "path/hex/WIF",
"key": "./wallet.key",
"wallet": {
"path": "./wallet.json",
"address": "NcpJzXcSDrh5CCizf4K9Ro6w4t59J5LKzz",

View file

@ -10,7 +10,7 @@ metrics:
shutdown_timeout: 15s
node:
key: path/hex/WIF
key: ./wallet.key
wallet:
path: "./wallet.json"
address: "NcpJzXcSDrh5CCizf4K9Ro6w4t59J5LKzz"