From ec91e9791540eaf723ae9854d64615c65cdfa905 Mon Sep 17 00:00:00 2001 From: David Losada Carballo Date: Wed, 20 Sep 2023 22:01:28 +0200 Subject: [PATCH] platform-api: add filesize limits parameters --- charts/platform-api/Chart.yaml | 2 +- charts/platform-api/templates/api-worker.yml | 6 +++++- charts/platform-api/values.yaml | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/charts/platform-api/Chart.yaml b/charts/platform-api/Chart.yaml index 5258d71..74f7be0 100644 --- a/charts/platform-api/Chart.yaml +++ b/charts/platform-api/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 name: ushahidi-platform-api -version: 0.0.1-alpha.17 +version: 0.0.1-alpha.18 icon: https://github.ushahidi.org/helm-charts/icon.png diff --git a/charts/platform-api/templates/api-worker.yml b/charts/platform-api/templates/api-worker.yml index 9c312f6..ceae302 100644 --- a/charts/platform-api/templates/api-worker.yml +++ b/charts/platform-api/templates/api-worker.yml @@ -171,7 +171,11 @@ spec: - name: DOCKERIZE_WAIT_FOR_redis value: "tcp://{{ .Values.config.redis.host }}:{{ .Values.config.redis.port }}" - name: PHP_EXEC_TIME_LIMIT - value: {{ .Values.api.params.php_exec_time_limit | quote }} + value: {{ .Values.api.params.php_exec_time_limit | quote }} + - name: PHP_UPLOAD_MAX_FILESIZE + value: {{ .Values.api.params.php_upload_max_filesize | quote }} + - name: PHP_POST_MAX_SIZE + value: {{ .Values.api.params.php_upload_max_filesize | quote }} {{- if .Values.config.shared_secret }} - name: PLATFORM_SHARED_SECRET value: {{ .Values.config.shared_secret | quote }} diff --git a/charts/platform-api/values.yaml b/charts/platform-api/values.yaml index 8fa94cc..8366b87 100644 --- a/charts/platform-api/values.yaml +++ b/charts/platform-api/values.yaml @@ -117,6 +117,7 @@ api: debug: "False" params: php_exec_time_limit: 60 + upload_max_filesize: 2m limits: cpu: "1" memory: "1Gi"