2022-04-11 09:35:06 +00:00
|
|
|
# Path to wallet.
|
|
|
|
REST_GW_WALLET_PATH=/path/to/wallet.json
|
|
|
|
# Account address. If omitted default one will be used.
|
2022-07-13 10:47:19 +00:00
|
|
|
REST_GW_WALLET_ADDRESS=NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP
|
2022-04-11 09:35:06 +00:00
|
|
|
# Password to decrypt wallet.
|
2022-07-13 10:47:19 +00:00
|
|
|
REST_GW_WALLET_PASSPHRASE=pwd
|
2022-04-11 09:35:06 +00:00
|
|
|
|
|
|
|
# Enable metrics.
|
2022-08-11 14:07:53 +00:00
|
|
|
REST_GW_PPROF_ENABLED=true
|
|
|
|
REST_GW_PPROF_ADDRESS=localhost:8091
|
|
|
|
|
|
|
|
REST_GW_PROMETHEUS_ENABLED=true
|
|
|
|
REST_GW_PROMETHEUS_ADDRESS=localhost:8092
|
|
|
|
|
2022-04-11 09:35:06 +00:00
|
|
|
# Log level.
|
|
|
|
REST_GW_LOGGER_LEVEL=debug
|
|
|
|
|
|
|
|
# Nodes configuration.
|
2022-12-20 11:30:27 +00:00
|
|
|
# This configuration make gateway use the first node (grpc://s01.frostfs.devenv:8080)
|
|
|
|
# while it's healthy. Otherwise, gateway use the second node (grpc://s01.frostfs.devenv:8080)
|
2022-04-11 09:35:06 +00:00
|
|
|
# for 10% of requests and the third node for 90% of requests.
|
|
|
|
# Endpoint.
|
2022-12-20 11:30:27 +00:00
|
|
|
REST_GW_POOL_PEERS_0_ADDRESS=grpc://s01.frostfs.devenv:8080
|
2022-04-11 09:35:06 +00:00
|
|
|
# Until nodes with the same priority level are healthy
|
|
|
|
# nodes with other priority are not used.
|
|
|
|
# Еhe lower the value, the higher the priority.
|
2022-10-13 06:41:57 +00:00
|
|
|
REST_GW_POOL_PEERS_0_PRIORITY=1
|
2022-04-11 09:35:06 +00:00
|
|
|
# Load distribution proportion for nodes with the same priority.
|
2022-10-13 06:41:57 +00:00
|
|
|
REST_GW_POOL_PEERS_0_WEIGHT=1
|
2022-04-11 09:35:06 +00:00
|
|
|
|
2022-12-20 11:30:27 +00:00
|
|
|
REST_GW_POOL_PEERS_1_ADDRESS=grpc://s02.frostfs.devenv:8080
|
2022-10-13 06:41:57 +00:00
|
|
|
REST_GW_POOL_PEERS_1_PRIORITY=2
|
|
|
|
REST_GW_POOL_PEERS_1_WEIGHT=1
|
2022-04-11 09:35:06 +00:00
|
|
|
|
2022-12-20 11:30:27 +00:00
|
|
|
REST_GW_POOL_PEERS_2_ADDRESS=grpc://s03.frostfs.devenv:8080
|
2022-10-13 06:41:57 +00:00
|
|
|
REST_GW_POOL_PEERS_2_PRIORITY=2
|
|
|
|
REST_GW_POOL_PEERS_3_WEIGHT=9
|
2022-04-11 09:35:06 +00:00
|
|
|
|
|
|
|
# Timeout to dial node.
|
2022-10-13 06:41:57 +00:00
|
|
|
REST_GW_POOL_NODE_DIAL_TIMEOUT=10s
|
2022-04-11 09:35:06 +00:00
|
|
|
# Timeout to check node health during rebalance.
|
2022-10-13 06:41:57 +00:00
|
|
|
REST_GW_POOL_HEALTHCHECK_TIMEOUT=15s
|
2022-04-11 09:35:06 +00:00
|
|
|
# Interval to check nodes health.
|
2022-10-13 06:41:57 +00:00
|
|
|
REST_GW_POOL_REBALANCE_TIMER=60s
|
2022-08-11 14:57:54 +00:00
|
|
|
# The number of errors on connection after which node is considered as unhealthy.
|
|
|
|
REST_GW_POOL_ERROR_THRESHOLD=100
|
2022-04-11 09:35:06 +00:00
|
|
|
|
|
|
|
# Grace period for which to wait before killing idle connections
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_CLEANUP_TIMEOUT=10s
|
2022-04-11 09:35:06 +00:00
|
|
|
# Grace period for which to wait before shutting down the server
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_GRACEFUL_TIMEOUT=15s
|
2022-04-11 09:35:06 +00:00
|
|
|
# Controls the maximum number of bytes the server will read parsing the request header's keys and values,
|
|
|
|
# including the request line. It does not limit the size of the request body.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_MAX_HEADER_SIZE=1000000
|
2022-04-11 09:35:06 +00:00
|
|
|
|
|
|
|
# The IP and port to listen on.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_LISTEN_ADDRESS=localhost:8080
|
2022-04-11 09:35:06 +00:00
|
|
|
# Limit the number of outstanding requests.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_LISTEN_LIMIT=0
|
2022-04-11 09:35:06 +00:00
|
|
|
# Sets the TCP keep-alive timeouts on accepted connections.
|
|
|
|
# It prunes dead TCP connections ( e.g. closing laptop mid-download).
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_KEEP_ALIVE=3m
|
2022-04-11 09:35:06 +00:00
|
|
|
# Maximum duration before timing out read of the request.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_READ_TIMEOUT=30s
|
2022-04-11 09:35:06 +00:00
|
|
|
# Maximum duration before timing out write of the response.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_WRITE_TIMEOUT=30s
|
2022-04-11 09:35:06 +00:00
|
|
|
|
|
|
|
# The IP and port to listen on.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_TLS_LISTEN_ADDRESS=localhost:8081
|
2022-04-11 09:35:06 +00:00
|
|
|
# The certificate file to use for secure connections.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_TLS_CERTIFICATE=/path/to/tls/cert
|
2022-04-11 09:35:06 +00:00
|
|
|
# The private key file to use for secure connections (without passphrase).
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_TLS_KEY=/path/to/tls/key
|
2022-04-11 09:35:06 +00:00
|
|
|
# The certificate authority certificate file to be used with mutual tls auth.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_TLS_CA=/path/to/tls/ca
|
2022-04-11 09:35:06 +00:00
|
|
|
# Limit the number of outstanding requests.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_TLS_LISTEN_LIMIT=0
|
2022-04-11 09:35:06 +00:00
|
|
|
# Sets the TCP keep-alive timeouts on accepted connections.
|
|
|
|
# It prunes dead TCP connections ( e.g. closing laptop mid-download).
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_TLS_KEEP_ALIVE=3m
|
2022-04-11 09:35:06 +00:00
|
|
|
# Maximum duration before timing out read of the request.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_TLS_READ_TIMEOUT=30s
|
2022-04-11 09:35:06 +00:00
|
|
|
# Maximum duration before timing out write of the response.
|
2022-10-21 13:53:30 +00:00
|
|
|
REST_GW_SERVER_TLS_WRITE_TIMEOUT=30s
|