Skip to content

Commit

Permalink
config: Rename scheme to schemes
Browse files Browse the repository at this point in the history
The description in `gate-configuration.md` has also been adjusted.

Signed-off-by: Tatiana Nesterenko <[email protected]>
  • Loading branch information
tatiana-nspcc committed Apr 19, 2024
1 parent 9998d44 commit b2bcbf8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/neofs-rest-gw/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ type ServerConfig struct {
}

const (
FlagScheme = "scheme"
FlagScheme = "schemes"
FlagCleanupTimeout = "cleanup-timeout"
FlagGracefulTimeout = "graceful-timeout"
FlagMaxHeaderSize = "max-header-size"
Expand Down
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pool:

server:
# The listeners to enable, this can be repeated and defaults to the schemes in the swagger spec.
scheme: [ http ]
schemes: [ http ]
# Grace period for which to wait before killing idle connections
cleanup-timeout: 10s
# Grace period for which to wait before shutting down the server
Expand Down
4 changes: 2 additions & 2 deletions docs/gate-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ There are some custom types used for brevity:
# General section

```yaml
scheme: [ http ]
schemes: [ http ]
cleanup-timeout: 10s
graceful-timeout: 15s
max-header-size: 1000000
Expand All @@ -47,7 +47,7 @@ external-address: localhost:8090
| Parameter | Type | Default value | Description |
|----------------------|------------|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `scheme` | `[]string` | `[http]` | The listeners to enable, this can be repeated and defaults to the schemes in the swagger spec. |
| `schemes` | `[]string` | `[http]` | The listeners to enable (http and/or https) are also used for swagger to make list of hosts for the `Servers` section. |
| `cleanup-timeout` | `duration` | `10s` | Grace period for which to wait before killing idle connections. |
| `graceful-timeout` | `duration` | `15s` | Grace period for which to wait before shutting down the server. |
| `max-header-size` | `int` | `1000000` | 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. |
Expand Down

0 comments on commit b2bcbf8

Please sign in to comment.