move modlogs into own folder

This commit is contained in:
HF 2022-03-16 20:42:17 +01:00
parent 9b7cf6365c
commit 747981ad5a
2 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ export const modtoolsLogger = createLogger({
transports: [
new DailyRotateFile({
level: 'info',
filename: './log/modtools-%DATE%.log',
filename: './log/moderation/modtools-%DATE%.log',
maxSize: '20m',
maxFiles: '14d',
colorize: false,

View File

@ -47,10 +47,10 @@ router.use('/tiles', tiles);
*/
router.use('/adminapi', adminapi);
//
// public folder
// (this should be served with nginx or other webserver)
// -----------------------------------------------------------------------------
/*
* public folder
* (this should be served with nginx or other webserver)
*/
router.use(express.static(path.join(__dirname, 'public'), {
maxAge: 12 * MONTH,
extensions: ['html'],