mirror of
https://github.com/status-im/codimd.git
synced 2025-01-24 17:28:51 +00:00
Merge pull request #983 from SISheogorath/fix/disableIndexes
Enforce disabled index for static assets
This commit is contained in:
commit
8ad3fdc3ca
2
app.js
2
app.js
@ -125,7 +125,7 @@ app.use(i18n.init)
|
||||
|
||||
// routes without sessions
|
||||
// static files
|
||||
app.use('/', express.static(path.join(__dirname, '/public'), { maxAge: config.staticCacheTime }))
|
||||
app.use('/', express.static(path.join(__dirname, '/public'), { maxAge: config.staticCacheTime, index: false }))
|
||||
app.use('/docs', express.static(path.resolve(__dirname, config.docsPath), { maxAge: config.staticCacheTime }))
|
||||
app.use('/uploads', express.static(path.resolve(__dirname, config.uploadsPath), { maxAge: config.staticCacheTime }))
|
||||
app.use('/default.md', express.static(path.resolve(__dirname, config.defaultNotePath), { maxAge: config.staticCacheTime }))
|
||||
|
Loading…
x
Reference in New Issue
Block a user