add allowed host for production

This commit is contained in:
Oliver Marks 2017-02-25 13:31:44 +00:00
parent 4be2c9bf47
commit db5d0ff25b
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ RUN sed -i 's/\r//' /entrypoint.sh \
&& sed -i 's/\r//' /live-gunicorn-mhackspace.sh \ && sed -i 's/\r//' /live-gunicorn-mhackspace.sh \
&& chmod +x /entrypoint.sh \ && chmod +x /entrypoint.sh \
&& chown django /entrypoint.sh \ && chown django /entrypoint.sh \
&& chmod +x /stage-gunicorn-mahckspace.sh \ && chmod +x /stage-gunicorn-mhackspace.sh \
&& chown django /stage-gunicorn-mhackspace.sh \ && chown django /stage-gunicorn-mhackspace.sh \
&& chmod +x /live-gunicorn-mhackspace.sh \ && chmod +x /live-gunicorn-mhackspace.sh \
&& chown django /live-gunicorn-mhackspace.sh \ && chown django /live-gunicorn-mhackspace.sh \

View File

@ -51,7 +51,7 @@ X_FRAME_OPTIONS = 'DENY'
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Hosts/domain names that are valid for this site # Hosts/domain names that are valid for this site
# See https://docs.djangoproject.com/en/1.6/ref/settings/#allowed-hosts # See https://docs.djangoproject.com/en/1.6/ref/settings/#allowed-hosts
ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', default=['maidstone-hackspace.org.uk']) ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', default=['maidstone-hackspace.org.uk', 'live.maidstone-hackspace.org.uk'])
ALLOWED_HOSTS.append('127.0.0.1') ALLOWED_HOSTS.append('127.0.0.1')
ALLOWED_HOSTS.append('172.18.0.5') ALLOWED_HOSTS.append('172.18.0.5')