TASK-002 Enforce authorization and media boundaries

This commit is contained in:
rob
2026-11-25 17:24:12 +00:00
parent cd6d6b3a83
commit 549f11d9f4
14 changed files with 374 additions and 92 deletions
+3 -1
View File
@@ -11,7 +11,7 @@ app = Flask(__name__, static_folder="static")
app.config.update(
{
"DEBUG": bool(os.environ.get("DEBUG") == "True"),
"SQLALCHEMY_DATABASE_URI": "sqlite:///foldershare.sqlite",
"SQLALCHEMY_DATABASE_URI": os.environ.get("FOLDERSHARE_DATABASE_URI", "sqlite:///foldershare.sqlite"),
"SQLALCHEMY_ECHO": bool(os.environ.get("SQLALCHEMY_ECHO") == "True"),
"SQLALCHEMY_TRACK_MODIFICATIONS": bool(
os.environ.get("SQLALCHEMY_TRACK_MODIFICATIONS") == "True"
@@ -24,3 +24,5 @@ migrate = Migrate(app, db, render_as_batch=True)
root_path = os.environ.get("ROOT_PATH")
if root_path is None:
root_path = "share"
app.config["MEDIA_ROOT"] = os.path.abspath(root_path)