Fix jwt-token

This commit is contained in:
2025-09-20 06:25:08 +02:00
parent 261a5032a1
commit 04d15485bf
2 changed files with 2 additions and 4 deletions

View File

@@ -72,7 +72,6 @@ services:
RATE_LIMIT_WINDOW_MS: ${RATE_LIMIT_WINDOW_MS:-900000}
RATE_LIMIT_MAX_REQUESTS: ${RATE_LIMIT_MAX_REQUESTS:-1000}
SECURITY_LOG_DIR: /app/logs
VITE_BASE_PATH: ${VITE_BASE_PATH:-/}
ports:
- "3002:3001"
volumes:

View File

@@ -148,9 +148,8 @@ router.post('/logo-upload', authenticateToken, requirePermissions(['branding.edi
}
}
// Create logo URL with base path support
const basePath = process.env.VITE_BASE_PATH || '';
const logoUrl = `${basePath}uploads/logos/${req.file.filename}`;
// Create logo URL
const logoUrl = `/uploads/logos/${req.file.filename}`;
// Update tenant branding with new logo
const updatedBranding = {