upload unique links + default upload page + login

This commit is contained in:
MEGASOL\simon.adams
2025-09-01 18:48:01 +02:00
parent 6a4e7fdb65
commit 43d5e0c0ff
11 changed files with 1005 additions and 63 deletions

13
main.py
View File

@@ -1,13 +1,16 @@
"""
Thin entrypoint so you can run `python main.py` from project root.
"""Thin entrypoint for local development.
Reads host/port from environment and starts Uvicorn.
"""
import os
import uvicorn
from dotenv import load_dotenv
load_dotenv()
if __name__ == "__main__":
# Load .env for host/port only; app config loads in app.config
try:
load_dotenv()
except Exception:
pass
host = os.getenv("HOST", "127.0.0.1")
port = int(os.getenv("PORT", "8080"))
uvicorn.run("app.app:app", host=host, port=port, reload=True)
uvicorn.run("app.app:app", host=host, port=port, reload=True)