quadfile/conf.py.sample

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-12-23 13:11:38 +00:00
# Create an empty config dict
config = dict()
##
#
# Main server configuration
#
##
config["HOST"] = "127.0.0.1"
# This string will be used in file URLs that are returned
config["DOMAIN"] = "example.com"
config["PORT"] = 8282
config["DEBUG"] = True
# Extended debug will add extra debug output that's not normally provided by flask
config["EXTENDED_DEBUG"] = False
# 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'])
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-26 20:09:12 +00:00
# If possible, make your web server return a 413 instead of using this
config["CHECK_FILESIZE"] = True
config["MAX_FILESIZE"] = 1024 * 1024 * 100 # 100 MiB
2015-12-23 13:11:38 +00:00
# Site info displayed to the user
config["SITE_DATA"] = {
"title": "QuadFile"
}