2022-04-08 09:01:57 +00:00
|
|
|
# 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
|
2022-06-29 11:14:42 +00:00
|
|
|
# Passphrase to decrypt wallet. If you're using a wallet without a password, place '' here.
|
2022-04-08 09:01:57 +00:00
|
|
|
HTTP_GW_WALLET_PASSPHRASE=pwd
|
|
|
|
|
|
|
|
# Enable metrics.
|
2022-07-27 06:52:08 +00:00
|
|
|
HTTP_GW_PPROF_ENABLED=true
|
|
|
|
HTTP_GW_PPROF_ADDRESS=localhost:8083
|
|
|
|
|
|
|
|
HTTP_GW_PROMETHEUS_ENABLED=true
|
|
|
|
HTTP_GW_PROMETHEUS_ADDRESS=localhost:8084
|
|
|
|
|
2022-04-08 09:01:57 +00:00
|
|
|
# Log level.
|
|
|
|
HTTP_GW_LOGGER_LEVEL=debug
|
|
|
|
|
2022-11-24 14:49:21 +00:00
|
|
|
HTTP_GW_SERVER_0_ADDRESS=0.0.0.0:443
|
|
|
|
HTTP_GW_SERVER_0_TLS_ENABLED=false
|
|
|
|
HTTP_GW_SERVER_0_TLS_CERT_FILE=/path/to/tls/cert
|
|
|
|
HTTP_GW_SERVER_0_TLS_KEY_FILE=/path/to/tls/key
|
|
|
|
HTTP_GW_SERVER_1_ADDRESS=0.0.0.0:444
|
|
|
|
HTTP_GW_SERVER_1_TLS_ENABLED=true
|
|
|
|
HTTP_GW_SERVER_1_TLS_CERT_FILE=/path/to/tls/cert
|
|
|
|
HTTP_GW_SERVER_1_TLS_KEY_FILE=/path/to/tls/key
|
2022-04-08 09:01:57 +00:00
|
|
|
|
|
|
|
# Nodes configuration.
|
2022-12-20 11:01:50 +00:00
|
|
|
# This configuration make the gateway use the first node (grpc://s01.frostfs.devenv:8080)
|
|
|
|
# while it's healthy. Otherwise, the gateway use the second node (grpc://s01.frostfs.devenv:8080)
|
2022-04-08 09:01:57 +00:00
|
|
|
# for 10% of requests and the third node for 90% of requests.
|
|
|
|
|
|
|
|
# Peer 1.
|
|
|
|
# Endpoint.
|
2022-12-20 11:01:50 +00:00
|
|
|
HTTP_GW_PEERS_0_ADDRESS=grpc://s01.frostfs.devenv:8080
|
2022-04-08 09:01:57 +00:00
|
|
|
# Until nodes with the same priority level are healthy
|
|
|
|
# nodes with other priority are not used.
|
2022-04-12 06:20:18 +00:00
|
|
|
# The lower the value, the higher the priority.
|
2022-04-08 09:01:57 +00:00
|
|
|
HTTP_GW_PEERS_0_PRIORITY=1
|
|
|
|
# Load distribution proportion for nodes with the same priority.
|
|
|
|
HTTP_GW_PEERS_0_WEIGHT=1
|
|
|
|
# Peer 2.
|
2022-12-20 11:01:50 +00:00
|
|
|
HTTP_GW_PEERS_1_ADDRESS=grpc://s02.frostfs.devenv:8080
|
2022-04-08 09:01:57 +00:00
|
|
|
HTTP_GW_PEERS_1_PRIORITY=2
|
|
|
|
HTTP_GW_PEERS_1_WEIGHT=1
|
|
|
|
# Peer 3.
|
2022-12-20 11:01:50 +00:00
|
|
|
HTTP_GW_PEERS_2_ADDRESS=grpc://s03.frostfs.devenv:8080
|
2022-04-08 09:01:57 +00:00
|
|
|
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.
|
2022-04-21 15:53:17 +00:00
|
|
|
HTTP_GW_READ_TIMEOUT=10m
|
2022-04-08 09:01:57 +00:00
|
|
|
# WriteTimeout is the maximum duration before timing out
|
|
|
|
# writes of the response. It is reset after the request handler
|
|
|
|
# has returned.
|
2022-04-21 15:53:17 +00:00
|
|
|
HTTP_GW_WRITE_TIMEOUT=5m
|
2022-04-08 09:01:57 +00:00
|
|
|
# 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
|
|
|
|
|
2022-04-20 09:17:20 +00:00
|
|
|
# RPC endpoint to be able to use nns container resolving.
|
2022-12-20 11:01:50 +00:00
|
|
|
HTTP_GW_RPC_ENDPOINT=http://morph-chain.frostfs.devenv:30333
|
2022-04-20 09:17:20 +00:00
|
|
|
# The order in which resolvers are used to find an container id by name.
|
|
|
|
HTTP_GW_RESOLVE_ORDER="nns dns"
|
|
|
|
|
2022-04-08 09:01:57 +00:00
|
|
|
# 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
|
2022-11-15 15:06:53 +00:00
|
|
|
# Timeout for individual operations in streaming RPC.
|
|
|
|
HTTP_GW_STREAM_TIMEOUT=10s
|
2022-04-08 09:01:57 +00:00
|
|
|
# Timeout to check node health during rebalance.
|
|
|
|
HTTP_GW_REQUEST_TIMEOUT=5s
|
|
|
|
# Interval to check nodes health.
|
|
|
|
HTTP_GW_REBALANCE_TIMER=30s
|
2022-07-29 06:34:26 +00:00
|
|
|
# The number of errors on connection after which node is considered as unhealthy
|
2022-11-17 09:17:06 +00:00
|
|
|
HTTP_GW_POOL_ERROR_THRESHOLD=100
|
2022-04-08 09:01:57 +00:00
|
|
|
|
|
|
|
# Enable zip compression to download files by common prefix.
|
|
|
|
HTTP_GW_ZIP_COMPRESSION=false
|
2023-03-15 08:07:44 +00:00
|
|
|
|
|
|
|
HTTP_GW_TRACING_ENABLED=true
|
|
|
|
HTTP_GW_TRACING_ENDPOINT="localhost:4317"
|
2023-06-09 06:39:40 +00:00
|
|
|
HTTP_GW_TRACING_EXPORTER="otlp_grpc"
|
2023-08-31 16:19:57 +00:00
|
|
|
|
|
|
|
HTTP_GW_RUNTIME_SOFT_MEMORY_LIMIT=1073741824
|