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"
|
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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue