quadfile/conf.py.sample

44 lines
1.3 KiB
Plaintext
Raw 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
# Disable this for production use
2016-09-23 08:47:19 +00:00
config["DEBUG"] = False
2015-12-23 13:11:38 +00:00
# Extended debug will add extra debug output that's not normally provided by flask
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",
"size": "100 MiB" # This is only for display, please limit filesizes using your web server
2016-12-23 08:32:44 +00:00
}