Skip to content

Commit

Permalink
Extend ALLOWED_HOSTS to support Gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchrisadams committed Jun 14, 2024
1 parent 24fc007 commit f2a4bb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion greenweb/settings/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
INTERNAL_IPS = ["127.0.0.1"]
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
INTERNAL_IPS += [ip[:-1] + "1" for ip in ips]
ALLOWED_HOSTS.extend(["127.0.0.1", "localhost"]) # noqa

# we add gitpod.io to support their ephemeral dev environments
# add others as we need them
ALLOWED_HOSTS.extend(["127.0.0.1", "localhost", ".gitpod.io"]) # noqa

INSTALLED_APPS.append("debug_toolbar") # noqa

Expand Down

0 comments on commit f2a4bb4

Please sign in to comment.