Skip to content

Commit

Permalink
Merge pull request #42 from infoxchange/allow-all-hosts
Browse files Browse the repository at this point in the history
Allow all hosts
  • Loading branch information
IXAMat committed Aug 18, 2021
2 parents 903cdc3 + e77e508 commit 5744278
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ixdjango/docker_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# Allowed hosts, Site domain and URL
ALLOWED_HOSTS = os.environ.get('SITE_DOMAIN', '').split('|')
MY_SITE_DOMAIN = ALLOWED_HOSTS[0]
SITE_URL = '{0}://{1}'.format(os.environ.get('SITE_PROTOCOL', ''),
MY_SITE_DOMAIN)
ALLOWED_HOSTS = ["*"]
try:
MY_SITE_DOMAIN = os.environ.get('SITE_DOMAIN', '').split('|')[0]
SITE_URL = '{0}://{1}'.format(os.environ.get('SITE_PROTOCOL', ''),
MY_SITE_DOMAIN)
except KeyError:
pass

# Databases
DATABASES = {}
Expand Down

0 comments on commit 5744278

Please sign in to comment.