Tune editor
This commit is contained in:
@@ -5,6 +5,15 @@ from folkugat_web.log import logger
|
||||
|
||||
DB_DIR = Path(os.getenv("DB_DIR", "/home/marc/tmp/folkugat")).resolve()
|
||||
DB_FILE = DB_DIR / "folkugat.db"
|
||||
DB_TEMES_DIR = DB_DIR / "temes"
|
||||
|
||||
logger.info(f"Using DB_DIR: {DB_DIR}")
|
||||
|
||||
# Files db
|
||||
|
||||
DB_FILES_DIR = DB_DIR / "fitxer"
|
||||
DB_FILES_DIR.mkdir(exist_ok=True)
|
||||
|
||||
DB_FILES_URL = "/db/fitxer"
|
||||
|
||||
_MB = 1024 * 1024
|
||||
FILE_MAX_SIZE = 10 * _MB
|
||||
|
||||
Reference in New Issue
Block a user