Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ for this purpose::

SECRET_KEY=$(python -c "from django.core.management import utils; print(utils.get_random_secret_key())")

You will also need to setup the VC_ALLOWED_HOSTS environment variable to match the hostname where the app is deployed::

VC_ALLOWED_HOSTS=vulnerablecode.your.domain.example.com

You can specify several host by separating them with a colon `:`

Using Nix
~~~~~~~~~
Expand Down
4 changes: 1 addition & 3 deletions vulnerablecode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False

ALLOWED_HOSTS = [
".herokuapp.com",
]
ALLOWED_HOSTS = os.environ.get("VC_ALLOWED_HOSTS", "*").split(":")

# Application definition

Expand Down