feat(init): initial commit for Flask-based temporary file transfer service (web UI, API, SQLite)

This commit is contained in:
OpenCode Bot
2026-04-29 22:42:38 +08:00
commit f9f58ca64e
9 changed files with 434 additions and 0 deletions

14
config.py Normal file
View 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,
}