From cce3b79ca02d15ebe663e48186116fc4f909c9e9 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Fri, 25 Jun 2021 12:54:01 +0300 Subject: [PATCH] [#107] Updated wallet using docs Signed-off-by: Denis Kirillov --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c538354a1..1bb56149a 100644 --- a/README.md +++ b/README.md @@ -32,24 +32,24 @@ Minimalistic S3 gateway setup needs: Passed via `-p` parameter or via `S3_GW_PEERS__ADDRESS` and `S3_GW_PEERS__WEIGHT` environment variables (gateway supports multiple NeoFS nodes with weighted load balancing). - * a key used to communicate with NeoFS nodes - Passed via `--neofs-key` parameter or `S3_GW_NEOFS-KEY` environment variable. + * a wallet used to fetch key and communicate with NeoFS nodes + Passed via `--wallet` parameter or `S3_GW_WALLET` environment variable. These two commands are functionally equivalent, they run the gate with one backend node, some keys and otherwise default settings: ``` -$ neofs-s3-gw -p 192.168.130.72:8080 --neofs-key KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr +$ neofs-s3-gw -p 192.168.130.72:8080 --wallet wallet.json $ S3_GW_PEERS_0_ADDRESS=192.168.130.72:8080 \ - S3_GW_NEOFS-KEY=KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr \ + S3_GW_WALLET=wallet.json \ neofs-s3-gw ``` It's also possible to specify uri scheme (grpc or grpcs) when using `-p` or environment variables: ``` -$ neofs-s3-gw -p grpc://192.168.130.72:8080 --neofs-key KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr +$ neofs-s3-gw -p grpc://192.168.130.72:8080 --wallet wallet.json $ S3_GW_PEERS_0_ADDRESS=grpcs://192.168.130.72:8080 \ - S3_GW_NEOFS-KEY=KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr \ + S3_GW_WALLET=wallet.json \ neofs-s3-gw ``` @@ -79,8 +79,9 @@ This command will make gateway use 192.168.130.72 for 90% of requests and ### Key -NeoFS (`--neofs-key`) is mandatory parameter. NeoFS key can be a path to private key file (as raw bytes), -a hex string or (unencrypted) WIF string. +Wallet (`--wallet`) is mandatory parameter. It is a path to wallet file. You can provide password to decrypt wallet +via `S3_GW_WALLET_PASSPHRASE` variable or you will be asked to enter the password interactively. +You also can specify account address to use from wallet using `--address` parameter. ### Binding and TLS