Add BACKUP_MAX_UPLOAD (0 = no limit)
This commit is contained in:
1 parent
db1d577996
commit
f60339a60f
1 file changed
+4
@@ -54,6 +54,10 @@ class Config:
|
|||||||
# Keep only the newest N archives after a backup made from the web UI.
|
# Keep only the newest N archives after a backup made from the web UI.
|
||||||
# Set to 0 to keep everything.
|
# Set to 0 to keep everything.
|
||||||
BACKUP_KEEP = int(os.environ.get('BACKUP_KEEP', 5))
|
BACKUP_KEEP = int(os.environ.get('BACKUP_KEEP', 5))
|
||||||
|
# Ceiling for archives uploaded through the admin page, in bytes.
|
||||||
|
# 0 = no limit. This is separate from MAX_CONTENT_LENGTH: backup uploads
|
||||||
|
# stream straight to disk and never go through Flask's form parser.
|
||||||
|
BACKUP_MAX_UPLOAD = int(os.environ.get('BACKUP_MAX_UPLOAD', 0))
|
||||||
|
|
||||||
# Pagination
|
# Pagination
|
||||||
SETS_PER_PAGE = int(os.environ.get('SETS_PER_PAGE', 20))
|
SETS_PER_PAGE = int(os.environ.get('SETS_PER_PAGE', 20))
|
||||||
|
|||||||
Reference in new issue
Block a user