Skip to content

Commit

Permalink
Configure ALLOWED_HOSTS
Browse files Browse the repository at this point in the history
Possibly we'll just want to hardcode this to `*` on the basis that we're
capable of enforcing the right thing elsewhere in the chain, but I'm
being conservative for now.
  • Loading branch information
evansd committed Jan 19, 2024
1 parent 4220cf4 commit 9edd16c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airlock/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_env_var(name):
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = get_env_var("DJANGO_DEBUG") == "True"

ALLOWED_HOSTS = []
ALLOWED_HOSTS = get_env_var("DJANGO_ALLOWED_HOSTS").split(",")


# Application definition
Expand Down
2 changes: 1 addition & 1 deletion dotenv-sample
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Default environment variables for local development

DJANGO_DEBUG=True

DJANGO_SECRET_KEY="INSECURE-if-you-use-this-in-prod-you-will-have-a-bad-day"
DJANGO_ALLOWED_HOSTS="*"

AIRLOCK_WORK_DIR=workdir/

0 comments on commit 9edd16c

Please sign in to comment.