[#396] Rename rpc-endpoint and resolve-order

To make cli params more consistent
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
remotes/KirillovDenis/bugfix/681-fix_acl_parsing
Angira Kekteeva 2022-04-14 22:10:57 +04:00 committed by Alex Vanin
parent 8d9e473804
commit 9f017b2bba
4 changed files with 9 additions and 9 deletions

View File

@ -86,10 +86,10 @@ const ( // Settings.
cfgPeers = "peers" cfgPeers = "peers"
// NeoGo. // NeoGo.
cfgRPCEndpoint = "rpc-endpoint" cfgRPCEndpoint = "rpc_endpoint"
// Resolving. // Resolving.
cfgResolveOrder = "resolve-order" cfgResolveOrder = "resolve_order"
// Application. // Application.
cfgApplicationBuildTime = "app.build_time" cfgApplicationBuildTime = "app.build_time"

View File

@ -35,8 +35,8 @@ S3_GW_CONFIG=/path/to/config/yaml
S3_GW_LOGGER_LEVEL=debug S3_GW_LOGGER_LEVEL=debug
# RPC endpoint and order of resolving of bucket names # RPC endpoint and order of resolving of bucket names
S3_GW_RPC-ENDPOINT=http://morph-chain.neofs.devenv:30333/ S3_GW_RPC_ENDPOINT=http://morph-chain.neofs.devenv:30333/
S3_GW_RESOLVE-ORDER="nns dns" S3_GW_RESOLVE_ORDER="nns dns"
# Metrics # Metrics
S3_GW_METRICS=false S3_GW_METRICS=false

View File

@ -36,8 +36,8 @@ logger:
level: debug level: debug
# RPC endpoint and order of resolving of bucket names # RPC endpoint and order of resolving of bucket names
rpc-endpoint: http://node4.neofs:40332 rpc_endpoint: http://node4.neofs:40332
resolve-order: resolve_order:
- nns - nns
# Metrics # Metrics

View File

@ -63,11 +63,11 @@ $ neofs-s3-gw --listen_address 192.168.130.130:443 \
### RPC endpoint and resolving of bucket names ### RPC endpoint and resolving of bucket names
To set RPC endpoint specify a value of parameter `-r` or `--rpc-endpoint`. The parameter is **required if** another To set RPC endpoint specify a value of parameter `-r` or `--rpc_endpoint`. The parameter is **required if** another
parameter's `--resolve-order` value contains `nns`. parameter's `--resolve_order` value contains `nns`.
```shell ```shell
$ neofs-s3-gw --rpc-endpoint http://morph-chain.neofs.devenv:30333/ --resolve-order nns,dns $ neofs-s3-gw --rpc_endpoint http://morph-chain.neofs.devenv:30333/ --resolve_order nns,dns
``` ```
### Processing of requests ### Processing of requests