Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 080ea92

Browse files
committed
add allowed_hosts env var for django
1 parent c28ec1e commit 080ea92

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

openshift/templates/django-postgresql-persistent.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@
217217
{
218218
"name": "DJANGO_SECRET_KEY",
219219
"value": "${DJANGO_SECRET_KEY}"
220+
},
221+
{
222+
"name": "ALLOWED_HOSTS",
223+
"value": "['*']"
220224
}
221225
],
222226
"resources": {

openshift/templates/django-postgresql.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@
217217
{
218218
"name": "DJANGO_SECRET_KEY",
219219
"value": "${DJANGO_SECRET_KEY}"
220+
},
221+
{
222+
"name": "ALLOWED_HOSTS",
223+
"value": "['*']"
220224
}
221225
],
222226
"resources": {

openshift/templates/django.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@
216216
{
217217
"name": "DJANGO_SECRET_KEY",
218218
"value": "${DJANGO_SECRET_KEY}"
219-
}
219+
},
220+
{
221+
"name": "ALLOWED_HOSTS",
222+
"value": "['*']"
223+
}
220224
],
221225
"resources": {
222226
"limits": {

0 commit comments

Comments
 (0)