Skip to content

Commit

Permalink
EDIT webwork support email & file upload limit
Browse files Browse the repository at this point in the history
Add two env vars:
MAX_REQUEST_SIZE - determine what is the largest file that can be
uploaded
WEBWORK_SUPPORT_EMAIL - email that is shown to the user for webwork
exception messages
  • Loading branch information
ionparticle committed Sep 4, 2024
1 parent 8330e3a commit 5ebfbf5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webwork/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.10
version: 0.1.11

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions webwork/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ env:
value: {{ .Values.rootUrl | quote }}
- name: WEBWORK_TIMEZONE
value: {{ .Values.timezone | quote }}
- name: WEBWORK_SUPPORT_EMAIL
value: {{ .Values.supportEmail | quote }}
- name: R_HOST
value: {{ template "webwork.fullname" . }}-r
- name: SYSTEM_TIMEZONE
Expand Down Expand Up @@ -193,6 +195,8 @@ env:
value: {{ .Values.db.auth.username | quote }}
- name: SKIP_UPLOAD_OPL_statistics
value: "true"
- name: MAX_REQUEST_SIZE
value: {{ .Values.maxRequestSize | quote }}
- name: MOJO_PUBSUB_EXPERIMENTAL
value: "1"
volumeMounts:
Expand Down
3 changes: 3 additions & 0 deletions webwork/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ systemTimezone: America/Vancouver
# mojolicious secret passphrase for security features
secret: '4zaMnJwCFCFKXMVr2mrtMiudEksy4t4ncmrW4RAo7zmqgqkntPXFWYAauXkJLP9q'
rHost: ""
supportEmail: support@example.edu
# file upload size limit in bytes
maxRequestSize: 1342177280 # 1.25 GiB
smtp:
server: localhost
sender: no-reply@example.com
Expand Down

0 comments on commit 5ebfbf5

Please sign in to comment.