diff --git a/docs/sources/setup/install/helm/reference.md b/docs/sources/setup/install/helm/reference.md
index 2a538a7516175..339f7e38590ad 100644
--- a/docs/sources/setup/install/helm/reference.md
+++ b/docs/sources/setup/install/helm/reference.md
@@ -3699,6 +3699,15 @@ false
{}
+ |
+
+
+ gateway.nginxConfig.clientMaxBodySize |
+ string |
+ Allows customizing the `client_max_body_size` directive |
+
+"4m"
+
|
diff --git a/production/helm/loki/CHANGELOG.md b/production/helm/loki/CHANGELOG.md
index 8a9f00cf7753e..40362685ad88d 100644
--- a/production/helm/loki/CHANGELOG.md
+++ b/production/helm/loki/CHANGELOG.md
@@ -13,6 +13,10 @@ Entries should include a reference to the pull request that introduced the chang
[//]: # ( : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)
+## 6.5.2
+
+- [ENHANCEMENT] Allow to customize `client_max_body_size` when using Loki Gateway.
+
## 6.5.0
- [CHANGE] Changed version of Grafana Enterprise Logs to v3.0.1
diff --git a/production/helm/loki/Chart.yaml b/production/helm/loki/Chart.yaml
index 595c4b5710cd5..989a54d146a1d 100644
--- a/production/helm/loki/Chart.yaml
+++ b/production/helm/loki/Chart.yaml
@@ -3,7 +3,7 @@ name: loki
description: Helm chart for Grafana Loki and Grafana Enterprise Logs supporting both simple, scalable and distributed modes.
type: application
appVersion: 3.0.0
-version: 6.5.1
+version: 6.5.2
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
diff --git a/production/helm/loki/README.md b/production/helm/loki/README.md
index 9e0dce69d8385..55a7256c72f7f 100644
--- a/production/helm/loki/README.md
+++ b/production/helm/loki/README.md
@@ -1,6 +1,6 @@
# loki
-![Version: 6.5.1](https://img.shields.io/badge/Version-6.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
+![Version: 6.5.2](https://img.shields.io/badge/Version-6.5.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
Helm chart for Grafana Loki and Grafana Enterprise Logs supporting both simple, scalable and distributed modes.
diff --git a/production/helm/loki/templates/_helpers.tpl b/production/helm/loki/templates/_helpers.tpl
index c71c6c23aff88..8e1a70668b5e1 100644
--- a/production/helm/loki/templates/_helpers.tpl
+++ b/production/helm/loki/templates/_helpers.tpl
@@ -745,7 +745,7 @@ http {
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
- client_max_body_size 4M;
+ client_max_body_size {{ .Values.gateway.nginxConfig.clientMaxBodySize }};
proxy_read_timeout 600; ## 10 minutes
proxy_send_timeout 600;
diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml
index 11e579e6c885c..5b3a5c9ed9cd1 100644
--- a/production/helm/loki/values.yaml
+++ b/production/helm/loki/values.yaml
@@ -1037,6 +1037,8 @@ gateway:
# -- Allows appending custom configuration to the http block, passed through the `tpl` function to allow templating
httpSnippet: >-
{{ if .Values.loki.tenants }}proxy_set_header X-Scope-OrgID $remote_user;{{ end }}
+ # -- Allows customizing the `client_max_body_size` directive
+ clientMaxBodySize: 4M
# -- Whether ssl should be appended to the listen directive of the server block or not.
ssl: false
# -- Override Read URL