Skip to content

Commit

Permalink
Merge pull request #149 from EarthSchlange/add_env_domain
Browse files Browse the repository at this point in the history
Added hosts via environment.
  • Loading branch information
Michael Hiiva authored Feb 15, 2021
2 parents b69d566 + 8dfcf1f commit 71a36cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion agagd/agagd/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

MANAGERS = ADMINS

ALLOWED_HOSTS = ['localhost', 'test.agagd.usgo.org', 'agagd.usgo.org', 'a.agagd.usgo.org']
# Allow only the default ALLOWED_HOSTS ['.localhost', '127.0.0.1', '[::1]'].
ALLOWED_HOSTS = []

# Only one allowed host is expected here.
if os.getenv('ALLOWED_HOSTS') != None:
ALLOWED_HOSTS.append(os.getenv('ALLOWED_HOSTS'))

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
Expand Down

0 comments on commit 71a36cc

Please sign in to comment.