Skip to content

Commit

Permalink
platform-api: add filesize limits parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Sep 21, 2023
1 parent 9959f6c commit 4e68c7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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.21
version: 0.0.1-alpha.22
icon: https://github.ushahidi.org/helm-charts/icon.png
2 changes: 1 addition & 1 deletion charts/platform-api/templates/api-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ spec:
value: {{ .Values.api.params.upload_max_filesize | quote }}
- name: PHP_POST_MAX_SIZE
value: {{ .Values.api.params.upload_max_filesize | quote }}
- name: MEDIA_MAX_UPLOAD
- name: IMAGE_MAX_SIZE
value: {{ .Values.api.params.media_max_upload | quote }}
{{- if .Values.config.shared_secret }}
- name: PLATFORM_SHARED_SECRET
Expand Down
4 changes: 2 additions & 2 deletions charts/platform-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ api:
debug: "False"
params:
php_exec_time_limit: 60
upload_max_filesize: 2m
media_max_upload: '2000000'
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:
cpu: "1"
memory: "1Gi"
Expand Down

0 comments on commit 4e68c7e

Please sign in to comment.