forked from TrueCloudLab/frostfs-s3-gw
[#396] Rename rpc-endpoint and resolve-order
To make cli params more consistent Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
8d9e473804
commit
9f017b2bba
4 changed files with 9 additions and 9 deletions
|
@ -86,10 +86,10 @@ const ( // Settings.
|
|||
cfgPeers = "peers"
|
||||
|
||||
// NeoGo.
|
||||
cfgRPCEndpoint = "rpc-endpoint"
|
||||
cfgRPCEndpoint = "rpc_endpoint"
|
||||
|
||||
// Resolving.
|
||||
cfgResolveOrder = "resolve-order"
|
||||
cfgResolveOrder = "resolve_order"
|
||||
|
||||
// Application.
|
||||
cfgApplicationBuildTime = "app.build_time"
|
||||
|
|
|
@ -35,8 +35,8 @@ S3_GW_CONFIG=/path/to/config/yaml
|
|||
S3_GW_LOGGER_LEVEL=debug
|
||||
|
||||
# RPC endpoint and order of resolving of bucket names
|
||||
S3_GW_RPC-ENDPOINT=http://morph-chain.neofs.devenv:30333/
|
||||
S3_GW_RESOLVE-ORDER="nns dns"
|
||||
S3_GW_RPC_ENDPOINT=http://morph-chain.neofs.devenv:30333/
|
||||
S3_GW_RESOLVE_ORDER="nns dns"
|
||||
|
||||
# Metrics
|
||||
S3_GW_METRICS=false
|
||||
|
|
|
@ -36,8 +36,8 @@ logger:
|
|||
level: debug
|
||||
|
||||
# RPC endpoint and order of resolving of bucket names
|
||||
rpc-endpoint: http://node4.neofs:40332
|
||||
resolve-order:
|
||||
rpc_endpoint: http://node4.neofs:40332
|
||||
resolve_order:
|
||||
- nns
|
||||
|
||||
# Metrics
|
||||
|
|
|
@ -63,11 +63,11 @@ $ neofs-s3-gw --listen_address 192.168.130.130:443 \
|
|||
|
||||
### 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
|
||||
parameter's `--resolve-order` value contains `nns`.
|
||||
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`.
|
||||
|
||||
```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
|
||||
|
|
Loading…
Reference in a new issue