var prerender = require('prerender');
var server = prerender({
cookiesEnabled: false,
workers: 10,
followRedirects: true,
phantomArguments: {
'--ssl-protocol' : 'any',
'--ignore-ssl-errors': true,
'--debug': "printDebugMessages"
},
accessLog: {
// Check out the file-stream-rotator docs for parameters
fileStreamRotator: {
filename: '/var/log/prerender/access-%DATE%.log',
frequency: 'daily',
date_format: 'YYYY-MM-DD',
verbose: false
},
// Check out the morgan docs for the available formats
morgan: {
format: 'combined'
}
}
});
server.use(require('prerender-access-log'));
server.start();