Skip to content

Commit ac7383c

Browse files
authored
NODE-5851 Add additional APIFW parameters
Add additional APIFW parameters
2 parents a53498d + 8f12be2 commit ac7383c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

charts/ingress-nginx/templates/_helpers.tpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,18 @@ Create the name of the controller service account to use
363363
value: 5s
364364
- name: APIFW_WRITE_TIMEOUT
365365
value: 5s
366+
- name: APIFW_READ_BUFFER_SIZE
367+
value: "{{ .Values.controller.wallarm.apiFirewall.readBufferSize }}"
368+
- name: APIFW_WRITE_BUFFER_SIZE
369+
value: "{{ .Values.controller.wallarm.apiFirewall.writeBufferSize }}"
370+
- name: APIFW_MAX_REQUEST_BODY_SIZE
371+
value: "{{ .Values.controller.wallarm.apiFirewall.maxRequestBodySize }}"
372+
- name: APIFW_DISABLE_KEEPALIVE
373+
value: "{{ .Values.controller.wallarm.apiFirewall.disableKeepalive }}"
374+
- name: APIFW_MAX_CONNS_PER_IP
375+
value: "{{ .Values.controller.wallarm.apiFirewall.maxConnectionsPerIp }}"
376+
- name: APIFW_MAX_REQUESTS_PER_CONN
377+
value: "{{ .Values.controller.wallarm.apiFirewall.maxRequestsPerConnection }}"
366378
- name: APIFW_API_MODE_DEBUG_PATH_DB
367379
value: "{{ include "wallarm-apifw.path" . }}/2/wallarm_api.db"
368380
{{- if .Values.controller.wallarm.apiFirewall.extraEnvs }}

charts/ingress-nginx/values.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,27 @@ controller:
10741074
### Enable or disable API Firewall functionality (true|false)
10751075
###
10761076
enabled: true
1077+
### Per-connection buffer size (in bytes) for requests' reading. This also limits the maximum header size.
1078+
### Increase this buffer if your clients send multi-KB RequestURIs and/or multi-KB headers (for example, BIG cookies)
1079+
###
1080+
readBufferSize: 8192
1081+
### Per-connection buffer size (in bytes) for responses' writing.
1082+
###
1083+
writeBufferSize: 8192
1084+
### Maximum request body size (in bytes). The server rejects requests with bodies exceeding this limit.
1085+
###
1086+
maxRequestBodySize: 4194304
1087+
### Whether to disable keep-alive connections. The server will close all the incoming connections after sending
1088+
## the first response to client if this option is set to 'true'
1089+
###
1090+
disableKeepalive: false
1091+
### Maximum number of concurrent client connections allowed per IP. '0' means unlimited
1092+
###
1093+
maxConnectionsPerIp: 0
1094+
### Maximum number of requests served per connection. The server closes connection after the last request.
1095+
### 'Connection: close' header is added to the last response. '0' means unlimited
1096+
###
1097+
maxRequestsPerConnection: 0
10771098
config:
10781099
mainPort: 18081
10791100
healthPort: 18082

0 commit comments

Comments
 (0)