Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 28ce745

Browse files
authored
Merge pull request sclorg#65 from bparees/allowed_hosts
add allowed_hosts env var for django
2 parents c28ec1e + 080ea92 commit 28ce745

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)