diff --git a/cmd/s3-gw/app_settings.go b/cmd/s3-gw/app_settings.go index 178e2dd..ed6cdf6 100644 --- a/cmd/s3-gw/app_settings.go +++ b/cmd/s3-gw/app_settings.go @@ -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" diff --git a/config/config.env b/config/config.env index ea382a4..87f04b4 100644 --- a/config/config.env +++ b/config/config.env @@ -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 diff --git a/config/config.yaml b/config/config.yaml index 2df7697..b697c3a 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -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 diff --git a/docs/configuration.md b/docs/configuration.md index 9692b48..6f0d481 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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