There was an error while loading. Please reload this page.
1 parent adf86fd commit 8c22beeCopy full SHA for 8c22bee
2 files changed
README.rst
@@ -160,6 +160,11 @@ for this purpose::
160
161
SECRET_KEY=$(python -c "from django.core.management import utils; print(utils.get_random_secret_key())")
162
163
+You will also need to setup the VC_ALLOWED_HOSTS environment variable to match the hostname where the app is deployed::
164
+
165
+ VC_ALLOWED_HOSTS=vulnerablecode.your.domain.example.com
166
167
+You can specify several host by separating them with a colon `:`
168
169
Using Nix
170
~~~~~~~~~
vulnerablecode/settings.py
@@ -27,9 +27,7 @@
27
# SECURITY WARNING: don't run with debug turned on in production!
28
DEBUG = False
29
30
-ALLOWED_HOSTS = [
31
- ".herokuapp.com",
32
-]
+ALLOWED_HOSTS = os.environ.get("VC_ALLOWED_HOSTS", "*").split(":")
33
34
# Application definition
35
0 commit comments