From 4e0edb4ab3ce849ea1a40d4a9844d05547f7bb6a Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Fri, 23 Dec 2016 09:32:44 +0100 Subject: [PATCH] Update conf.py.sample --- conf.py.sample | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf.py.sample b/conf.py.sample index c5d2eb6..8494dfc 100644 --- a/conf.py.sample +++ b/conf.py.sample @@ -27,6 +27,10 @@ config["UPLOAD_FOLDER"] = './data' config["ALLOW_ALL_FILES"] = True config["ALLOWED_EXTENSIONS"] = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) +# Will use blacklist if this is enabled. You must disable ALLOW_ALL_EXTENSIONS for this to take effect +config["BLACKLIST"] = False +config["BANNED_EXTENSIONS"] = set(['exe', 'html', 'js', 'php', 'msi']) + # If this is set to true, old files will be deleted. TIME is how far behind (in seconds) the last accessed time can be before files get deleted config["DELETE_FILES"] = True config["TIME"] = 30 @@ -36,4 +40,4 @@ config["CLEAN_INTERVAL"] = 120 config["SITE_DATA"] = { "title": "QuadFile", "size": "100 MiB" # This is only for display, please limit filesizes using your web server -} \ No newline at end of file +}