Skip to content

Commit df0566b

Browse files
author
Kate Osborn
committed
Link to nginx docs
1 parent 130bfe5 commit df0566b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

apis/v1alpha1/clientsettingspolicy_types.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ type ClientBody struct {
7070
// If the size in a request exceeds the configured value,
7171
// the 413 (Request Entity Too Large) error is returned to the client.
7272
// Setting size to 0 disables checking of client request body size.
73-
// Default: 1m.
73+
// Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size.
7474
//
7575
// +optional
7676
MaxSize *Size `json:"maxSize,omitempty"`
@@ -79,7 +79,7 @@ type ClientBody struct {
7979
// two successive read operations, not for the transmission of the whole request body.
8080
// If a client does not transmit anything within this time, the request is terminated with the
8181
// 408 (Request Time-out) error.
82-
// Default: 60s.
82+
// Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_timeout.
8383
//
8484
// +optional
8585
Timeout *Duration `json:"timeout,omitempty"`
@@ -91,15 +91,15 @@ type ClientKeepAlive struct {
9191
// After the maximum number of requests are made, the connection is closed. Closing connections periodically
9292
// is necessary to free per-connection memory allocations. Therefore, using too high maximum number of requests
9393
// is not recommended as it can lead to excessive memory usage.
94-
// Default: 1000.
94+
// Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests.
9595
//
9696
// +optional
9797
// +kubebuilder:validation:Minimum=0
9898
Requests *int32 `json:"requests,omitempty"`
9999

100100
// Time defines the maximum time during which requests can be processed through one keep-alive connection.
101101
// After this time is reached, the connection is closed following the subsequent request processing.
102-
// Default: 1h.
102+
// Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_time.
103103
//
104104
// +optional
105105
Time *Duration `json:"time,omitempty"`
@@ -111,16 +111,17 @@ type ClientKeepAlive struct {
111111
}
112112

113113
// ClientKeepAliveTimeout defines the timeouts related to keep-alive client connections.
114+
// Default: Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout.
114115
type ClientKeepAliveTimeout struct {
115116
// Server sets the timeout during which a keep-alive client connection will stay open on the server side.
116117
// Setting this value to 0 disables keep-alive client connections.
117-
// Default: 75s.
118118
//
119119
// +optional
120120
Server *Duration `json:"server,omitempty"`
121121

122122
// Header sets the timeout in the "Keep-Alive: timeout=time" response header field.
123123
//
124+
//
124125
// +optional
125126
Header *Duration `json:"header,omitempty"`
126127
}

config/crd/bases/gateway.nginx.org_clientsettingspolicies.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ spec:
6060
If the size in a request exceeds the configured value,
6161
the 413 (Request Entity Too Large) error is returned to the client.
6262
Setting size to 0 disables checking of client request body size.
63-
Default: 1m.
63+
Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size.
6464
pattern: ^\d{1,4}(k|m|g)?$
6565
type: string
6666
timeout:
@@ -69,7 +69,7 @@ spec:
6969
two successive read operations, not for the transmission of the whole request body.
7070
If a client does not transmit anything within this time, the request is terminated with the
7171
408 (Request Time-out) error.
72-
Default: 60s.
72+
Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_timeout.
7373
pattern: ^\d{1,4}(ms|s)?$
7474
type: string
7575
type: object
@@ -82,15 +82,15 @@ spec:
8282
After the maximum number of requests are made, the connection is closed. Closing connections periodically
8383
is necessary to free per-connection memory allocations. Therefore, using too high maximum number of requests
8484
is not recommended as it can lead to excessive memory usage.
85-
Default: 1000.
85+
Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests.
8686
format: int32
8787
minimum: 0
8888
type: integer
8989
time:
9090
description: |-
9191
Time defines the maximum time during which requests can be processed through one keep-alive connection.
9292
After this time is reached, the connection is closed following the subsequent request processing.
93-
Default: 1h.
93+
Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_time.
9494
pattern: ^\d{1,4}(ms|s)?$
9595
type: string
9696
timeout:
@@ -105,7 +105,6 @@ spec:
105105
description: |-
106106
Server sets the timeout during which a keep-alive client connection will stay open on the server side.
107107
Setting this value to 0 disables keep-alive client connections.
108-
Default: 75s.
109108
pattern: ^\d{1,4}(ms|s)?$
110109
type: string
111110
type: object

0 commit comments

Comments
 (0)