diff --git a/code/app.py b/code/app.py index d9335e4..e6e1b63 100644 --- a/code/app.py +++ b/code/app.py @@ -210,7 +210,7 @@ def download_file(token, name): """ check for file expiry, and send file if allowed """ - full_path = os.path.join(app.config["DATAFOLDER"], token, name) + full_path = file_full_path(token, name) if not os.path.exists(full_path): return "Error", 404 db_stat = db_get_file(token, name) diff --git a/code/entrypoint.sh b/code/entrypoint.sh index 4fd0398..92bb1e4 100644 --- a/code/entrypoint.sh +++ b/code/entrypoint.sh @@ -4,7 +4,6 @@ SQLITE=sqlite3 export FLASK_DATAFOLDER="/data" export FLASK_DB="/data/flees.db" -export FLASK_CONF="/data/config.json" export SERVER=gunicorn export PID="flees.pid" export WORKERS