Configurable upload path. (#191)

* Add necessary migrations for project model.

* Add a few tests for project model new columns.

* make upload location into a configurable

* fix uploadDir path

* use config in app.js

* Change upload env var naming

* Add upload env var to Docker files

---------

Co-authored-by: antanst <>
Co-authored-by: vhsdream <punk.sand7393@fastmail.com>
This commit is contained in:
Antonis Anastasiadis 2025-07-22 15:23:03 +03:00 committed by GitHub
parent 1e11ab5fa4
commit 4051824e7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 15 additions and 6 deletions

View file

@ -8,11 +8,13 @@ services:
- TUDUDI_SESSION_SECRET=changeme-please-use-openssl
- TUDUDI_INTERNAL_SSL_ENABLED=false
- TUDUDI_ALLOWED_ORIGINS=http://localhost:3002
- TUDUDI_UPLOAD_PATH="/app/backend/uploads"
# Runtime UID/GID configuration - set these to match your host user/group
- PUID=1001
- PGID=1001
volumes:
- ./tududi_db:/app/backend/db
#- ./uploads:/app/backend/uploads
ports:
- "3002:3002"
restart: unless-stopped