From 3441d2ccf1b75c3e9899b54c30d7497b38964e29 Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Wed, 15 Sep 2021 09:28:08 +0200 Subject: [PATCH] add new param TEMP_DIR --- app/config.py | 3 +++ example.env | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index ecffc2e3..54b36a97 100644 --- a/app/config.py +++ b/app/config.py @@ -397,3 +397,6 @@ HIBP_API_KEYS = sl_getenv("HIBP_API_KEYS", list) or [] NEWRELIC_CONFIG_PATH = os.environ.get("NEWRELIC_CONFIG_PATH") POSTMASTER = os.environ.get("POSTMASTER") + +# store temporary files, especially for debugging +TEMP_DIR = os.environ.get("TEMP_DIR") diff --git a/example.env b/example.env index 9dfac231..12279ed1 100644 --- a/example.env +++ b/example.env @@ -171,4 +171,8 @@ DISABLE_ONBOARDING=true # HIBP_API_KEYS=[] # NewRelic Config File Path -# NEWRELIC_CONFIG_PATH = /path/newrelic.ini \ No newline at end of file +# NEWRELIC_CONFIG_PATH = /path/newrelic.ini + +# POSTMASTER = postmaster@example.com + +# TEMP_DIR = /tmp \ No newline at end of file