Skip to content

Commit 5e00812

Browse files
committed
platform-api: php memory limit config
1 parent 74940c2 commit 5e00812

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

charts/platform-api/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: ushahidi-platform-api
3-
version: 0.0.1-alpha.35
3+
version: 0.0.1-alpha.36
44
icon: https://github.ushahidi.org/helm-charts/icon.png

charts/platform-api/templates/api-worker.yml

+2
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ spec:
188188
value: {{ .Values.api.params.upload_max_filesize | quote }}
189189
- name: PHP_POST_MAX_SIZE
190190
value: {{ .Values.api.params.upload_max_filesize | quote }}
191+
- name: PHP_MEMORY_LIMIT
192+
value: {{ .Values.api.params.php_memory_limit | quote }}
191193
- name: IMAGE_MAX_SIZE
192194
value: {{ .Values.api.params.media_max_upload | quote }}
193195
{{- if .Values.config.shared_secret }}

charts/platform-api/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ api:
123123
phpfpm_pm_max_spare_servers: 3
124124
phpfpm_pm_process_idle_timeout: "10s"
125125
phpfpm_pm_max_requests: 500
126+
php_memory_limit: 128M
126127
upload_max_filesize: 2m # this should match the value below with units
127128
image_max_size: '2000000' # this should match the previous value but in bytes
128129
limits:

0 commit comments

Comments
 (0)