feat(images): support uploading local ISO/vztmpl files to node storage
Some checks failed
Deploy to Production / Trigger production update (push) Has been cancelled
Backend Tests / pytest (Python 3.12) (push) Has been cancelled

Adds a local file upload path alongside the existing URL download flow:
a new /images/upload endpoint streams the file to a temp path and hands
it to a background worker that proxies it into Proxmox storage via the
upload API (requests-toolbelt handles the large multipart stream). Also
adds /images/resolve-filename to recover the real filename (Content-
Disposition) for URL-based downloads with opaque paths.

Raise nginx client_max_body_size and timeouts on both the frontend proxy
and the standalone nginx configs so multi-GB ISOs don't get cut off.
This commit is contained in:
markmorado
2026-07-24 06:17:46 +05:00
parent 8b4c8c3a30
commit 99d8ce750d
13 changed files with 533 additions and 52 deletions

View File

@@ -10,6 +10,7 @@ paramiko==3.4.1
psutil==6.1.0
proxmoxer==2.1.0
requests==2.32.3
requests-toolbelt==1.0.0
aiofiles==24.1.0
python-dotenv==1.0.1
httpx==0.27.0