mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 19:48:23 +02:00
MRC WIP
This commit is contained in:
parent
826e5fc0f1
commit
9c2b3be0b1
5 changed files with 530 additions and 30 deletions
|
@ -212,7 +212,8 @@ function getDefaultConfig() {
|
|||
|
||||
badUserNames : [
|
||||
'sysop', 'admin', 'administrator', 'root', 'all',
|
||||
'areamgr', 'filemgr', 'filefix', 'areafix', 'allfix'
|
||||
'areamgr', 'filemgr', 'filefix', 'areafix', 'allfix',
|
||||
'server', 'client', 'notme'
|
||||
],
|
||||
|
||||
preAuthIdleLogoutSeconds : 60 * 3, // 3m
|
||||
|
@ -253,6 +254,7 @@ function getDefaultConfig() {
|
|||
mods : paths.join(__dirname, './../mods/'),
|
||||
loginServers : paths.join(__dirname, './servers/login/'),
|
||||
contentServers : paths.join(__dirname, './servers/content/'),
|
||||
chatServers : paths.join(__dirname, './servers/chat/'),
|
||||
|
||||
scannerTossers : paths.join(__dirname, './scanner_tossers/'),
|
||||
mailers : paths.join(__dirname, './mailers/') ,
|
||||
|
@ -447,6 +449,15 @@ function getDefaultConfig() {
|
|||
}
|
||||
},
|
||||
|
||||
chatServers : {
|
||||
mrc: {
|
||||
enabled : true,
|
||||
multiplexerPort : 5000,
|
||||
serverHostname : "mrc.bottomlessabyss.com",
|
||||
serverPort : 5000
|
||||
}
|
||||
},
|
||||
|
||||
infoExtractUtils : {
|
||||
Exiftool2Desc : {
|
||||
cmd : `${__dirname}/../util/exiftool2desc.js`, // ensure chmod +x
|
||||
|
@ -965,38 +976,38 @@ function getDefaultConfig() {
|
|||
eventScheduler : {
|
||||
|
||||
events : {
|
||||
dailyMaintenance : {
|
||||
schedule : 'at 11:59pm',
|
||||
action : '@method:core/misc_scheduled_events.js:dailyMaintenanceScheduledEvent',
|
||||
},
|
||||
trimMessageAreas : {
|
||||
// may optionally use [or ]@watch:/path/to/file
|
||||
schedule : 'every 24 hours',
|
||||
// dailyMaintenance : {
|
||||
// schedule : 'at 11:59pm',
|
||||
// action : '@method:core/misc_scheduled_events.js:dailyMaintenanceScheduledEvent',
|
||||
// },
|
||||
// trimMessageAreas : {
|
||||
// // may optionally use [or ]@watch:/path/to/file
|
||||
// schedule : 'every 24 hours',
|
||||
|
||||
// action:
|
||||
// - @method:path/to/module.js:theMethodName
|
||||
// (path is relative to ENiGMA base dir)
|
||||
//
|
||||
// - @execute:/path/to/something/executable.sh
|
||||
//
|
||||
action : '@method:core/message_area.js:trimMessageAreasScheduledEvent',
|
||||
},
|
||||
// // action:
|
||||
// // - @method:path/to/module.js:theMethodName
|
||||
// // (path is relative to ENiGMA base dir)
|
||||
// //
|
||||
// // - @execute:/path/to/something/executable.sh
|
||||
// //
|
||||
// action : '@method:core/message_area.js:trimMessageAreasScheduledEvent',
|
||||
// },
|
||||
|
||||
nntpMaintenance : {
|
||||
schedule : 'every 12 hours', // should generally be < trimMessageAreas interval
|
||||
action : '@method:core/servers/content/nntp.js:performMaintenanceTask',
|
||||
},
|
||||
// nntpMaintenance : {
|
||||
// schedule : 'every 12 hours', // should generally be < trimMessageAreas interval
|
||||
// action : '@method:core/servers/content/nntp.js:performMaintenanceTask',
|
||||
// },
|
||||
|
||||
updateFileAreaStats : {
|
||||
schedule : 'every 1 hours',
|
||||
action : '@method:core/file_base_area.js:updateAreaStatsScheduledEvent',
|
||||
},
|
||||
// updateFileAreaStats : {
|
||||
// schedule : 'every 1 hours',
|
||||
// action : '@method:core/file_base_area.js:updateAreaStatsScheduledEvent',
|
||||
// },
|
||||
|
||||
forgotPasswordMaintenance : {
|
||||
schedule : 'every 24 hours',
|
||||
action : '@method:core/web_password_reset.js:performMaintenanceTask',
|
||||
args : [ '24 hours' ] // items older than this will be removed
|
||||
},
|
||||
// forgotPasswordMaintenance : {
|
||||
// schedule : 'every 24 hours',
|
||||
// action : '@method:core/web_password_reset.js:performMaintenanceTask',
|
||||
// args : [ '24 hours' ] // items older than this will be removed
|
||||
// },
|
||||
|
||||
//
|
||||
// Enable the following entry in your config.hjson to periodically create/update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue