Add BACKUP_FOLDER and BACKUP_KEEP config
This commit is contained in:
1 parent
f01d4b3f58
commit
af937daebb
1 file changed
+9
@@ -28,6 +28,15 @@ class Config:
|
|||||||
BRICKSET_PASSWORD = os.environ.get('BRICKSET_PASSWORD')
|
BRICKSET_PASSWORD = os.environ.get('BRICKSET_PASSWORD')
|
||||||
BRICKSET_API_URL = 'https://brickset.com/api/v3.asmx'
|
BRICKSET_API_URL = 'https://brickset.com/api/v3.asmx'
|
||||||
|
|
||||||
|
# Backups
|
||||||
|
# Defaults to <project root>/backups so archives never land inside the
|
||||||
|
# uploads tree (which would make each backup include the previous one).
|
||||||
|
BACKUP_FOLDER = os.environ.get('BACKUP_FOLDER') or \
|
||||||
|
os.path.join(os.path.dirname(basedir), 'backups')
|
||||||
|
# Keep only the newest N archives after a backup made from the web UI.
|
||||||
|
# Set to 0 to keep everything.
|
||||||
|
BACKUP_KEEP = int(os.environ.get('BACKUP_KEEP', 5))
|
||||||
|
|
||||||
# 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