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: [ transports: [
new DailyRotateFile({ new DailyRotateFile({
level: 'info', level: 'info',
filename: './log/modtools-%DATE%.log', filename: './log/moderation/modtools-%DATE%.log',
maxSize: '20m', maxSize: '20m',
maxFiles: '14d', maxFiles: '14d',
colorize: false, colorize: false,

View File

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