const buffer = require('crypto').randomBytes(60);
const token = buffer.toString('base64').replace(/\//g,'_').replace(/\+/g,'-');
// Default configuration for server
module.exports = {
// Public variables - should be documented quite well
port: 3000,
engine: 'pug',
public: 'public',
secret: 'secret-' + token,
// Dev variables - not part of the official API
// Show extra info on the terminal; should depend on another variable
verbose: false,
// Avoid giving clues to server tech
'x-powered-by': false
};
|