From ac8aac8ebb530aab4c6913c6184f9adbcf994b03 Mon Sep 17 00:00:00 2001 From: VyacheslavSemin Date: Tue, 16 Jan 2024 07:28:01 +0000 Subject: [PATCH] Add the ability to set up max size uploaded file --- README.md | 1 + templates/configmaps/documentserver.yaml | 1 + values.yaml | 3 +++ 3 files changed, 5 insertions(+) diff --git a/README.md b/README.md index da07a353f..d7ddbcd6e 100644 --- a/README.md +++ b/README.md @@ -449,6 +449,7 @@ The `helm delete` command removes all the Kubernetes components associated with | `docservice.autoscaling.behavior` | Configuring Docservice deployment scaling behavior policies for the `scaleDown` and `scaleUp` fields | `{}` | | `proxy.accessLog` | Defines the nginx config [access_log](https://nginx.org/en/docs/http/ngx_http_log_module.html#access_log) format directive | `off` | | `proxy.gzipProxied` | Defines the nginx config [gzip_proxied](https://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_proxied) directive | `off` | +| `proxy.clientMaxBodySize` | Defines the nginx config [client_max_body_size](https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) directive | `100m` | | `proxy.workerConnections` | Defines the nginx config [worker_connections](https://nginx.org/en/docs/ngx_core_module.html#worker_connections) directive | `4096` | | `proxy.secureLinkSecret` | Defines secret for the nginx config directive [secure_link_md5](https://nginx.org/en/docs/http/ngx_http_secure_link_module.html#secure_link_md5) | `verysecretstring` | | `proxy.infoAllowedIP` | Defines ip addresses for accessing the info page | `[]` | diff --git a/templates/configmaps/documentserver.yaml b/templates/configmaps/documentserver.yaml index 913eeb24d..231ffd20e 100644 --- a/templates/configmaps/documentserver.yaml +++ b/templates/configmaps/documentserver.yaml @@ -38,6 +38,7 @@ data: LOG_PATTERN: {{ .Values.log.pattern | quote }} NGINX_ACCESS_LOG: {{ .Values.proxy.accessLog | quote }} NGINX_GZIP_PROXIED: {{ .Values.proxy.gzipProxied | quote }} + NGINX_CLIENT_MAX_BODY_SIZE: {{ .Values.proxy.clientMaxBodySize | quote }} NGINX_WORKER_CONNECTIONS: {{ .Values.proxy.workerConnections | quote }} SECURE_LINK_SECRET: {{ .Values.proxy.secureLinkSecret | quote }} {{- if .Values.example.enabled }} diff --git a/values.yaml b/values.yaml index 02362c1e2..0d14cd7b5 100644 --- a/values.yaml +++ b/values.yaml @@ -520,6 +520,9 @@ proxy: ## proxy.gzipProxied Defines the nginx config gzip_proxied directive ## ref: https://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_proxied gzipProxied: "off" + ## proxy.clientMaxBodySize Defines the nginx config client_max_body_size directive + ## ref: https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size + clientMaxBodySize: "100m" ## proxy.workerConnections Defines the nginx config worker_connections directive ## ref: https://nginx.org/en/docs/ngx_core_module.html#worker_connections workerConnections: "4096"