Skip to content

Commit

Permalink
platform-api: php memory limit config
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Dec 20, 2024
1 parent 74940c2 commit 5e00812
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/platform-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: ushahidi-platform-api
version: 0.0.1-alpha.35
version: 0.0.1-alpha.36
icon: https://github.ushahidi.org/helm-charts/icon.png
2 changes: 2 additions & 0 deletions charts/platform-api/templates/api-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ spec:
value: {{ .Values.api.params.upload_max_filesize | quote }}
- name: PHP_POST_MAX_SIZE
value: {{ .Values.api.params.upload_max_filesize | quote }}
- name: PHP_MEMORY_LIMIT
value: {{ .Values.api.params.php_memory_limit | quote }}
- name: IMAGE_MAX_SIZE
value: {{ .Values.api.params.media_max_upload | quote }}
{{- if .Values.config.shared_secret }}
Expand Down
1 change: 1 addition & 0 deletions charts/platform-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ api:
phpfpm_pm_max_spare_servers: 3
phpfpm_pm_process_idle_timeout: "10s"
phpfpm_pm_max_requests: 500
php_memory_limit: 128M
upload_max_filesize: 2m # this should match the value below with units
image_max_size: '2000000' # this should match the previous value but in bytes
limits:
Expand Down

0 comments on commit 5e00812

Please sign in to comment.