Skip to content

Commit

Permalink
EDIT webwork env var WEBWORK_SECRET, FIX cronjob
Browse files Browse the repository at this point in the history
The WEBWORK_SECRET env var sets the passphrase used by Mojolicious for
security features like signed cookies.

Cronjob was broken due to the path to the scripts having been changed.
LTIAdvantage was renamed to LTI1p3 and the workign directory was changed
from /opt/webwork to /opt/webwork/webwork2
  • Loading branch information
ionparticle committed Apr 19, 2024
1 parent 8704d5b commit 8171994
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
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.6
version: 0.1.9

# 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
2 changes: 2 additions & 0 deletions webwork/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ securityContext:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: WEBWORK_SECRET
value: {{ .Values.secret | quote }}
- name: WEBWORK_DB_DRIVER
value: {{ .Values.db.db.driver | quote }}
- name: WEBWORK_DB_HOST
Expand Down
4 changes: 2 additions & 2 deletions webwork/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
containers:
- name: {{ .Chart.Name }}-classlist-cronjob
{{- include "webwork.app.spec" . | indent 12 }}
args: ['./webwork2/lib/LTIAdvantage/Cron/lti_update_classlist.pl']
args: ['./lib/LTI1p3/Cron/lti_update_classlist.pl']
volumes:
{{- include "webwork.app.mounts" . | indent 10 }}
{{- end }}
Expand Down Expand Up @@ -48,7 +48,7 @@ spec:
containers:
- name: {{ .Chart.Name }}-grades-cronjob
{{- include "webwork.app.spec" . | indent 12 }}
args: ['./webwork2/lib/LTIAdvantage/Cron/lti_update_grades.pl']
args: ['./lib/LTI1p3/Cron/lti_update_grades.pl']
volumes:
{{- include "webwork.app.mounts" . | indent 10 }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions webwork/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ fullnameOverride: ""
rootUrl: http://localhost
timezone: America/Vancouver
systemTimezone: America/Vancouver
# mojolicious secret passphrase for security features
secret: '4zaMnJwCFCFKXMVr2mrtMiudEksy4t4ncmrW4RAo7zmqgqkntPXFWYAauXkJLP9q'
rHost: ""
smtp:
server: localhost
Expand Down

0 comments on commit 8171994

Please sign in to comment.