Skip to content

Commit bf4864b

Browse files
committed
Document how we load environment variables from .env
There is a precedence of /etc/vulnerablecode/.env over the local .env file in all cases Reported-by: Hritik Vijay <hritikxx8@gmail.com> Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent cdcc5e1 commit bf4864b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/source/misc.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,13 @@ Start this timer with::
3636
systemctl --user daemon-reload
3737
systemctl --user start vulnerablecode.timer
3838

39+
40+
41+
Environment variables configuration
42+
--------------------------------------
43+
44+
VulnerableCode loads environment variables from an `.env` file when provided.
45+
VulnerableCode first checks the file at `/etc/vulnerablecode/.env` and if not
46+
present, it will attempt to load a `.env` file from the checkout directory.
47+
48+
The file at `/etc/vulnerablecode/.env` has precedence.

0 commit comments

Comments
 (0)