From d57781436b39f3f220d81fcba99528b786b539db Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Tue, 16 Oct 2018 03:04:13 +0300 Subject: [PATCH] use the allowedhosts variable in place of the other two. even if allowed_hosts is not set in conf, the host extended host name will be used anyway --- share/templates/conf/django/files/local.jinja2 | 2 +- share/templates/conf/gunicorn/files/local.jinja2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/templates/conf/django/files/local.jinja2 b/share/templates/conf/django/files/local.jinja2 index bc06c78..96c3f20 100644 --- a/share/templates/conf/django/files/local.jinja2 +++ b/share/templates/conf/django/files/local.jinja2 @@ -70,7 +70,7 @@ USE_DEBUG_TOOLBAR = DEBUG # allow template debug outputs on {{ project_branch }} environment INTERNAL_IPS = ['127.0.0.1', '127.0.0.2', '127.0.0.3', ] -ALLOWED_HOSTS = [configuration.project.extendedname, configuration.project.host] +ALLOWED_HOSTS = [configuration.project.allowedhosts] # ----------------------------------------- # Debug logging to the console diff --git a/share/templates/conf/gunicorn/files/local.jinja2 b/share/templates/conf/gunicorn/files/local.jinja2 index 980b10f..96c3f20 100644 --- a/share/templates/conf/gunicorn/files/local.jinja2 +++ b/share/templates/conf/gunicorn/files/local.jinja2 @@ -70,7 +70,7 @@ USE_DEBUG_TOOLBAR = DEBUG # allow template debug outputs on {{ project_branch }} environment INTERNAL_IPS = ['127.0.0.1', '127.0.0.2', '127.0.0.3', ] -ALLOWED_HOSTS = [configuration.project.extendedname, ] +ALLOWED_HOSTS = [configuration.project.allowedhosts] # ----------------------------------------- # Debug logging to the console