about summary refs log tree commit diff
path: root/uploader/default_settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/default_settings.py')
-rw-r--r--uploader/default_settings.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/uploader/default_settings.py b/uploader/default_settings.py
index 52cdad5..75dc53a 100644
--- a/uploader/default_settings.py
+++ b/uploader/default_settings.py
@@ -6,7 +6,12 @@ actual configuration file used for the production and staging systems.
 LOG_LEVEL = "WARNING"
 SECRET_KEY = b"<Please! Please! Please! Change This!>"
 UPLOAD_FOLDER = "/tmp/qc_app_files"
-TEMPORARY_DIRECTORY = "/tmp/gn-uploader-tmpdir"
+
+# Scratch directory and uploads:
+# *** The scratch directory ***
+# We avoid `/tmp` entirely for the scratch directory to avoid shared global
+# mutable state with other users/applications/processes.
+SCRATCH_DIRECTORY = "~/tmp/gn-uploader-scratchdir"
 REDIS_URL = "redis://"
 JOBS_TTL_SECONDS = 1209600 # 14 days
 GNQC_REDIS_PREFIX="gn-uploader"