forked from svrjs/svrjs
Do some config.json TODO's
This commit is contained in:
parent
41bea903bb
commit
2f836231f4
2 changed files with 3 additions and 2 deletions
|
@ -113,7 +113,8 @@ if (process.serverConfig.pubport === undefined) process.serverConfig.pubport = 8
|
|||
if (process.serverConfig.domain === undefined && process.serverConfig.domian !== undefined) process.serverConfig.domain = process.serverConfig.domian;
|
||||
delete process.serverConfig.domian;
|
||||
if (process.serverConfig.page404 === undefined) process.serverConfig.page404 = "404.html";
|
||||
//process.serverConfig.timestamp = timestamp; //TODO
|
||||
process.serverConfig.timestamp = new Date().getTime();
|
||||
if (process.serverConfig.blacklist === undefined) process.serverConfig.blacklist = [];
|
||||
//process.serverConfig.blacklist = blocklist.raw; //TODO
|
||||
if (process.serverConfig.nonStandardCodes === undefined) process.serverConfig.nonStandardCodes = [];
|
||||
if (process.serverConfig.enableCompression === undefined) process.serverConfig.enableCompression = true;
|
||||
|
|
|
@ -5,7 +5,7 @@ let logFile = undefined;
|
|||
let logSync = false;
|
||||
let cluster = require("./clusterBunShim.js");
|
||||
let reallyExiting = false;
|
||||
let timestamp = new Date().getTime();
|
||||
const timestamp = process.serverConfig.timestamp;
|
||||
|
||||
// Logging function
|
||||
function LOG(s) {
|
||||
|
|
Reference in a new issue