diff --git a/README.md b/README.md index 7b63d14..0a9831b 100644 --- a/README.md +++ b/README.md @@ -24,21 +24,31 @@ You can download files from NeoFS Network using NeoFS Gate. # Environments: -GW_KEY=stirng - "generated" to generate key, path to private key file, hex string or wif (default "generated") -GW_REQUEST_TIMEOUT=Duration - timeout for request -GW_CONNECT_TIMEOUT=Duration - timeout for connection -GW_LISTEN_ADDRESS=host:port - address to listen connections -GW_PEERS__ADDRESS=host:port - address of NeoFS Node -GW_PEERS__WEIGHT=float - weight of NeoFS Node -GW_PPROF=bool - enable/disable pprof (/debug/pprof) -GW_METRICS=bool - enable/disable prometheus metrics endpoint (/metrics) -GW_KEEPALIVE_TIME=Duration - аfter a duration of this time if the client doesn't see any activity +HTTP_GW_KEY=string - "generated" to generate key, path to private key file, hex string or wif (default "generated") +HTTP_GW_CONNECT_TIMEOUT=Duration - timeout for connection +HTTP_GW_REQUEST_TIMEOUT=Duration - timeout for request +HTTP_GW_REBALANCE_TIMER=Duration - time between connections checks +HTTP_GW_LISTEN_ADDRESS=host:port - address to listen connections +HTTP_GW_PEERS__ADDRESS=host:port - address of NeoFS Node +HTTP_GW_PEERS__WEIGHT=float - weight of NeoFS Node +HTTP_GW_PPROF=bool - enable/disable pprof (/debug/pprof) +HTTP_GW_METRICS=bool - enable/disable prometheus metrics endpoint (/metrics) +HTTP_GW_LOGGER_FORMAT=string - logger format +HTTP_GW_LOGGER_LEVEL=string - logger level +HTTP_GW_LOGGER_NO_CALLER=bool - logger don't show caller +HTTP_GW_LOGGER_NO_DISCLAIMER=bool - logger don't show application name/version +HTTP_GW_LOGGER_SAMPLING_INITIAL=int - logger sampling initial +HTTP_GW_LOGGER_SAMPLING_THEREAFTER=int - logger sampling thereafter +HTTP_GW_LOGGER_TRACE_LEVEL=string - logger show trace on level +HTTP_GW_KEEPALIVE_TIME=Duration - аfter a duration of this time if the client doesn't see any activity it pings the server to see if the transport is still alive. -GW_KEEPALIVE_TIMEOUT=Duration - after having pinged for keepalive check, the client waits for a duration +HTTP_GW_KEEPALIVE_TIMEOUT=Duration - after having pinged for keepalive check, the client waits for a duration of Timeout and if no activity is seen even after that the connection is closed -GW_KEEPALIVE_PERMIT_WITHOUT_STREAM=Bool - if true, client sends keepalive pings even with no active RPCs. +HTTP_GW_KEEPALIVE_PERMIT_WITHOUT_STREAM=Bool - if true, client sends keepalive pings even with no active RPCs. If false, when there are no active RPCs, Time and Timeout will be ignored and no keepalive pings will be sent. -``` -### WARNING -`generated` value for `GW_KEY` or `--key` is deprecated, you should use pre-generated keys. \ No newline at end of file +Peers preset: + +HTTP_GW_PEERS_[N]_ADDRESS = string +HTTP_GW_PEERS_[N]_WEIGHT = 0..1 (float) +``` \ No newline at end of file diff --git a/settings.go b/settings.go index a62ccd3..c781056 100644 --- a/settings.go +++ b/settings.go @@ -41,8 +41,8 @@ const ( cfgWebConnectionPerHost = "web.connection_per_host" // Timeouts - cfgConTimeout = "con_timeout" - cfgReqTimeout = "req_timeout" + cfgConTimeout = "connect_timeout" + cfgReqTimeout = "request_timeout" cfgRebalance = "rebalance_timer" // Logger: