You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
This section contains detailed NeoFS HTTP Gateway configuration file description
including default config values and some tips to set up configurable values.
There are some custom types used for brevity:
duration -- string consisting of a number and a suffix. Suffix examples include s (seconds), m (minutes), ms (
milliseconds).
Reload on SIGHUP
Some config values can be reloaded on SIGHUP signal.
Such parameters have special mark in tables below.
You can send SIGHUP signal to app using the following command:
Account address to get from wallet. If omitted default one will be used.
passphrase
string
Passphrase to decrypt wallet.
peers section
# Nodes configuration# This configuration makes the gateway use the first node (node1.neofs:8080)# while it's healthy. Otherwise, gateway uses the second node (node2.neofs:8080)# for 10% of requests and the third node (node3.neofs:8080) for 90% of requests.# Until nodes with the same priority level are healthy# nodes with other priority are not used.# The lower the value, the higher the priority.peers:
0:
address: node1.neofs:8080priority: 1weight: 11:
address: node2.neofs:8080priority: 2weight: 0.12:
address: node3.neofs:8080priority: 2weight: 0.9
Parameter
Type
Default value
Description
address
string
Address of storage node.
priority
int
1
It allows to group nodes and don't switch group until all nodes with the same priority will be unhealthy. The lower the value, the higher the priority.
weight
float
1
Weight of node in the group with the same priority. Distribute requests to nodes proportionally to these values.
server section
You can specify several listeners for server. For example, for http and https.
Per-connection buffer size for requests' reading. This also limits the maximum header size.
write_buffer_size
int
4096
Per-connection buffer size for responses' writing.
read_timeout
duration
10m
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.
write_timeout
duration
5m
The maximum duration before timing out writes of the response. It is reset after the request handler has returned.
stream_request_body
bool
true
Enables request body streaming, and calls the handler sooner when given body is larger than the current limit.
max_request_body_size
int
4194304
Maximum request body size. The server rejects requests with bodies exceeding this limit.
upload-header section
upload_header:
use_default_timestamp: false
Parameter
Type
SIGHUP reload
Default value
Description
use_default_timestamp
bool
yes
false
Create timestamp for object if it isn't provided by header.
zip section
zip:
compression: false
Parameter
Type
SIGHUP reload
Default value
Description
compression
bool
yes
false
Enable zip compression when download files by common prefix.
pprof section
Contains configuration for the pprof profiler.
pprof:
enabled: trueaddress: localhost:8083
Parameter
Type
SIGHUP reload
Default value
Description
enabled
bool
yes
false
Flag to enable the service.
address
string
yes
localhost:8083
Address that service listener binds to.
prometheus section
Contains configuration for the prometheus metrics service.