Skip to content

Commit

Permalink
fix: Set Django ALLOWED_HOSTS (for jobs)
Browse files Browse the repository at this point in the history
The prior fix neglected to set Django's ALLOWED_HOSTS setting in the
environment for the Kubernetes jobs. Add that setting now.
  • Loading branch information
fghaas committed Mar 12, 2024
1 parent aa103e0 commit bc53cdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tutorwebhookreceiver/patches/k8s-jobs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
value: '{{ MYSQL_PORT }}'
- name: DB_MIGRATION_OPTIONS
value: '{{ WEBHOOKRECEIVER_DB_MIGRATION_OPTIONS|tojson }}'
- name: DJANGO_ALLOWED_HOSTS
value: '{{ WEBHOOKRECEIVER_HOST }}'
- name: DJANGO_SECRET_KEY
value: '{{ WEBHOOKRECEIVER_DJANGO_SECRET_KEY }}'
- name: DJANGO_WEBHOOK_RECEIVER_LMS_BASE_URL
Expand Down
1 change: 1 addition & 0 deletions tutorwebhookreceiver/patches/local-docker-compose-services
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ webhookreceiver:
- DB_MIGRATION_HOST={{ MYSQL_HOST }}
- DB_MIGRATION_PORT={{ MYSQL_PORT }}
- 'DB_MIGRATION_OPTIONS={{ WEBHOOKRECEIVER_DB_MIGRATION_OPTIONS|tojson }}'
- DJANGO_ALLOWED_HOSTS={{ WEBHOOKRECEIVER_HOST }}
- DJANGO_SECRET_KEY={{ WEBHOOKRECEIVER_DJANGO_SECRET_KEY }}
- DJANGO_WEBHOOK_RECEIVER_LMS_BASE_URL={{ WEBHOOKRECEIVER_LMS_ROOT_URL }}
- DJANGO_WEBHOOK_RECEIVER_EDX_OAUTH2_KEY={{ WEBHOOKRECEIVER_EDX_OAUTH2_KEY }}
Expand Down

0 comments on commit bc53cdf

Please sign in to comment.