fix: import-zip VALUES count + fallthrough false pour logos/icons manquants
This commit is contained in:
1 parent
b7337862b8
commit
0cab38e808
1 file changed
+2
-2
@@ -52,9 +52,9 @@ app.use(morgan('dev'));
|
|||||||
|
|
||||||
// ── Logos plateformes — servis sans authentification ─────────────────────
|
// ── Logos plateformes — servis sans authentification ─────────────────────
|
||||||
const logosDir = path.resolve(__dirname, '../data/logos');
|
const logosDir = path.resolve(__dirname, '../data/logos');
|
||||||
app.use('/api/logos', express.static(logosDir, { maxAge: '1d' }));
|
app.use('/api/logos', express.static(logosDir, { maxAge: '1d', fallthrough: false }));
|
||||||
const iconsDir2 = path.resolve(__dirname, '../data/icons');
|
const iconsDir2 = path.resolve(__dirname, '../data/icons');
|
||||||
app.use('/api/icons-files', express.static(iconsDir2, { maxAge: '1h' }));
|
app.use('/api/icons-files', express.static(iconsDir2, { maxAge: '1h', fallthrough: false }));
|
||||||
|
|
||||||
// Basic rate-limit on auth endpoints
|
// Basic rate-limit on auth endpoints
|
||||||
const authLimiter = rateLimit({
|
const authLimiter = rateLimit({
|
||||||
|
|||||||
Reference in new issue
Block a user