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 20, 2023
1 parent f028491 commit ec91e97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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.17
version: 0.0.1-alpha.18
icon: https://github.ushahidi.org/helm-charts/icon.png
6 changes: 5 additions & 1 deletion charts/platform-api/templates/api-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
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 @@ -117,6 +117,7 @@ api:
debug: "False"
params:
php_exec_time_limit: 60
upload_max_filesize: 2m
limits:
cpu: "1"
memory: "1Gi"
Expand Down

0 comments on commit ec91e97

Please sign in to comment.