From d9734835f542fbc67ddd14395dc1973ee68c5a77 Mon Sep 17 00:00:00 2001 From: Ramses Rodenburg Date: Wed, 3 Jun 2026 16:23:20 +0200 Subject: [PATCH 1/2] feat: accept nginx.config timeout and transferlimit tweaks like openzaak --- charts/GPP-publicatiebank/CHANGELOG.md | 4 ++++ charts/GPP-publicatiebank/Chart.yaml | 2 +- charts/GPP-publicatiebank/README.md | 3 +++ charts/GPP-publicatiebank/templates/configmap-nginx.yaml | 6 ++++-- charts/GPP-publicatiebank/values.yaml | 7 +++++++ 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/charts/GPP-publicatiebank/CHANGELOG.md b/charts/GPP-publicatiebank/CHANGELOG.md index 848b324..4673dd2 100644 --- a/charts/GPP-publicatiebank/CHANGELOG.md +++ b/charts/GPP-publicatiebank/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.0 (2026-06-03) + +- Expose nginx settings `nginx.config.clientMaxBodySize`, `nginx.config.proxyConnectTimeoutSeconds` and `nginx.config.proxyReadTimeoutSeconds` for configuration via Helm values. + ## 2.0.8 (2026-04-22) - Set appVersion to 2.1.0 diff --git a/charts/GPP-publicatiebank/Chart.yaml b/charts/GPP-publicatiebank/Chart.yaml index b28b106..7db4269 100644 --- a/charts/GPP-publicatiebank/Chart.yaml +++ b/charts/GPP-publicatiebank/Chart.yaml @@ -3,7 +3,7 @@ name: gpp-publicatiebank description: Een registratie die voorziet in de "Openbare Documenten opslag"-functionaliteiten type: application -version: 2.0.8 +version: 2.1.0 appVersion: 2.1.0 dependencies: diff --git a/charts/GPP-publicatiebank/README.md b/charts/GPP-publicatiebank/README.md index cf514e6..a3f29fd 100644 --- a/charts/GPP-publicatiebank/README.md +++ b/charts/GPP-publicatiebank/README.md @@ -66,6 +66,9 @@ Een registratie die voorziet in de "Openbare Documenten opslag"-functionaliteite | livenessProbe.timeoutSeconds | int | `5` | | | nameOverride | string | `""` | | | nginx.autoscaling.enabled | bool | `false` | | +| nginx.config.clientMaxBodySize | string | `"4G"` | Default client_max_body_size for all endpoints (unless overridden). Examples: "10M", "100M", "1G", "4G", "10G". | +| nginx.config.proxyConnectTimeoutSeconds | int | `300` | Proxy connection timeout in seconds. How long nginx waits to establish a connection with the backend. | +| nginx.config.proxyReadTimeoutSeconds | int | `300` | Proxy read timeout in seconds. How long nginx waits for a backend response. | | nginx.existingConfigmap | string | `nil` | | | nginx.image.pullPolicy | string | `"IfNotPresent"` | | | nginx.image.repository | string | `"nginxinc/nginx-unprivileged"` | | diff --git a/charts/GPP-publicatiebank/templates/configmap-nginx.yaml b/charts/GPP-publicatiebank/templates/configmap-nginx.yaml index 3135514..a713b35 100644 --- a/charts/GPP-publicatiebank/templates/configmap-nginx.yaml +++ b/charts/GPP-publicatiebank/templates/configmap-nginx.yaml @@ -9,8 +9,8 @@ data: proxy: | proxy_pass_header Server; proxy_set_header X-Real-IP $remote_addr; - proxy_connect_timeout 300s; - proxy_read_timeout 300s; + proxy_connect_timeout {{ .Values.nginx.config.proxyConnectTimeoutSeconds }}s; + proxy_read_timeout {{ .Values.nginx.config.proxyReadTimeoutSeconds }}s; proxy_redirect off; proxy_pass_request_headers on; proxy_http_version 1.1; @@ -27,6 +27,8 @@ data: server_name {{ .Values.settings.allowedHosts | replace "," " "}} localhost; server_tokens off; + client_max_body_size {{ .Values.nginx.config.clientMaxBodySize }}; + gzip on; gzip_http_version 1.0; gzip_comp_level 2; diff --git a/charts/GPP-publicatiebank/values.yaml b/charts/GPP-publicatiebank/values.yaml index 17c4bc5..691b91c 100644 --- a/charts/GPP-publicatiebank/values.yaml +++ b/charts/GPP-publicatiebank/values.yaml @@ -307,6 +307,13 @@ nginx: pullPolicy: IfNotPresent tag: stable existingConfigmap: null + config: + # -- Proxy connection timeout in seconds. How long nginx waits to establish a connection with the backend. + proxyConnectTimeoutSeconds: 300 + # -- Proxy read timeout in seconds. How long nginx waits for a backend response. + proxyReadTimeoutSeconds: 300 + # -- Default client_max_body_size for all endpoints (unless overridden). Examples: "10M", "100M", "1G", "4G", "10G". + clientMaxBodySize: "4G" service: type: ClusterIP port: 80 From ae15206b5a068c1a8c55555c5b2d21626b844dd6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 3 Jun 2026 14:28:01 +0000 Subject: [PATCH 2/2] docs: update helm chart documentation --- charts/GPP-publicatiebank/README.md | 2 +- charts/GPP-stack/README.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/GPP-publicatiebank/README.md b/charts/GPP-publicatiebank/README.md index a3f29fd..0b477e2 100644 --- a/charts/GPP-publicatiebank/README.md +++ b/charts/GPP-publicatiebank/README.md @@ -1,6 +1,6 @@ # gpp-publicatiebank -![Version: 2.0.8](https://img.shields.io/badge/Version-2.0.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.0](https://img.shields.io/badge/AppVersion-2.1.0-informational?style=flat-square) +![Version: 2.1.0](https://img.shields.io/badge/Version-2.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.0](https://img.shields.io/badge/AppVersion-2.1.0-informational?style=flat-square) Een registratie die voorziet in de "Openbare Documenten opslag"-functionaliteiten diff --git a/charts/GPP-stack/README.md b/charts/GPP-stack/README.md index 703f57c..534266a 100644 --- a/charts/GPP-stack/README.md +++ b/charts/GPP-stack/README.md @@ -449,6 +449,9 @@ An umbrella chart for the GPP stack | gpp-publicatiebank.livenessProbe.timeoutSeconds | int | `5` | | | gpp-publicatiebank.nameOverride | string | `""` | | | gpp-publicatiebank.nginx.autoscaling.enabled | bool | `false` | | +| gpp-publicatiebank.nginx.config.clientMaxBodySize | string | `"4G"` | Default client_max_body_size for all endpoints (unless overridden). Examples: "10M", "100M", "1G", "4G", "10G". | +| gpp-publicatiebank.nginx.config.proxyConnectTimeoutSeconds | int | `300` | Proxy connection timeout in seconds. How long nginx waits to establish a connection with the backend. | +| gpp-publicatiebank.nginx.config.proxyReadTimeoutSeconds | int | `300` | Proxy read timeout in seconds. How long nginx waits for a backend response. | | gpp-publicatiebank.nginx.existingConfigmap | string | `nil` | | | gpp-publicatiebank.nginx.image.pullPolicy | string | `"IfNotPresent"` | | | gpp-publicatiebank.nginx.image.repository | string | `"nginxinc/nginx-unprivileged"` | |