From 080ea9203d6a8fb00e8c28fc63970af696364c69 Mon Sep 17 00:00:00 2001 From: Ben Parees Date: Wed, 2 Nov 2016 14:11:10 -0400 Subject: [PATCH] add allowed_hosts env var for django --- openshift/templates/django-postgresql-persistent.json | 4 ++++ openshift/templates/django-postgresql.json | 4 ++++ openshift/templates/django.json | 6 +++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/openshift/templates/django-postgresql-persistent.json b/openshift/templates/django-postgresql-persistent.json index 44e54d1..adb3ba3 100644 --- a/openshift/templates/django-postgresql-persistent.json +++ b/openshift/templates/django-postgresql-persistent.json @@ -217,6 +217,10 @@ { "name": "DJANGO_SECRET_KEY", "value": "${DJANGO_SECRET_KEY}" + }, + { + "name": "ALLOWED_HOSTS", + "value": "['*']" } ], "resources": { diff --git a/openshift/templates/django-postgresql.json b/openshift/templates/django-postgresql.json index 590d5fd..91c9fea 100644 --- a/openshift/templates/django-postgresql.json +++ b/openshift/templates/django-postgresql.json @@ -217,6 +217,10 @@ { "name": "DJANGO_SECRET_KEY", "value": "${DJANGO_SECRET_KEY}" + }, + { + "name": "ALLOWED_HOSTS", + "value": "['*']" } ], "resources": { diff --git a/openshift/templates/django.json b/openshift/templates/django.json index 78c8e10..6b244c8 100644 --- a/openshift/templates/django.json +++ b/openshift/templates/django.json @@ -216,7 +216,11 @@ { "name": "DJANGO_SECRET_KEY", "value": "${DJANGO_SECRET_KEY}" - } + }, + { + "name": "ALLOWED_HOSTS", + "value": "['*']" + } ], "resources": { "limits": {