feat(init): initial commit for Flask-based temporary file transfer service (web UI, API, SQLite)
This commit is contained in:
14
config.py
Normal file
14
config.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import os
|
||||
|
||||
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
SECRET_KEY = os.environ.get('SECRET_KEY', 'dev-secret-key-change-in-production')
|
||||
UPLOAD_FOLDER = os.path.join(BASE_DIR, 'uploads')
|
||||
DATABASE = os.path.join(BASE_DIR, 'files.db')
|
||||
MAX_CONTENT_LENGTH = 500 * 1024 * 1024
|
||||
|
||||
EXPIRY_OPTIONS = {
|
||||
'1h': 60 * 60,
|
||||
'24h': 24 * 60 * 60,
|
||||
'7d': 7 * 24 * 60 * 60,
|
||||
}
|
||||
Reference in New Issue
Block a user