forked from TrueCloudLab/frostfs-http-gw
d81587f304
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
85 lines
2.9 KiB
Bash
85 lines
2.9 KiB
Bash
# Wallet section.
|
|
|
|
# Path to wallet.
|
|
HTTP_GW_WALLET_PATH=/path/to/wallet.json
|
|
# Account address. If omitted default one will be used.
|
|
HTTP_GW_WALLET_ADDRESS=NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP
|
|
# Passphrase to decrypt wallet. If you're using a wallet without a password, place '' here.
|
|
HTTP_GW_WALLET_PASSPHRASE=pwd
|
|
|
|
# Enable metrics.
|
|
HTTP_GW_METRICS=true
|
|
# Enable pprof.
|
|
HTTP_GW_PPROF=true
|
|
# Log level.
|
|
HTTP_GW_LOGGER_LEVEL=debug
|
|
|
|
# Address to bind.
|
|
HTTP_GW_LISTEN_ADDRESS=0.0.0.0:443
|
|
# Provide cert to enable TLS.
|
|
HTTP_GW_TLS_CERTIFICATE=/path/to/tls/cert
|
|
# Provide key to enable TLS.
|
|
HTTP_GW_TLS_KEY=/path/to/tls/key
|
|
|
|
# Nodes configuration.
|
|
# This configuration make the gateway use the first node (grpc://s01.neofs.devenv:8080)
|
|
# while it's healthy. Otherwise, the gateway use the second node (grpc://s01.neofs.devenv:8080)
|
|
# for 10% of requests and the third node for 90% of requests.
|
|
|
|
# Peer 1.
|
|
# Endpoint.
|
|
HTTP_GW_PEERS_0_ADDRESS=grpc://s01.neofs.devenv:8080
|
|
# Until nodes with the same priority level are healthy
|
|
# nodes with other priority are not used.
|
|
# The lower the value, the higher the priority.
|
|
HTTP_GW_PEERS_0_PRIORITY=1
|
|
# Load distribution proportion for nodes with the same priority.
|
|
HTTP_GW_PEERS_0_WEIGHT=1
|
|
# Peer 2.
|
|
HTTP_GW_PEERS_1_ADDRESS=grpc://s02.neofs.devenv:8080
|
|
HTTP_GW_PEERS_1_PRIORITY=2
|
|
HTTP_GW_PEERS_1_WEIGHT=1
|
|
# Peer 3.
|
|
HTTP_GW_PEERS_2_ADDRESS=grpc://s03.neofs.devenv:8080
|
|
HTTP_GW_PEERS_2_PRIORITY=2
|
|
HTTP_GW_PEERS_2_WEIGHT=9
|
|
|
|
# Per-connection buffer size for requests' reading.
|
|
# This also limits the maximum header size.
|
|
HTTP_GW_WEB_READ_BUFFER_SIZE=4096
|
|
# Per-connection buffer size for responses' writing.
|
|
HTTP_GW_WRITE_BUFFER_SIZE=4096
|
|
# ReadTimeout is the amount of time allowed to read
|
|
# the full request including body. The connection's read
|
|
# deadline is reset when the connection opens, or for
|
|
# keep-alive connections after the first byte has been read.
|
|
HTTP_GW_READ_TIMEOUT=10m
|
|
# WriteTimeout is the maximum duration before timing out
|
|
# writes of the response. It is reset after the request handler
|
|
# has returned.
|
|
HTTP_GW_WRITE_TIMEOUT=5m
|
|
# StreamRequestBody enables request body streaming,
|
|
# and calls the handler sooner when given body is
|
|
# larger then the current limit.
|
|
HTTP_GW_STREAM_REQUEST_BODY=true
|
|
# Maximum request body size.
|
|
# The server rejects requests with bodies exceeding this limit.
|
|
HTTP_GW_MAX_REQUEST_BODY_SIZE=4194304
|
|
|
|
# RPC endpoint to be able to use nns container resolving.
|
|
HTTP_GW_RPC_ENDPOINT=http://morph-chain.neofs.devenv:30333
|
|
# The order in which resolvers are used to find an container id by name.
|
|
HTTP_GW_RESOLVE_ORDER="nns dns"
|
|
|
|
# Create timestamp for object if it isn't provided by header.
|
|
HTTP_GW_UPLOAD_HEADER_USE_DEFAULT_TIMESTAMP=false
|
|
|
|
# Timeout to dial node.
|
|
HTTP_GW_CONNECT_TIMEOUT=5s
|
|
# Timeout to check node health during rebalance.
|
|
HTTP_GW_REQUEST_TIMEOUT=5s
|
|
# Interval to check nodes health.
|
|
HTTP_GW_REBALANCE_TIMER=30s
|
|
|
|
# Enable zip compression to download files by common prefix.
|
|
HTTP_GW_ZIP_COMPRESSION=false
|