quadfile/conf.py.sample

44 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2015-12-23 13:11:38 +00:00
# Create an empty config dict
config = dict()
2015-12-23 13:11:38 +00:00
##
#
# Main server configuration
#
##
2015-12-23 13:11:38 +00:00
config["HOST"] = "127.0.0.1"
# This string will be used in file URLs that are returned, you will need to include http:// or https://
config["DOMAIN"] = "http://example.com"
2015-12-23 13:11:38 +00:00
config["PORT"] = 8282
2018-03-20 21:16:48 +00:00
# Will output more logging data from QuadFile's logger
2016-09-23 08:47:19 +00:00
config["DEBUG"] = False
2018-03-20 21:16:48 +00:00
# Extended Debug will enable flask debugging. Keep this off for production use
2015-12-23 13:11:38 +00:00
config["EXTENDED_DEBUG"] = False
2015-12-23 13:11:38 +00:00
# Single user authentication, leave blank to disable authentication
config["KEY"] = ""
# File settings
config["UPLOAD_FOLDER"] = './data'
config["ALLOW_ALL_FILES"] = True
2015-12-23 13:11:38 +00:00
config["ALLOWED_EXTENSIONS"] = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
2016-12-23 08:32:44 +00:00
# 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'])
2015-12-23 21:45:40 +00:00
# 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
2015-12-23 22:27:12 +00:00
config["CLEAN_INTERVAL"] = 120
2015-12-23 13:11:38 +00:00
# Site info displayed to the user
config["SITE_DATA"] = {
"title": "QuadFile",
2018-03-20 21:16:48 +00:00
"size": "100 MiB" # This is only for display, please limit filesize using your web server
2016-12-23 08:32:44 +00:00
}