TASK-002 Enforce authorization and media boundaries
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user