feat: implement token-based access for presentation files and add serving endpoint
All checks were successful
Build & Push Docker Image / build (push) Successful in 4m43s

This commit is contained in:
2026-04-01 08:52:43 +02:00
parent 0db9227c20
commit b3b559e164
2 changed files with 53 additions and 4 deletions

View File

@@ -60,9 +60,10 @@ async function start() {
await initDatabase();
initMailer();
// Serve uploaded files (branding only — avatars served via /api/auth/avatar/:filename, presentations require auth)
// Serve uploaded files (avatars are served via /api/auth/avatar/:filename)
const uploadsPath = path.join(__dirname, '..', 'uploads');
app.use('/uploads/branding', express.static(path.join(uploadsPath, 'branding')));
// Presentations are served via /api/rooms/presentations/:filename?token=… (HMAC-protected)
// API Routes
app.use('/api/auth', authRoutes);